/* ========== CSS CUSTOM PROPERTIES (VARIABLES) ========== */
:root {
    /* Color Palette */
    --primary-color: #4F46E5;        /* Royal Blue */
    --primary-light: #6366F1;        /* Light Royal Blue */
    --primary-dark: #4338CA;         /* Dark Royal Blue */
    --primary-lighter: #E0E7FF;      /* Very Light Blue */
    
    --bg-light: #FFFFFF;             /* White Background */
    --bg-light-alt: #F8FAFC;         /* Light Gray Background */
    --bg-light-alt-2: #F1F5F9;       /* Lighter Gray Background */
    
    --text-dark: #1E293B;            /* Dark Gray Text */
    --text-muted: #64748B;           /* Muted Gray Text */
    --text-light: #94A3B8;           /* Light Gray Text */
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-light: #0F172A;
    --bg-light-alt: #1E293B;
    --bg-light-alt-2: #334155;
    --text-dark: #F1F5F9;
    --text-muted: #CBD5E1;
    --text-light: #E2E8F0;
}

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-muted);
    line-height: 1.8;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-dark);
    font-weight: 700;
}

/* Decorative underline for section titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    z-index: -1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: white;
}

.btn-primary::before {
    background: #4F46E5;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover::before {
    background: #6366F1;
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    color: white;
}

.btn-secondary::before {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover::before {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.15);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}


/* ========== THEME TOGGLE BUTTON ========== */
.theme-toggle {
    display: none;
}

/* ========== NAVIGATION BAR ========== */
.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1.2rem 1.5rem;
    transition: var(--transition);
    border-bottom: none;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.4s ease-out;
    position: relative;
    font-size: 0.95rem;
    padding: 0.65rem 1.3rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:hover {
    color: #6366F1;
}

.nav-link.active {
    color: white;
}

.nav-item {
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) scaleX(0.6) scaleY(0.7);
    width: 100%;
    height: 2.3rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

.nav-link:hover::before {
    transform: translateX(-50%) translateY(-50%) scaleX(1) scaleY(1);
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.14), 
                inset 0 -1px 2px rgba(0, 0, 0, 0.06),
                0 3px 16px rgba(168, 199, 250, 0.12);
}

.nav-link.active::before {
    transform: translateX(-50%) translateY(-50%) scaleX(1) scaleY(1);
    opacity: 1;
    background: rgba(79, 70, 229, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.14), 
                inset 0 -1px 2px rgba(0, 0, 0, 0.06),
                0 3px 16px rgba(79, 70, 229, 0.3);
}

body.dark-mode .nav-link::before {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.04);
}

body.dark-mode .nav-link:hover::before {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.07), 
                inset 0 -1px 2px rgba(0, 0, 0, 0.1),
                0 3px 16px rgba(168, 199, 250, 0.09);
}

body.dark-mode .nav-link.active::before {
    background: rgba(79, 70, 229, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.07), 
                inset 0 -1px 2px rgba(0, 0, 0, 0.1),
                0 3px 16px rgba(79, 70, 229, 0.3);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    margin: -8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.nav-toggle:active {
    opacity: 0.8;
}

.nav-toggle:focus {
    outline: none;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.35s ease;
    display: block;
}

body.dark-mode .bar {
    background: var(--text-light);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    background-color: #0f172a;
    --hero-image: url('Images/Hero Image.webp');
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transform: scale(0.98);
    opacity: 0;
    animation: heroImageReveal 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    will-change: transform, opacity;
    filter: saturate(1.05);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes heroImageReveal {
    0% { transform: scale(0.94); opacity: 0; }
    55% { opacity: 0.96; }
    100% { transform: scale(1.02); opacity: 1; }
}

@keyframes auroraGradient {
    0% { background-position: -10% -20%, 115% -15%, 45% 85%, center; }
    50% { background-position: 12% -5%, 85% -5%, 50% 75%, center; }
    100% { background-position: -8% -25%, 110% -18%, 48% 88%, center; }
}

@keyframes auroraWave1 {
    0% { transform: translate3d(-12%, -2%, 0) scale(0.92); opacity: 0.55; }
    50% { transform: translate3d(6%, -8%, 0) scale(1.05); opacity: 0.7; }
    100% { transform: translate3d(-6%, -4%, 0) scale(0.96); opacity: 0.56; }
}

@keyframes auroraWave2 {
    0% { transform: translate3d(10%, -4%, 0) scale(0.9); opacity: 0.5; }
    50% { transform: translate3d(-4%, -10%, 0) scale(1.08); opacity: 0.68; }
    100% { transform: translate3d(6%, -6%, 0) scale(0.94); opacity: 0.54; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(185deg, rgba(15, 23, 42, 0.05) 0%, rgba(30, 41, 59, 0.18) 40%, rgba(79, 70, 229, 0.62) 100%);
    overflow: hidden;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    width: 165%;
    height: 120%;
    bottom: -45%;
    left: -25%;
    background: radial-gradient(ellipse at center, rgba(236, 72, 153, 0.38) 0%, rgba(236, 72, 153, 0.12) 48%, transparent 75%);
    filter: blur(110px);
    opacity: 0.6;
    animation: auroraWave1 22s ease-in-out infinite alternate;
    mix-blend-mode: screen;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    width: 155%;
    height: 120%;
    bottom: -55%;
    right: -20%;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.34) 0%, rgba(56, 189, 248, 0.1) 50%, transparent 78%);
    filter: blur(130px);
    opacity: 0.55;
    animation: auroraWave2 26s ease-in-out infinite alternate;
    mix-blend-mode: screen;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    z-index: 3;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 0.75rem;
    color: white;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, #6366F1 0%, #A8C7FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: #A8C7FA;
    margin-bottom: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 500px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.hero-buttons .btn {
    padding: 14px 36px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 600;
    border-radius: 12px;
}

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

.scroll-arrow {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

/* Hero Responsive Design */
@media (max-width: 1024px) {
    .hero {
        margin-top: 0;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text {
        max-width: 550px;
    }

    .hero-tagline {
        max-width: 450px;
    }

    .hero-buttons .btn {
        padding: 13px 34px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: 100vh;
        background-attachment: scroll;
        margin-top: 0;
    }

    .hero-container {
        padding: 40px 20px;
        height: 100%;
    }

    .hero-content {
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
        flex: 1;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 0.65rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .hero-buttons .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(15, 23, 42, 0.25) 0%, rgba(30, 41, 59, 0.5) 40%, rgba(79, 70, 229, 0.75) 100%);
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 100vh;
        height: 100vh;
        margin-top: 0;
    }

    .hero-container {
        padding: 30px 15px;
        height: 100%;
    }

    .hero-text h1 {
        font-size: 1.75rem;
        line-height: 1.25;
        margin-bottom: 0.5rem;
        letter-spacing: -0.3px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        letter-spacing: 0.3px;
    }

    .hero-tagline {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .scroll-arrow {
        font-size: 1.25rem;
    }

    .hero-overlay {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.93) 0%, rgba(30, 41, 59, 0.88) 50%, rgba(79, 70, 229, 0.75) 100%);
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 100vh;
        height: 100vh;
        margin-top: 0;
        --hero-image: url('Images/Hero image mobile.webp');
    }

    .hero-container {
        padding: 25px 12px;
        height: 100%;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 1.75rem;
        margin-bottom: 0.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 11px 18px;
        font-size: 0.9rem;
    }

    .hero-buttons i {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-overlay {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(79, 70, 229, 0.8) 100%);
    }
}

/* ========== ABOUT SECTION ========== */
.about {
    padding-top: 4rem;
    padding-bottom: 6rem;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--bg-light-alt);
    transition: var(--transition);
}

.about-item:hover {
    background: var(--bg-light-alt-2);
    box-shadow: var(--shadow-md);
}

.about-item h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-item h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.about-item p {
    color: var(--text-muted);
    line-height: 1.8;
}

.specialties-list {
    list-style: none;
    margin-top: 1rem;
}

.specialties-list li {
    padding: 0.75rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.specialties-list li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.specialties-list i {
    color: var(--primary-color);
    font-weight: bold;
}

.about-stats {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    color: white;
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 100px;
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label-alt {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========== SKILLS SECTION ========== */
.skills {
    padding: 6rem 0;
    background: var(--bg-light-alt);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.skill-category h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-category h3 i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.skill-item {
    margin-bottom: 2.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.skill-name {
    color: var(--text-dark);
    font-weight: 600;
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 700;
}

.skill-bar {
    height: 8px;
    background: var(--bg-light-alt-2);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 0;
}

/* Skill Progress Color Coding */
.skill-progress[data-width="95"],
.skill-progress[data-width="92"],
.skill-progress[data-width="90"] {
    background: linear-gradient(90deg, #10b981, #059669);
}

.skill-progress[data-width="88"],
.skill-progress[data-width="85"] {
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

.skill-progress[data-width="80"] {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.skill-progress[data-width="78"],
.skill-progress[data-width="75"] {
    background: linear-gradient(90deg, #8b5cf6, #6d28d9);
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio {
    padding: 6rem 0;
    background: var(--bg-light);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 10px 25px;
    color: var(--text-muted);
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    background: rgba(79, 70, 229, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
}

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

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(79, 70, 229, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    color: white;
    padding: 2rem;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: white;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.portfolio-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.portfolio-link {
    width: 45px;
    height: 45px;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portfolio-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    z-index: -1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.portfolio-link:hover {
    transform: scale(1.15) rotate(10deg);
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.portfolio-link:hover::before {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.portfolio-link:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.35);
}

/* ========== TESTIMONIALS SECTION ========== */
/* ========== SKILLS SHOWCASE SECTION ========== */
.skills-showcase {
    padding: 4rem 0;
    background: var(--bg-light-alt);
    min-height: 900px;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Filter Buttons */
.skills-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.filter-skill-btn {
    padding: 0.7rem 1.8rem;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
}

.filter-skill-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.filter-skill-btn:hover::before {
    background: rgba(79, 70, 229, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-skill-btn:hover {
    color: white;
}

.filter-skill-btn.active {
    color: white;
}

.filter-skill-btn.active::before {
    background: rgba(79, 70, 229, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Skills Grid - Base Styles - NO BLUR FOR OTHER CATEGORIES */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    position: relative;
    max-height: auto;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
    clip-path: none;
}

.skills-grid::after {
    display: none;
}

/* Progressive Blur - ONLY applies when data-filter="all" */
.skills-grid[data-filter="all"] {
    max-height: 550px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(180deg, black 0%, black 50%, rgba(0, 0, 0, 0.8) 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, black 0%, black 50%, rgba(0, 0, 0, 0.8) 70%, transparent 100%);
}

.skills-grid[data-filter="all"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(180deg, 
        rgba(248, 250, 252, 0) 0%, 
        rgba(248, 250, 252, 0.05) 20%,
        rgba(248, 250, 252, 0.15) 40%,
        rgba(248, 250, 252, 0.35) 60%, 
        rgba(248, 250, 252, 0.7) 80%,
        rgba(248, 250, 252, 1) 100%);
    pointer-events: none;
    z-index: 10;
    display: block;
    backdrop-filter: blur(4px);
}

body.dark-mode .skills-grid[data-filter="all"]::after {
    background: linear-gradient(180deg, 
        rgba(15, 23, 42, 0) 0%, 
        rgba(15, 23, 42, 0.05) 20%,
        rgba(15, 23, 42, 0.15) 40%,
        rgba(15, 23, 42, 0.35) 60%, 
        rgba(15, 23, 42, 0.7) 80%,
        rgba(15, 23, 42, 1) 100%);
    backdrop-filter: blur(4px);
}

.skill-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    opacity: 1;
    transform: translateY(0);
    height: 72px;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #4338CA);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

/* Icon Container */
.skill-card-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
    flex-shrink: 0;
}

.icon-box {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.skill-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Card Info Container */
.skill-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    align-items: stretch;
}

/* Info Header - Name & Percentage */
.skill-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.skill-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    flex: 1;
}

/* Proficiency Value */
.proficiency-value {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
}

.proficiency-bar {
    height: 4px;
    background: var(--primary-lighter);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    width: 100%;
    transition: background 0.4s ease;
}

.proficiency-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-color), #4338CA);
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.proficiency-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer-bar 2s infinite;
}

@keyframes shimmer-bar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Proficiency Color Coding */
.skill-card[data-proficiency="95"] .proficiency-fill,
.skill-card[data-proficiency="90"] .proficiency-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

.skill-card[data-proficiency="85"] .proficiency-fill {
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

.skill-card[data-proficiency="80"] .proficiency-fill {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.skill-card[data-proficiency="75"] .proficiency-fill {
    background: linear-gradient(90deg, #8b5cf6, #6d28d9);
}

.skill-card[data-proficiency="70"] .proficiency-fill {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}



/* ========== CONTACT SECTION ========== */
.contact {
    padding: 5rem 0 1rem 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-content-centered {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

/* Modern Form Styles */
.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

body.dark-mode .form-label {
    color: #FFFFFF;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .form-input,
body.dark-mode .form-textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(100, 116, 139, 0.6);
}

body.dark-mode .form-input::placeholder,
body.dark-mode .form-textarea::placeholder {
    color: rgba(203, 213, 225, 0.5);
}

.form-input:focus,
.form-textarea:focus {
    border-color: rgba(168, 199, 250, 0.5);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .form-input:focus,
body.dark-mode .form-textarea:focus {
    background: rgba(255, 255, 255, 0.08);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid rgba(79, 70, 229, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

body.dark-mode .checkbox-label {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(79, 70, 229, 0.25);
}

.checkbox-label:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

body.dark-mode .checkbox-label:hover {
    background: rgba(79, 70, 229, 0.1);
}

.checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checkbox-text {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    user-select: none;
}

body.dark-mode .checkbox-text {
    color: #FFFFFF;
}

/* Submit Button */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    position: relative;
    z-index: 1;
    background: transparent;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(79, 70, 229, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(79, 70, 229, 0.2);
    z-index: -1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.submit-btn:hover {
    transform: translateY(-3px);
}

.submit-btn:hover::before {
    background: rgba(79, 70, 229, 0.9);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--primary-lighter);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-light-alt);
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

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

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--bg-light-alt);
    transition: var(--transition);
}

.info-item:hover {
    background: var(--bg-light-alt-2);
    transform: translateX(5px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.info-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Social Links */
.social-links h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--primary-lighter);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px) scale(1.1);
}

.social-icon.whatsapp:hover { background: #25D366; border-color: #25D366; }
.social-icon.linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.social-icon.instagram:hover { background: #E1306C; border-color: #E1306C; }
.social-icon.twitter:hover { background: #1DA1F2; border-color: #1DA1F2; }
.social-icon.facebook:hover { background: #1877F2; border-color: #1877F2; }

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-light);
    padding: 2rem 0;
    border-top: 1px solid rgba(79, 70, 229, 0.1);
    margin-top: 2rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom i {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 0 0.3rem;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large Desktop (1920px and above) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    h1 { font-size: 4rem; }
    h2 { font-size: 3rem; }
    
    .section-title { font-size: 3rem; }
    
    .hero-content {
        gap: 6rem;
    }
    
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .profile-image {
        width: 450px;
        height: 450px;
    }
}

/* Desktop to Tablet Transition (1024px - 1919px) */
@media (min-width: 1025px) and (max-width: 1919px) {
    .hero-content {
        gap: 3rem;
    }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    
    .section-title { font-size: 2.2rem; }
    
    .nav-menu {
        gap: 2rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }
    
    .hero {
        margin-top: 70px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-buttons {
        gap: 1.2rem;
    }

    .profile-image {
        width: 300px;
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .about-stats {
        position: sticky;
        top: 100px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .skills-filters {
        gap: 0.8rem;
    }

    .filter-skill-btn {
        padding: 0.7rem 1.6rem;
        font-size: 0.92rem;
    }

    .skill-card {
        height: 70px;
        padding: 0.9rem;
        gap: 0.9rem;
    }

    .skill-card-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
    }

    .skill-card-title {
        font-size: 0.88rem;
    }

    .proficiency-value {
        font-size: 0.78rem;
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

}

/* Tablet Navigation (≤1024px) */
@media (max-width: 1024px) {
    .nav-container {
        gap: 1.25rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        flex-direction: column;
        position: fixed;
        top: 90px;
        right: 20px;
        left: auto;
        width: min(420px, calc(100vw - 40px));
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0 1.5rem;
        gap: 0.75rem;
        border-radius: 16px;
        border: 1px solid rgba(79, 70, 229, 0.3);
        box-shadow: 0 15px 40px rgba(15, 23, 42, 0.22);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.35s ease, visibility 0.35s ease, padding 0.35s ease;
    }

    .nav-menu.active {
        max-height: calc(100vh - 140px);
        opacity: 1;
        visibility: visible;
        padding: 1.5rem 1.5rem;
        overflow-y: auto;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 0.98rem;
        color: #1E293B;
        white-space: nowrap;
    }

    .nav-link::before {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scaleX(0.8) scaleY(0.75);
        width: 94%;
        height: 2.5rem;
        border-radius: 12px;
        background: rgba(79, 70, 229, 0.12);
        border: 1px solid rgba(79, 70, 229, 0.25);
        opacity: 0;
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        opacity: 1;
        transform: translate(-50%, -50%) scaleX(1) scaleY(1);
        background: rgba(79, 70, 229, 0.2);
        border-color: rgba(79, 70, 229, 0.4);
    }

    .nav-link.active {
        color: #4F46E5;
    }
}

/* Medium Tablets and Small Laptops (768px - 768px) - Clean transition */
@media (max-width: 1024px) {
    .blob-1 {
        width: 250px;
        height: 250px;
        top: -30px;
        right: -30px;
    }

    .blob-2 {
        width: 150px;
        height: 150px;
    }

    .blob-3 {
        width: 200px;
        height: 200px;
    }
}

/* Small Tablets and Large Phones (480px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    
    .section-title { 
        font-size: 1.9rem;
        margin-bottom: 2.5rem;
    }
    
    .container {
        padding: 0 18px;
    }

    /* Navigation */
    .navbar {
        padding: 1rem 1.2rem;
        top: 18px;
        left: 18px;
        right: 18px;
        border-radius: 18px;
        box-shadow: 0 7px 28px rgba(0, 0, 0, 0.11);
    }

    .navbar.scrolled {
        padding: 0.9rem 1.2rem;
        box-shadow: 0 9px 36px rgba(0, 0, 0, 0.14);
    }

    .nav-container {
        padding: 0;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .nav-logo a {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px;
        left: 18px;
        right: 18px;
        width: auto;
        max-width: none;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0 1.5rem;
        gap: 0.5rem;
        z-index: 999;
        border-left: none;
        border-radius: 14px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease-out, opacity 0.35s ease-out, visibility 0.35s ease-out, padding 0.35s ease-out;
    }

    .nav-menu.active {
        max-height: 700px;
        opacity: 1;
        visibility: visible;
        padding: 1.5rem 1.5rem;
        overflow-y: auto;
        box-shadow: 0 7px 28px rgba(0, 0, 0, 0.11);
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-item {
        width: 100%;
        position: relative;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.7rem 1.1rem;
        display: block;
        width: 100%;
        transition: color 0.4s ease-out;
        color: #1E293B;
    }

    .nav-link::before {
        top: 50%;
        left: 50%;
        transform: translateY(-50%) translateX(-50%) scaleX(0.8) scaleY(0.75);
        height: 2.4rem;
        width: 95%;
        border-radius: 9px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(79, 70, 229, 0.1);
        border: 1px solid rgba(79, 70, 229, 0.25);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        opacity: 1;
        transform: translateY(-50%) translateX(-50%) scaleX(1) scaleY(1);
        background: rgba(79, 70, 229, 0.2);
        border-color: rgba(79, 70, 229, 0.4);
    }

    .nav-link.active {
        color: #4F46E5;
    }

    /* Theme Toggle */
    .theme-toggle {
        top: 75px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        margin-top: 0;
        min-height: 90vh;
    }

    .hero-container {
        padding: 0 18px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.75rem;
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 44px;
        padding: 12px 20px;
    }

    .hero-image {
        order: -1;
        margin-bottom: 1rem;
    }

    .profile-image {
        width: 240px;
        height: 240px;
    }

    /* About Section */
    .about {
        padding: 4rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-item {
        margin-bottom: 1.5rem;
        padding: 1.2rem;
    }

    .about-item h3 {
        font-size: 1.2rem;
    }

    .about-stats {
        padding: 2rem;
        position: relative;
        top: auto;
    }

    .stat-item {
        margin-bottom: 1.5rem;
    }

    .stat-number,
    .stat-label-alt {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Skills Section */
    .skills {
        padding: 4rem 0;
    }

    .skills-grid:first-of-type {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .skill-category h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    /* Portfolio */
    .portfolio {
        padding: 4rem 0;
    }

    .portfolio-filters {
        gap: 0.6rem;
        margin-bottom: 3rem;
    }

    .filter-btn {
        padding: 9px 18px;
        font-size: 0.88rem;
        min-height: 40px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-image {
        height: 250px;
    }

    .portfolio-info {
        padding: 1.5rem;
    }

    .portfolio-info h3 {
        font-size: 1.1rem;
    }

    .portfolio-info p {
        font-size: 0.85rem;
    }

    /* Skills Showcase */
    .skills-showcase {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .skills-filters {
        margin-bottom: 3rem;
        gap: 0.65rem;
    }

    .filter-skill-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
        min-height: 40px;
    }

    .skill-card {
        height: auto;
        padding: 1rem;
        gap: 0.8rem;
        min-height: 70px;
    }

    .skill-card-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .skill-card-title {
        font-size: 0.87rem;
    }

    .proficiency-value {
        font-size: 0.76rem;
    }

    /* Contact Section */
    .contact {
        padding: 4rem 0 1.5rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 11px 14px;
        font-size: 1rem;
        min-height: 44px;
    }

    .form-group textarea {
        min-height: 130px;
    }

    .info-item {
        padding: 1.2rem;
    }

    .info-icon {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
        flex-shrink: 0;
    }

    .social-icons {
        gap: 0.75rem;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Mobile Phones (max 480px) */
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }

    .section-title { 
        font-size: 1.5rem;
        margin-bottom: 1.8rem;
    }

    .container {
        padding: 0 16px;
    }

    /* Navigation */
    .navbar {
        padding: 1rem 1.2rem;
        top: 15px;
        left: 15px;
        right: 15px;
        border-radius: 16px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    }

    .navbar.scrolled {
        padding: 0.9rem 1.2rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    }

    .nav-container {
        padding: 0;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .nav-logo a {
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        gap: 5px;
    }

    .bar {
        width: 22px;
        height: 2.5px;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 75px;
        left: 15px;
        right: 15px;
        width: auto;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0 1.5rem;
        gap: 0.75rem;
        z-index: 999;
        border-left: none;
        border-radius: 12px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease-out, opacity 0.35s ease-out, visibility 0.35s ease-out, padding 0.35s ease-out;
    }

    .nav-menu.active {
        max-height: 700px;
        opacity: 1;
        visibility: visible;
        padding: 1.5rem 1.5rem;
        overflow-y: auto;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }

    .nav-item {
        width: 100%;
        position: relative;
        padding: 0;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
        display: block;
        width: 100%;
        transition: color 0.4s ease-out;
        color: #1E293B;
    }

    .nav-link::before {
        top: 50%;
        left: 50%;
        transform: translateY(-50%) translateX(-50%) scaleX(0.85) scaleY(0.75);
        height: 2.35rem;
        width: 94%;
        border-radius: 9px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(79, 70, 229, 0.1);
        border: 1px solid rgba(79, 70, 229, 0.25);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        opacity: 1;
        transform: translateY(-50%) translateX(-50%) scaleX(1) scaleY(1);
        background: rgba(79, 70, 229, 0.2);
        border-color: rgba(79, 70, 229, 0.4);
    }

    .nav-link.active {
        color: #4F46E5;
    }

    /* Theme Toggle */
    .theme-toggle {
        top: 70px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    /* Button */
    .btn {
        padding: 11px 18px;
        font-size: 0.88rem;
        gap: 0.5rem;
        min-height: 44px;
        border-radius: 8px;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Hero Section */
    .hero {
        margin-top: 0;
        min-height: 85vh;
    }

    .hero-container {
        padding: 0 16px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-tagline {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 1.2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 1rem;
    }

    .profile-image {
        width: 180px;
        height: 180px;
        box-shadow: var(--shadow-md);
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .scroll-arrow {
        font-size: 1.2rem;
    }

    /* About Section */
    .about {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-item {
        margin-bottom: 1.2rem;
        padding: 1rem;
        border-radius: 10px;
    }

    .about-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .about-item h3 i {
        font-size: 1.3rem;
    }

    .about-item p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .specialties-list li {
        padding: 0.5rem 0;
        font-size: 0.85rem;
        gap: 0.6rem;
    }

    .about-stats {
        padding: 1.5rem;
        border-radius: 12px;
        position: static;
    }

    .stat-item {
        margin-bottom: 1.2rem;
    }

    .stat-item:last-child {
        margin-bottom: 0;
    }

    .stat-number,
    .stat-label-alt {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Skills Section */
    .skills {
        padding: 3rem 0;
    }

    .skills-grid:first-of-type {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-category h3 {
        font-size: 1.2rem;
        margin-bottom: 1.3rem;
        gap: 0.6rem;
    }

    .skill-item {
        margin-bottom: 1.5rem;
    }

    .skill-name {
        font-size: 0.85rem;
    }

    .skill-percentage {
        font-size: 0.8rem;
    }

    /* Portfolio */
    .portfolio {
        padding: 3rem 0;
    }

    .portfolio-filters {
        gap: 0.5rem;
        margin-bottom: 2.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 38px;
        border-radius: 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .portfolio-image {
        height: 200px;
    }

    .portfolio-info {
        padding: 1.2rem;
    }

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

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

    .portfolio-links {
        gap: 1rem;
    }

    .portfolio-link {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    /* Skills Showcase */
    .skills-showcase {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .skills-filters {
        margin-bottom: 2.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-skill-btn {
        padding: 0.55rem 1.1rem;
        font-size: 0.8rem;
        min-height: 38px;
        border-radius: 45px;
    }

    .skill-card {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 0.6rem;
        text-align: center;
        min-height: auto;
    }

    .skill-card-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        margin: 0 auto;
    }

    .icon-box {
        font-size: 1rem;
    }

    .skill-icon-img {
        width: 26px;
        height: 26px;
    }

    .skill-card-info {
        width: 100%;
    }

    .skill-info-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .skill-card-title {
        font-size: 0.82rem;
        font-weight: 600;
    }

    .proficiency-value {
        font-size: 0.75rem;
    }

    /* Contact Section */
    .contact {
        padding: 3rem 0 1rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        gap: 1.2rem;
    }

    .form-group {
        gap: 0.4rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px;
        border-radius: 8px;
        min-height: 44px;
    }

    .form-group textarea {
        min-height: 110px;
        resize: vertical;
    }

    button[type="submit"] {
        width: 100% !important;
        min-height: 44px;
        font-size: 0.95rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .info-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .info-content h3 {
        font-size: 1rem;
    }

    .info-content p,
    .info-content a {
        font-size: 0.85rem;
    }

    .social-links h3 {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .social-icons {
        justify-content: center;
        gap: 0.75rem;
    }

    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 0.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-section p,
    .footer-section ul li a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .section-title { 
        font-size: 1.5rem; 
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 1rem;
    }



    .about-item {
        padding: 1rem;
    }

    .portfolio-filters {
        gap: 0.75rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .portfolio-info {
        padding: 1.5rem;
    }


    /* Skills Showcase Mobile */
    .skills-showcase {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .skills-filters {
        margin-bottom: 2.5rem;
        gap: 0.6rem;
    }

    .filter-skill-btn {
        padding: 0.55rem 1.2rem;
        font-size: 0.8rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .skill-card {
        padding: 1.3rem;
        gap: 0.9rem;
    }

    .skill-card-icon {
        width: 44px;
        height: 44px;
    }

    .icon-box {
        font-size: 1.1rem;
    }

    .skill-icon-img {
        width: 28px;
        height: 28px;
    }

    .skill-card-title {
        font-size: 0.95rem;
    }

    .skill-card-category {
        font-size: 0.75rem;
    }

    .proficiency-value {
        font-size: 0.85rem;
    }

    .skill-item {
        gap: 0.75rem;
    }

    .icon-placeholder {
        width: 40px;
        height: 40px;
    }

    .skill-icon-img {
        width: 22px;
        height: 22px;
    }

    .skill-name {
        font-size: 0.8rem;
    }

    .skill-bar-wrapper {
        height: 8px;
    }

    .skill-percentage {
        font-size: 0.75rem;
        min-width: 35px;
    }

    .contact-form {
        gap: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .info-icon {
        margin: 0 auto;
    }

    .social-icons {
        justify-content: center;
    }

    .footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-section ul li a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* ========== AOS ANIMATIONS ========== */
[data-aos] {
    opacity: 0;
    transition-duration: 600ms;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0) translateX(0) !important;
}

/* ========== IMAGE RESPONSIVENESS ========== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

/* ========== OVERFLOW PREVENTION ========== */
body {
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 480px) {
    * {
        max-width: 100%;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-primary { color: var(--primary-color); }
.text-muted { color: var(--text-muted); }
.bg-light { background: var(--bg-light); }
.bg-light-alt { background: var(--bg-light-alt); }

/* Smooth transitions for color changes */
* {
    transition-property: background-color, color, border-color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* ========== FORM ALERT ANIMATIONS ========== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Fade-in animation for alerts */
.animate-fadeIn {
    animation: slideDown 0.3s ease-out;
}