/* ===== VARIABLES ===== */
:root {
    --primary-color: #2563eb;     /* Modern tech blue */
    --secondary-color: #1e40af;   /* Deeper blue */
    --accent-color: #06b6d4;      /* Cyan accent */
    --accent-secondary: #3b82f6;  /* Light blue */
    --dark-color: #0f172a;        /* Very dark blue */
    --light-color: #f1f5f9;       /* Light gray with blue tint */
    --success-color: #10b981;     /* Tech green */
    --danger-color: #ef4444;      /* Modern red */
    --white-color: #fff;
    --gray-color: #64748b;        /* Slate gray */
    --code-color: #4f46e5;        /* Code purple */
    --terminal-color: #18181b;    /* Terminal black */
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease-in-out;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    color: var(--dark-color);
}

.section-header h2::before {
    content: '<';
    color: var(--accent-color);
    margin-right: 0.5rem;
    opacity: 0.7;
}

.section-header h2::after {
    content: '/>';
    color: var(--accent-color);
    margin-left: 0.5rem;
    opacity: 0.7;
}

.underline {
    height: 4px;
    width: 80px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    margin-top: 10px;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.highlight {
    color: var(--primary-color);
}

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar ul {
    display: flex;
}

.navbar li {
    margin-left: 2rem;
}

.navbar a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar a:hover::before,
.navbar a.active::before {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Add subtle gradient to header on scroll */
#header.scrolled {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.95));
}

#header.scrolled .logo a,
#header.scrolled .navbar a {
    color: var(--white-color);
}

#header.scrolled .hamburger span {
    background-color: var(--white-color);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    background-image: url('../images/portfolio/banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    color: var(--white-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(37, 99, 235, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Places content above the overlay */
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.hero-text h1 {
    margin-bottom: 1rem;
}

.hero-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.hero-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hero-buttons {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: nowrap;
}

.hero-buttons .btn {
    margin-right: 1rem;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-icons a.linkedin {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.social-icons a.github {
    background: linear-gradient(135deg, #333, #6e5494);
}

.social-icons a.x {
    background: linear-gradient(135deg, #000000, #14171A);
}

.social-icons a.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icons a.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.social-icons a:hover::before {
    opacity: 1;
    animation: pulse-light 1.5s infinite;
}

.social-icons a i {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: inherit;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.social-icons a.linkedin:hover {
    transform: translateY(-5px) rotateY(360deg);
}

.social-icons a.github:hover {
    transform: translateY(-5px) rotateX(360deg);
}

.social-icons a.x:hover {
    transform: translateY(-5px) rotateY(-360deg);
}

.social-icons a.instagram:hover {
    transform: translateY(-5px) rotateX(-360deg);
}

.social-icons a.whatsapp:hover {
    transform: translateY(-5px) rotateZ(360deg);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    width: 80%;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--box-shadow);
    content-visibility: auto;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 5rem 0;
    background-color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center left, rgba(6, 182, 212, 0.05), transparent 70%);
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.about-image {
    flex: 1;
    padding-right: 2rem;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.about-image img:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    background: rgba(241, 245, 249, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.info-item span {
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.info-item p {
    margin: 0.5rem 0 0 0;
    font-family: 'Courier New', monospace;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 5rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.05), transparent 70%);
    z-index: 0;
}

.skills-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.skill-category {
    flex: 1;
}

.skill-category h3 {
    margin-bottom: 2rem;
    text-align: center;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-item {
    width: 100%;
    transition: transform 0.3s ease;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 0 5px 5px 0;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.skill-info span:first-child {
    font-weight: bold;
    color: var(--dark-color);
}

.skill-info span:last-child {
    color: var(--primary-color);
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(15, 23, 42, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255, 255, 255, 0.1) 5px,
        rgba(255, 255, 255, 0.1) 10px
    );
    z-index: 1;
}

.skill-progress {
    position: relative;
    z-index: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.1, 0.5, 0.2, 1);
    animation: gradientShift 3s infinite alternate;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.skill-circles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-circle {
    text-align: center;
}

.circle-wrap {
    margin: 0 auto;
    width: 150px;
    height: 150px;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 50%;
    position: relative;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.inside-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--white-color);
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.skill-circle h4 {
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    color: var(--dark-color);
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: var(--box-shadow);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--box-shadow);
    }
}

.circle-wrap .circle .mask,
.circle-wrap .circle .fill {
    width: 150px;
    height: 150px;
    position: absolute;
    border-radius: 50%;
}

.circle-wrap .circle .mask {
    clip: rect(0px, 150px, 150px, 75px);
}

.circle-wrap .circle .mask.full,
.circle-wrap .circle .fill {
    animation: fill 2s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotate(var(--rotation, 135deg));
    animation-fill-mode: forwards;
}

.skill-circles .skill-circle:nth-child(1) .circle-wrap .circle .mask.full,
.skill-circles .skill-circle:nth-child(1) .circle-wrap .circle .fill {
    --rotation: calc(85 * 1.8deg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.skill-circles .skill-circle:nth-child(2) .circle-wrap .circle .mask.full,
.skill-circles .skill-circle:nth-child(2) .circle-wrap .circle .fill {
    --rotation: calc(90 * 1.8deg);
    background: linear-gradient(135deg, var(--code-color), var(--accent-secondary));
}

.skill-circles .skill-circle:nth-child(3) .circle-wrap .circle .mask.full,
.skill-circles .skill-circle:nth-child(3) .circle-wrap .circle .fill {
    --rotation: calc(80 * 1.8deg);
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
}

.skill-circles .skill-circle:nth-child(4) .circle-wrap .circle .mask.full,
.skill-circles .skill-circle:nth-child(4) .circle-wrap .circle .fill {
    --rotation: calc(95 * 1.8deg);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

@keyframes fill {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(var(--rotation, 135deg));
    }
}

.circle-wrap .circle .mask.half {
    clip: rect(0px, 75px, 150px, 0px);
}

.circle-wrap .circle .fill {
    clip: rect(0px, 75px, 150px, 0px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.circle-wrap .inside-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--white-color);
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.skill-circle:hover .inside-circle {
    transform: scale(1.05);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: 5rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.05), transparent 70%);
    z-index: 0;
}

.portfolio .section-header, 
.portfolio-filter, 
.portfolio-grid {
    position: relative;
    z-index: 1;
}

.portfolio-item {
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.portfolio-info {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7), transparent);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.portfolio-filter ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-item {
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem 1rem 0.5rem;
    cursor: pointer;
    border-radius: 30px;
    background-color: var(--white-color);
    transition: var(--transition);
}

.filter-item:hover,
.filter-item.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
    color: var(--white-color);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info {
    bottom: 0;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.portfolio-link,
.portfolio-view {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white-color);
    color: var(--primary-color);
    margin-right: 0.5rem;
    transition: var(--transition);
}

.portfolio-link:hover,
.portfolio-view:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    min-height: 300px;
}

.testimonial-item {
    background: linear-gradient(145deg, var(--white-color) 0%, var(--light-color) 100%);
    border-left: 8px solid var(--accent-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: absolute;
    width: 100%;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-item.active,
.testimonial-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-left-color: var(--primary-color);
}

.testimonial-item.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 5rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testimonial-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.client-info h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.client-info p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-color);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover {
    transform: scale(1.2);
    background-color: var(--accent-secondary);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* Override for Testimonials header */
.testimonials .section-header h2 {
    color: var(--white-color);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}
.testimonials .section-header h2::before,
.testimonials .section-header h2::after {
    color: var(--accent-secondary);
    opacity: 0.9;
}

@media screen and (max-width: 768px) {
    .testimonial-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .testimonial-image {
        margin: 0 auto 1.5rem;
        width: 100px;
        height: 100px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .testimonial-item::before {
        font-size: 4rem;
        top: 1rem;
        left: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .testimonial-item {
        padding: 1.5rem;
    }
    
    .testimonial-image {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .testimonial-item::before {
        font-size: 3rem;
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .client-info h4 {
        font-size: 1.1rem;
    }
    
    .client-info p {
        font-size: 0.9rem;
    }
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 5rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.1), transparent 60%),
                radial-gradient(circle at top left, rgba(79, 70, 229, 0.1), transparent 60%);
    z-index: 0;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
}

.contact-social {
    padding: 2rem;
    background: linear-gradient(135deg, var(--code-color), var(--primary-color));
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 2rem auto;
    max-width: 400px;
    perspective: 1000px;
    text-align: center;
}

.contact-social h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.contact-social .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-social .social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1), background 0.3s ease;
    transform-style: preserve-3d;
    color: #fff;
}

.contact-social .social-link.linkedin {
    background: #0077b5;
}

.contact-social .social-link.github {
    background: #333;
}

.contact-social .social-link.instagram {
    background: radial-gradient(circle at 30% 20%, #fdf497 0%,#fd5949 45%,#d6249f 60%,#285aeb 90%);
}

.contact-social .social-link.twitter {
    background: #1da1f2;
}

.contact-social .social-link.whatsapp {
    background: #25d366;
}

.contact-social .social-link i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.contact-social .social-link:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.contact-social .social-link.linkedin:hover {
    transform: rotateY(360deg);
}

.contact-social .social-link.github:hover {
    transform: rotateX(360deg);
}

.contact-social .social-link.instagram:hover {
    transform: rotateY(-360deg);
}

.contact-social .social-link.twitter:hover {
    transform: rotateX(-360deg);
}

.contact-social .social-link.whatsapp:hover {
    transform: rotateZ(360deg);
}

.contact-form {
    flex: 1;
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.google-form-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.google-form-container iframe {
    display: block;
    border: none;
    width: 100%;
    height: 700px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--dark-color);
    background-color: var(--light-color);
    border: none;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 120, 255, 0.3);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: none;
    height: 150px;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(to right, var(--dark-color), var(--secondary-color));
    color: var(--white-color);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.15), transparent 60%);
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--white-color);
    transition: var(--transition);
}

.back-to-top a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-top: 3rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .about-content,
    .skills-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .skill-category {
        margin-bottom: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1001;
    }
    
    .navbar.active {
        right: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar li {
        margin: 1rem 0;
        text-align: center;
    }
    
    .hamburger {
        display: block;
        z-index: 1002;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .skill-circles {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .testimonial-item {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .back-to-top {
        margin-top: 1rem;
    }
    
    .modal-image {
        height: 200px;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        height: auto;
        padding: 8rem 0 5rem 0;
    }
    
    .hero-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .hero-buttons .btn {
        margin: 0 0.5rem;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
}

/* ===== ADDITIONAL ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: var(--box-shadow);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: var(--box-shadow);
    }
}

@keyframes gradientBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Apply animations to elements */
.hero-text h1 {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-text h2 {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-text p {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.social-icons {
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.primary-btn:hover {
    animation: pulse 1s infinite;
}

/* Gradient overlay for portfolio items */
.portfolio-info {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
}

/* Add subtle gradient to header on scroll */
#header.scrolled {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.95));
}

/* Enhanced testimonial items */
.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Enhanced form fields */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 120, 255, 0.3);
    transform: translateY(-2px);
}

.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
}

/* Add animation to scroll down button */
.scroll-down a {
    position: relative;
    overflow: hidden;
}

.scroll-down a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.scroll-down a:hover::after {
    transform: scale(2);
}

/* ===== PARTICLE EFFECT ===== */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: float-particle linear infinite;
    z-index: 1;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-25px) translateX(25px);
    }
    50% {
        transform: translateY(0) translateX(50px);
    }
    75% {
        transform: translateY(25px) translateX(25px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Make sure content is above particles */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Blinking cursor for typewriter effect */
.blinking-cursor {
    font-weight: 500;
    animation: blink 1s step-end infinite;
    color: var(--primary-color);
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Fade in animation for subtitle */
.hero-text h2.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Add glowing effect to skills */
.skill-progress {
    box-shadow: 0 0 10px rgba(0, 120, 255, 0.5);
}

.circle-wrap .circle .fill {
    box-shadow: 0 0 15px rgba(0, 120, 255, 0.5);
}

/* Enhanced filter items */
.filter-item {
    transition: all 0.3s ease;
}

.filter-item:hover {
    transform: translateY(-3px);
}

.filter-item.active {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Add glow effect to primary button */
.primary-btn {
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.primary-btn:hover::before {
    transform: scale(1);
}

/* ===== PROJECT MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background-color: var(--white-color);
    border-radius: 10px;
    overflow-y: auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
    overscroll-behavior: contain;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--dark-color);
    cursor: pointer;
    z-index: 1;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    padding: 2rem;
}

.modal-text h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.modal-description {
    color: var(--dark-color);
    line-height: 1.7;
}

.modal-description h4 {
    margin: 1.5rem 0 0.8rem;
    color: var(--secondary-color);
}

.modal-description ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-description li {
    margin-bottom: 0.5rem;
}

@media screen and (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }
    
    .modal-image {
        width: 40%;
        height: auto;
    }
    
    .modal-text {
        width: 60%;
    }
}

@media screen and (max-width: 576px) {
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 85vh;
    }
    
    .modal-text {
        padding: 1.5rem;
    }
}