/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors */
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-bg-hover: rgba(255, 255, 255, 0.12);
    --glass-border-hover: rgba(255, 255, 255, 0.25);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #888888;
    --accent-primary: #6366f1;
    --accent-secondary: #4f46e5;
    --accent-tertiary: #3b82f6;
    --neon-purple: #6366f1;
    --neon-pink: #6366f1;
    --neon-blue: #3b82f6;
    --neon-cyan: #1d4ed8;
    --neon-emerald: #2563eb;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1, #4f46e5);
    --gradient-secondary: linear-gradient(135deg, #4f46e5, #3b82f6);
    --gradient-tertiary: linear-gradient(135deg, #1d4ed8, #6366f1);
    --gradient-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f23 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);

    /* Typography */
    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Fluid type scale - single hierarchy */
    --font-size-xs: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
    --font-size-md: clamp(1.0625rem, 0.95rem + 0.45vw, 1.1875rem);
    --font-size-base: clamp(1rem, 0.9rem + 0.375vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.625vw, 1.375rem);
    --font-size-2xl: clamp(1.375rem, 1.2rem + 0.75vw, 1.5rem);
    --font-size-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.25rem);
    --font-size-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 3rem);
    --font-size-5xl: clamp(3rem, 2.2rem + 4vw, 4.5rem);

    /* Line heights */
    --lh-tight: 1.1;
    --lh-snug: 1.3;
    --lh-normal: 1.5;
    --lh-relaxed: 1.7;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Spacing */
    --section-padding: 90px 0;
    --container-padding: 0 24px;
    --container-max-width: 1200px;

    /* Shadows */
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
    --shadow-glow-pink: 0 0 40px rgba(99, 102, 241, 0.2);
    --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.2);
    --shadow-floating: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* Font loading optimization */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    font-display: swap;
}

body {
    font-family: var(--font-secondary);
    background: var(--gradient-bg);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    line-height: var(--lh-normal);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(99, 102, 241, 0.15) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(99, 102, 241, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 40% 60%,
            rgba(59, 130, 246, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 60% 30%,
            rgba(29, 78, 216, 0.06) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(37, 99, 235, 0.05) 0%,
            transparent 50%
        );
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(1deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-1deg);
    }
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Glass Morphism Utility */
.glass {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-floating);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glass:hover::before {
    opacity: 1;
}

.glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-floating), var(--shadow-glow);
    transform: translateY(-5px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: var(--lh-tight);
    margin-bottom: var(--space-4);
    color: #ffffff;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    border-radius: 2px;
    opacity: 0.6;
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-size: var(--font-size-lg);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: var(--lh-snug);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.header.scrolled {
    background: rgba(10, 10, 10, 0.1);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 8px 16px;
    margin: -8px -16px;
}

.logo:hover::after {
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 6px; /* Equal padding on all sides */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.1);
    height: 44.8px;
}

.nav-link {
    font-family: var(--font-secondary);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 8px 18px; /* Smaller padding to create visible space around hover badge */
    border-radius: 64px;
    background: transparent;
    border: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-link:hover,
.nav-link.active {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
    outline: none;
    border: none;
}

.cta-button {
    font-family: var(--font-secondary);
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    border-radius: 64px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 24px rgba(99, 102, 241, 0.2),
        0 2px 8px rgba(79, 70, 229, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
        background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(79, 70, 229, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 1);
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.35),
        0 4px 16px rgba(79, 70, 229, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Mobile menu footer - hidden on desktop */
.mobile-menu-footer {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 6px;
    background: none;
    border: none;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 44px;
    min-height: 44px;
    position: relative;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    display: block;
}

.hamburger:focus {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}

.hamburger:focus:not(:focus-visible) {
    outline: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 80px 0 60px;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.hero-avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    position: relative;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--glass-border) !important;
    box-shadow: var(--shadow-glass) !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.15));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 90px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.1));
    opacity: 0.8;
    pointer-events: none;
}

.hero-badge-icon {
    width: 14px;
    height: 14px;
    color: #6366f1;
    filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.5));
}

.hero-headline {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 1.8rem + 3vw, 3.8rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: var(--lh-tight);
    margin-bottom: var(--space-8);
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-headline .highlight {
    font-family: 'Times New Roman', Times, serif;
    color: #ffffff;
    font-weight: 500;
    position: relative;
}

.hero-subheadline {
    font-family: var(--font-secondary);
    font-size: clamp(1.35rem, 1rem + 1vw, 1.7rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: var(--lh-snug);
    color: var(--text-secondary);
    max-width: 60ch;
    margin: 0 auto var(--space-12);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button System */
.btn {
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    border: none;
    border-radius: calc(var(--radius-md) + 40px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.view-case-btn {
    align-self: flex-start;
}

/* Button Sizes */
.btn-large {
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-base);
}

.btn-medium {
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-sm);
}

.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

/* Button Variants */
.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 16px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.btn-link {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 52px;
    font-weight: 400;
    position: relative;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.btn-link:hover::after {
    transform: scaleX(1);
}

.btn-small {
    padding: 10px 18px;
    font-size: 0.875rem;
    border-radius: 52px;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 52px;
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

@keyframes scrollWheel {
    0%, 20%, 50%, 80%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    40% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(8px);
    }
    60% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(4px);
    }
}

/* About Section */
.about {
    padding: var(--section-padding);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.about-intro {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: var(--lh-snug);
    color: #ffffff;
    margin-bottom: 20px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.about-title {
    margin-bottom: var(--space-8);
    text-align: left;
}

.about-title::after {
    left: 0;
    transform: none;
}

.about-text p {
    font-family: var(--font-secondary);
    font-size: var(--font-size-md);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: var(--lh-normal);
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.about-location {
    font-weight: 600;
    color: var(--accent-primary);
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tag {
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.tag:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.tag:nth-child(odd):hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.about-image {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
    background-image: url('../IMG_9306.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: right !important;
    align-items: flex-end;
    padding: 32px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    min-height: 430px;
}

.experience-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 19px 23px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 57px;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    transform: scale(0.95);
}

.experience-badge:hover {
    transform: scale(0.95) translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.experience-badge-icon-wrapper {
    width: 47px;
    height: 47px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(99, 102, 241, 0.9));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.experience-badge-icon {
    width: 23px;
    height: 23px;
    color: #ffffff;
}

.experience-badge-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.experience-badge-number {
    font-size: 2.09rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    margin-bottom: 2px;
}

/* About badge text */
.experience-badge .badge-text {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.portfolio-item {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-floating);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

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

.portfolio-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-floating), var(--shadow-glow);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

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

.portfolio-content {
    padding: 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-title {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: var(--lh-snug);
    margin-bottom: 10px;
    color: #ffffff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.portfolio-description {
    font-family: var(--font-secondary);
    font-size: var(--font-size-sm);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: var(--lh-normal);
    color: var(--text-secondary);
    margin-bottom: 18px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    max-height: calc(2 * (0.875rem * 1.5 + 19px) + 8px);
    overflow: hidden;
}

.portfolio-spacer {
    flex-grow: 1;
}

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

.portfolio-footer .btn-link {
    color: var(--neon-purple);
    font-weight: 500;
    position: relative;
}

.portfolio-footer .btn-link:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Experience Section */
.experience {
    padding: var(--section-padding);
}

/* Interactive Timeline Progress Bar */
.timeline-progress {
    margin-bottom: 80px;
    position: relative;
}

.progress-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    border-radius: 3px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.year-tabs {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 40px;
    align-items: center; /* Vertically center all buttons */
}

.view-all-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 3;
    margin-right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 120px;
    align-self: center; /* Center vertically with other buttons */
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.view-all-btn.active {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}

.view-all-btn span {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-all-btn.active span {
    color: #4f46e5;
    text-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.view-all-btn .view-all-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.view-all-btn.active .view-all-indicator {
    background: linear-gradient(135deg, #4f46e5, #1d4ed8);
    box-shadow:
        0 0 0 4px rgba(79, 70, 229, 0.2),
        0 0 20px rgba(79, 70, 229, 0.4);
    animation: indicatorPulse 2s ease-in-out infinite;
}

.year-tab {
    background: none;
    border: none;
    cursor: pointer;
    padding: 16px 24px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 120px;
    align-self: center; /* Center vertically with other buttons */
}

.year-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.year-tab.active {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}

.year-number {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.year-tab.active .year-number {
    color: #4f46e5;
    text-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.year-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.year-tab.active .year-indicator {
    background: linear-gradient(135deg, #4f46e5, #1d4ed8);
    box-shadow:
        0 0 0 4px rgba(79, 70, 229, 0.2),
        0 0 20px rgba(79, 70, 229, 0.4);
    animation: indicatorPulse 2s ease-in-out infinite;
}

@keyframes indicatorPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 4px rgba(79, 70, 229, 0.2),
            0 0 20px rgba(79, 70, 229, 0.4);
    }
    50% {
        transform: scale(1.2);
        box-shadow:
            0 0 0 6px rgba(79, 70, 229, 0.3),
            0 0 30px rgba(79, 70, 229, 0.6);
    }
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 50px;
    min-height: 320px;
}

/* Year-based grid layouts - All single column */
.experience-grid[data-year="2024"] {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 50px 0 0;
}

.experience-grid[data-year="2023"] {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 50px 0 0;
}

.experience-grid[data-year="2022"] {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 100%;
    margin: 50px 0 0;
}

.experience-grid[data-year="2021"] {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 100%;
    margin: 50px 0 0;
}

/* Card filtering states */
.experience-card {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.experience-card.active {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
    display: flex !important;
    animation: cardFadeIn 0.24s ease-out forwards;
}

.experience-card.inactive {
    opacity: 0 !important;
    transform: translateY(10px) scale(0.98) !important;
    pointer-events: none !important;
    display: none !important;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Experience Cards */
.experience-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: var(--shadow-floating);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Non-featured experience cards - match Process block styling */
.experience-card:not(.featured) {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.experience-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-floating), var(--shadow-glow);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

/* Non-featured cards hover effect - match Process block */
.experience-card:not(.featured):hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), var(--shadow-glow);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.experience-card:hover::before {
    opacity: 1;
}

/* Non-featured cards ::before effect - match Process block */
.experience-card:not(.featured)::before {
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.experience-card:not(.featured):hover::before {
    opacity: 1;
}

/* Featured Card Styling */
.experience-card.featured {
    border: 2px solid var(--neon-purple);
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.1) 0%,
        rgba(244, 114, 182, 0.05) 100%);
    box-shadow:
        var(--shadow-floating),
        0 0 40px rgba(139, 92, 246, 0.2);
}

.experience-card.featured::before {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.15) 0%,
        rgba(244, 114, 182, 0.1) 100%);
}

/* Active year card glow effect - only for featured card */
.experience-card.featured.active {
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow:
        var(--shadow-floating),
        0 0 30px rgba(168, 85, 247, 0.15),
        0 0 60px rgba(34, 211, 238, 0.1);
}

.experience-card.featured.active::before {
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.08) 0%,
        rgba(34, 211, 238, 0.05) 100%);
    opacity: 1;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    gap: 16px;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.logo-placeholder {
    color: var(--neon-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-details {
    flex: 1;
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 16px;
}

.company-header .role-duration {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    white-space: nowrap;
    margin-left: 16px;
}

.company-name {
    font-family: var(--font-primary);
    font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 6px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.2;
}

.company-location {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.role-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.role-title {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 1rem + 0.3vw, 1.25rem);
    font-weight: 600;
    color: var(--accent-primary);
    display: block;
    margin-top: 6px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.role-duration {
    font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Card Content */
.card-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.achievement-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.achievement-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.achievement-text {
    flex: 1;
}

.achievement-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.achievement-text p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--lh-snug);
    margin: 0;
}

.responsibilities {
    margin-bottom: 24px;
}

.responsibilities h4 {
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.4rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.responsibilities ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.responsibilities li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.responsibilities li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 18px;
    top: -2px;
}

.skills-used {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.skill-tag {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-size: clamp(0.875rem, 0.8rem + 0.15vw, 1rem);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.skill-tag.primary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.skill-tag:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Card Footer */
.card-footer {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.impact-metrics {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.metric-value {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.8rem);
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Process Section */
.process {
    padding: var(--section-padding);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
}

.process-step {
    text-align: center;
    padding: 28px 18px;
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: var(--shadow-floating);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.process-step:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-floating), var(--shadow-glow);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.process-step:hover::before {
    opacity: 1;
}

.step-icon-container {
    width: 64px;
    height: 64px;
    background: var(--gradient-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-glow);
    border: 1px solid var(--glass-border);
    margin: 0 auto 18px;
    text-align: center;
}

.step-icon-container i {
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}


.step-title {
    font-family: var(--font-primary);
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #ffffff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.step-description {
    font-family: var(--font-secondary);
    font-size: var(--font-size-sm);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: var(--lh-normal);
    color: var(--text-secondary);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skills Section */
.skills {
    padding: var(--section-padding);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
}

.skill-category {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: var(--shadow-floating);
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-floating), var(--shadow-glow);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.skill-category:hover::before {
    opacity: 1;
}

.category-title {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 0.95rem + 0.4vw, 1.3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #ffffff;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    opacity: 0.5;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-item {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.skill-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.skill-item:nth-child(3n+1):hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.skill-item:nth-child(3n+2):hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.skill-item:nth-child(3n+3):hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding);
}

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

.testimonial-item {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: var(--shadow-floating);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.testimonial-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-floating), var(--shadow-glow);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.testimonial-item:hover::before {
    opacity: 1;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.testimonial-name {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 4px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.testimonial-position {
    font-size: 0.910rem;
    color: var(--text-secondary);
}

.testimonial-text {
    font-family: var(--font-secondary);
    font-size: var(--font-size-sm);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: var(--lh-normal);
    color: var(--text-secondary);
    margin-bottom: 18px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    flex-grow: 1;
}

.testimonial-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.testimonial-buttons .btn-small {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.15);
    color: var(--text-secondary);
}

.testimonial-buttons .btn-small:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.testimonial-buttons .btn-link {
    color: var(--neon-blue);
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.10);
}

.testimonial-buttons .btn-link:hover {
    background: rgba(59, 130, 246, 0.22);
    color: #ffffff;
    border-color: rgba(29, 78, 216, 0.6);
    box-shadow: none;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
}

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

.contact-text {
    font-family: var(--font-secondary);
    font-size: var(--font-size-md);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: var(--lh-normal);
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.contact-link i {
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.contact-link:nth-child(1) i {
    color: var(--neon-blue);
}

.contact-link:nth-child(2) i {
    color: var(--accent-primary);
}

.contact-link:nth-child(3) i {
    color: var(--neon-pink);
}

/* Contact section button styling */
.contact-content .btn {
    width: 100%;
    max-width: none;
    padding: 12px 24px;
    font-size: var(--font-size-base);
    justify-content: center;
}

/* Footer */
.footer {
    padding: 45px 0 25px;
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-floating);
}


.footer-content {
    position: relative;
    z-index: 2;
}

/* Footer Header */
.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.footer-logo {
    flex: 1;
}

.footer-logo-text {
    font-family: var(--font-primary);
    font-size: clamp(1.4rem, 1.2rem + 0.75vw, 1.8rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 8px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.footer-tagline {
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: var(--lh-snug);
    max-width: 400px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.location-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
}


/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 18px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 400;
}

.footer-copyright p {
    margin: 0;
}



/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    z-index: 2001;
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: transparent;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    position: relative;
}

.modal-close::before {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    display: block;
    color: var(--text-primary);
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-close:hover::before {
    transform: translate(-50%, -50%) rotate(90deg);
}

.modal-close:focus,
.modal-close:active {
    outline: none;
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    gap: 20px; /* Space between title and actions */
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.modal-description {
    padding: 0;
    font-family: var(--font-secondary);
    font-size: var(--font-size-lg);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: var(--lh-normal);
    color: var(--text-secondary);
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.modal-header h3 {
    font-family: var(--font-primary);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: var(--lh-tight);
    color: #ffffff;
    margin: 0;
    flex: 1 1 auto;
    padding-right: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.modal-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    order: 4;
    position: relative;
}

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

/* Gallery Navigation Buttons */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.modal-nav-prev {
    left: 16px;
}

.modal-nav-next {
    right: 16px;
}

/* Image Indicators */
.modal-image-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.modal-image-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.modal-image-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.modal-image-indicator.active {
    background: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.modal-tags .tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.modal-tags .tag:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.testimonial-full-text {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modal Button Styling */
.modal-body .btn {
    align-self: flex-start;
    padding: 10px 20px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-primary);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 16px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /* margin: 8px 0 0 0; */
}

.modal-body .btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
}

/* Responsive Design */

/* Tablet Portrait and Landscape (769px - 1200px) */
@media (max-width: 1200px) and (min-width: 769px) {
    :root {
        --section-padding: 80px 0;
    }

    /* Tablet Header Layout */
    .nav-container {
        padding: 0 24px;
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
        height: 72px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        position: relative;
    }

    /* Hide desktop navigation pill on tablets */
    .nav-menu {
        display: none !important;
    }

    /* Logo styling - left side */
    .logo {
        display: flex;
        align-items: center;
        height: 100%;
        z-index: 1001;
        flex-shrink: 0;
    }

    /* Show and style CTA button on tablets */
    .cta-button {
        display: inline-flex !important;
        position: unset !important;
        padding: 10px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        margin: 0;
        margin-right: 10px;
        z-index: 1001;
        flex-shrink: 0;
    }

    /* Show hamburger menu on tablets */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        margin: 0;
        z-index: 1002;
        flex-shrink: 0;
        cursor: pointer;
        pointer-events: auto;
        position: unset !important;
        gap: 5px;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
        background: #ffffff;
        display: block;
        transition: all 0.3s ease;
        position: relative;
    }

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

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* Ensure equal height for all cards on tablet */
    .process-step {
        height: 100%;
    }

    .skill-category {
        height: 100%;
    }

    .testimonial-item {
        height: 100%;
    }

    /* Hero avatar - larger on tablet for prominence */
    .hero-avatar {
        width: 188px; /* Increased from 160px (17.5% larger) */
        height: 188px; /* Maintain square proportions */
        margin: 0 auto 28px; /* Slightly increased bottom margin for balance */
    }

    /* Hero buttons - side by side on tablet */
    .hero-buttons {
        flex-direction: row !important; /* Side by side instead of stacked */
        flex-wrap: nowrap; /* Prevent wrapping */
        gap: 18px; /* 16-20px gap between buttons */
        align-items: center; /* Vertically align buttons */
    }

    .hero-buttons .btn {
        flex: 1 1 0; /* Equal width for both buttons */
        min-width: 0; /* Allow flex shrinking */
        max-width: 320px; /* Maximum width for each button */
    }

    /* Modal header button styling for tablets */
    .btn-header-link,
    #modalBehanceLinkHeader {
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .modal-header {
        padding: 18px 32px;
        gap: 16px;
    }

    .modal-header h3 {
        font-size: var(--font-size-xl);
        padding-right: 12px;
    }

    .modal-header-actions {
        gap: 14px;
    }

    .modal-close {
        width: 42px;
        height: 42px;
    }

    .modal-close::before {
        font-size: 1.6rem;
    }
}

/* Desktop Only (min-width: 1024px) - Increased padding for Experience cards */
@media (min-width: 1024px) {
    .experience-card {
        padding: 36px 48px; /* 32-40px top/bottom (36px), 40-56px left/right (48px) */
    }
}

/* Mobile and Tablet Menu Functionality (up to 1200px) */
@media (max-width: 1200px) {
    /* Mobile menu overlay - full screen with blur */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 998;
        opacity: 0;
        animation: fadeIn 0.25s ease forwards;
    }

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

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Hide main logo when menu is open to avoid duplication */
    body.menu-open .logo,
    body.menu-open .logo-text {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Ensure hamburger stays visible when menu is open, but hide CTA button */
    body.menu-open .hamburger {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Hide CTA button when burger menu is open - INSTANTLY with no delay */
    body.menu-open .cta-button {
        visibility: hidden !important;
        pointer-events: none !important;
        transition: none !important;
    }

    /* Mobile menu container - full screen overlay */
    .nav-menu {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column !important;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: none;
        border-radius: 0;
        padding: 100px 24px 180px 24px;
        padding-top: max(100px, env(safe-area-inset-top, 0) + 100px);
        padding-bottom: max(180px, env(safe-area-inset-bottom, 0) + 180px);
        gap: 0;
        height: 100vh;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, 16px, 0);
        transition: opacity 0.28s ease, transform 0.28s ease;
        will-change: opacity, transform;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        justify-content: center;
        align-items: center;
        list-style: none !important;
    }

    .nav-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
        display: flex !important;
    }

    /* Mobile menu header */
    .nav-menu::before {
        content: 'Anna Bratukha';
        position: absolute;
        top: calc(20px + env(safe-area-inset-top, 0));
        left: 24px;
        font-family: var(--font-primary);
        font-size: 1.5rem;
        font-weight: 600;
        color: #ffffff;
        letter-spacing: -0.02em;
        z-index: 1001;
    }

    /* Mobile menu items container */
    .nav-menu li {
        display: block !important;
        width: 100%;
        opacity: 0;
        margin-bottom: 8px;
        list-style: none;
        transform: translate3d(0, 12px, 0);
        transition: opacity 0.32s ease, transform 0.32s ease;
        will-change: opacity, transform;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .nav-menu li:last-child {
        margin-bottom: 0;
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.3s; }

    /* Mobile menu links */
    .nav-menu .nav-link {
        display: block;
        width: 100%;
        padding: 16px 24px;
        text-align: center;
        font-size: 20px;
        line-height: 1.2;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        background: transparent;
        border: 1px solid transparent;
        border-radius: 16px;
        transition: all 0.3s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Active/current menu link - border only */
    .nav-menu .nav-link[aria-current="page"] {
        border-color: rgba(99, 102, 241, 0.6);
        color: rgba(255, 255, 255, 1);
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:active {
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 1);
        transform: scale(1.02);
    }

    .nav-menu .nav-link:focus-visible {
        outline: none;
        border-color: rgba(99, 102, 241, 0.6);
    }

    /* Mobile menu footer - CTA and contact icons */
    .mobile-menu-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 20px)) 24px;
        background: linear-gradient(to top, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.95) 50%, transparent 100%);
        z-index: 1002;
        flex-direction: column;
        gap: 16px;
        opacity: 0;
        visibility: hidden;
        transform: translate3d(0, 24px, 0);
        transition: opacity 0.32s ease, transform 0.32s ease;
        will-change: opacity, transform;
        pointer-events: none;
    }

    body.menu-open .mobile-menu-footer {
        opacity: 1;
        visibility: visible;
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }

    /* Mobile CTA button in menu footer */
    .mobile-cta-button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px 28px;
        background: var(--gradient-primary);
        color: #ffffff;
        text-decoration: none;
        border-radius: 64px;
        font-weight: 500;
        font-size: 1rem;
        min-height: 44px;
        transition: all 0.3s ease;
        box-shadow:
            0 4px 24px rgba(99, 102, 241, 0.3),
            0 2px 8px rgba(79, 70, 229, 0.2);
    }

    .mobile-cta-button:active {
        transform: scale(0.98);
        box-shadow:
            0 2px 16px rgba(99, 102, 241, 0.25),
            0 1px 4px rgba(79, 70, 229, 0.2);
    }

    /* Mobile contact icons */
    .mobile-contact-icons {
        display: flex;
        justify-content: center;
        gap: 16px;
        align-items: center;
    }

    .mobile-contact-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.85rem;
        transition: color 0.3s ease;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .mobile-contact-icon:hover {
        color: rgba(255, 255, 255, 1);
    }

    .mobile-contact-icon svg {
        stroke: currentColor;
    }

    /* Hamburger icon transformation when active (X icon) */
    .hamburger.active {
        background: rgba(255, 255, 255, 0.08);
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    /* Ensure modal button looks good at this breakpoint */
    .btn-header-link,
    #modalBehanceLinkHeader {
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
    }

    .modal-header {
        padding: 18px 28px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-title {
        text-align: center;
    }

    .about-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-text {
        text-align: center;
    }

    .about-tags {
        justify-content: center;
    }

    .experience-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 24px;
    }

    .experience-grid[data-year="2022"],
    .experience-grid[data-year="2021"] {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 80px 0 0;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .role-badge {
        align-items: flex-start;
    }

    .impact-metrics {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-around;
        gap: 16px;
    }

    .year-tabs {
        gap: 20px;
        align-items: center; /* Vertically center all buttons */
    }

    .year-tab {
        padding: 12px 16px;
        max-width: 100px;
        align-self: center; /* Center vertically */
    }

    .view-all-btn {
        padding: 12px 16px;
        margin-right: 15px;
        align-self: center; /* Center vertically */
    }

    .view-all-btn span {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 24px;
    }

    /* Mobile menu overlay - full screen with blur */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 998;
        opacity: 0;
        animation: fadeIn 0.25s ease forwards;
    }

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

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Mobile menu container - full screen overlay */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: none;
        border-radius: 0;
        padding: env(safe-area-inset-top, 0) 24px env(safe-area-inset-bottom, 20px) 24px;
        gap: 0;
        height: 100vh;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate3d(0, 16px, 0);
        transition: opacity 0.28s ease, transform 0.28s ease;
        will-change: opacity, transform;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
    }

    /* Mobile menu header */
    .nav-menu::before {
        content: 'Anna Bratukha';
        position: absolute;
        top: calc(20px + env(safe-area-inset-top, 0));
        left: 24px;
        font-family: var(--font-primary);
        font-size: 1.5rem;
        font-weight: 600;
        color: #ffffff;
        letter-spacing: -0.02em;
        z-index: 1001;
    }

    /* Mobile menu items container */
    .nav-menu li {
        width: 100%;
        opacity: 0;
        margin-bottom: 8px;
        transform: translate3d(0, 12px, 0);
        transition: opacity 0.32s ease, transform 0.32s ease;
        will-change: opacity, transform;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .nav-menu li:last-child {
        margin-bottom: 0;
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.3s; }

    /* Mobile menu links */
    .nav-menu .nav-link {
        display: block;
        width: 100%;
        padding: 16px 24px;
        text-align: center;
        font-size: 20px;
        line-height: 1.2;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        background: transparent;
        border-radius: 16px;
        transition: all 0.3s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:active {
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 1);
        transform: scale(1.02);
    }

    .nav-menu .nav-link:focus-visible {
        outline: 2px solid rgba(99, 102, 241, 0.5);
        outline-offset: 2px;
    }

    /* Show CTA button in mobile header */
    .cta-button {
        position: fixed;
        top: calc(15px + env(safe-area-inset-top, 0));
        right: 84px;
        z-index: 1001;
        padding: 10px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
        min-height: 44px;
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow:
            0 4px 24px rgba(99, 102, 241, 0.2),
            0 2px 8px rgba(79, 70, 229, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .cta-button:active {
        transform: translateY(0) scale(0.98);
        background: rgba(255, 255, 255, 0.12);
        box-shadow:
            0 2px 16px rgba(99, 102, 241, 0.25),
            0 1px 4px rgba(79, 70, 229, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    /* Mobile menu footer - CTA and contact icons */
    .mobile-menu-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 20px)) 24px;
        background: linear-gradient(to top, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.95) 50%, transparent 100%);
        z-index: 1002;
        flex-direction: column;
        gap: 16px;
        opacity: 0;
        visibility: hidden;
        transform: translate3d(0, 24px, 0);
        transition: opacity 0.32s ease, transform 0.32s ease;
        will-change: opacity, transform;
        pointer-events: none;
    }

    body.menu-open .mobile-menu-footer {
        opacity: 1;
        visibility: visible;
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }

    /* Mobile CTA button */
    .mobile-cta-button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px 28px;
        background: var(--gradient-primary);
        color: #ffffff;
        text-decoration: none;
        border-radius: 64px;
        font-family: var(--font-secondary);
        font-weight: 500;
        font-size: 18px;
        line-height: 1;
        letter-spacing: -0.01em;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow:
            0 4px 24px rgba(99, 102, 241, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        text-align: center;
        min-height: 56px;
        width: 100%;
    }

    .mobile-cta-button:active {
        transform: scale(0.98);
        box-shadow:
            0 2px 16px rgba(99, 102, 241, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    /* Mobile contact icons row */
    .mobile-contact-icons {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .mobile-contact-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 12px;
        min-width: 70px;
        min-height: 44px;
    }

    .mobile-contact-icon svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
    }

    .mobile-contact-icon span {
        font-size: 12px;
        font-weight: 500;
        letter-spacing: -0.01em;
        color: rgba(255, 255, 255, 0.6);
    }

    .mobile-contact-icon:active {
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 1);
        transform: scale(0.95);
    }

    .mobile-contact-icon:active span {
        color: rgba(255, 255, 255, 0.9);
    }

    .mobile-contact-icon:focus-visible {
        outline: 2px solid rgba(99, 102, 241, 0.5);
        outline-offset: 2px;
    }

    /* Hamburger menu button - positioned in top right */
    .hamburger {
        position: fixed;
        top: calc(15px + env(safe-area-inset-top, 0));
        right: 24px;
        z-index: 1001;
        background: transparent;
        border-radius: 12px;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        transition: all 0.3s ease;
    }

    .hamburger:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .hamburger:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.12);
    }

    /* Hamburger lines */
    .hamburger span {
        width: 24px;
        height: 2.5px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.22s ease;
        display: block;
        position: relative;
    }

    /* X icon when menu is active */
    .hamburger.active {
        background: rgba(255, 255, 255, 0.08);
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .nav-container {
        padding: 0 24px;
        padding-top: env(safe-area-inset-top, 0);
        height: calc(80px + env(safe-area-inset-top, 0));
    }

    .logo {
        font-size: 1.5rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .section-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
        letter-spacing: -0.03em;
    }

    .hero-headline {
        font-size: clamp(2rem, 6vw, 3.2rem);
        letter-spacing: -0.04em;
        margin-bottom: 0;
    }

    .hero-subheadline {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Show hamburger button on mobile */
    .hamburger {
        display: flex !important;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
        background: #ffffff;
    }

    .hero {
        padding: 80px 0 60px;
        min-height: 100vh;
        position: relative;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 20px;
        width: 100%;
    }

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

    .btn-large {
        padding: 16px 24px;
        font-size: 1rem;
    }

    .btn-medium, .btn-small {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
    }

    .hero-avatar {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }

    .hero-badge {
        padding: 10px 16px;
        font-size: 0.8rem;
        margin-bottom: 24px;
    }

    .scroll-indicator {
        display: flex;
        position: absolute;
        bottom: var(--space-10);
        left: 50%;
        transform: translateX(-50%);
        margin-top: 48px;
        animation: fadeInSlideDown 1s ease-out 0.8s both;
    }

    @keyframes fadeInSlideDown {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-20px);
        }
        to {
            opacity: 0.6;
            transform: translateX(-50%) translateY(0);
        }
    }

    .about-image {
        padding: 24px;
        justify-content: flex-start !important;
    }

    .experience-badge {
        padding: 15px 19px;
        gap: 13px;
        border-radius: 53px;
    }

    .experience-badge-number {
        font-size: 1.71rem;
    }
}

/* Tablet Only (769px - 1200px) - Experience badge positioned at bottom-left with adjusted width */
@media (max-width: 1200px) and (min-width: 769px) {
    .about-image {
        padding: 28px;
    }

    .experience-badge {
        padding: 17px 21px;
        gap: 13px;
        min-width: 209px;
        box-sizing: border-box;
    }

    .experience-badge-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .experience-badge .badge-text {
        white-space: nowrap;
    }

    .experience-badge-number {
        margin-bottom: 2px;
        margin-right: 0;
    }

    /* Stats block (impact-metrics) - single horizontal line on tablet */
    .impact-metrics {
        flex-direction: row !important; /* Display all items in one horizontal line */
        align-items: center; /* Center items vertically */
        justify-content: space-around; /* Distribute items evenly */
        gap: 12px; /* Spacing between items */
        padding: 16px; /* Same padding as mobile */
        height: auto; /* Auto height */
    }

    .metric {
        flex: 0 0 auto; /* Don't grow or shrink, use natural width */
        align-items: center; /* Center content within each metric */
        text-align: center; /* Center text */
        min-width: 80px; /* Minimum width for consistency */
    }

    /* Keep font sizes the same as mobile */
    .metric-value {
        font-size: 1.3rem; /* Same as mobile */
    }

    .metric-label {
        font-size: 0.8rem; /* Same as mobile */
    }
}

@media (max-width: 768px) {
    .portfolio-image {
        height: 220px;
    }

    .portfolio-content {
        padding: 24px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Compact Process cards for mobile */
    .process-step {
        padding: 20px 18px; /* Reduced top and bottom padding from 28px to 20px */
    }

    .step-icon-container {
        width: 56px; /* Reduced from 64px */
        height: 56px; /* Reduced from 64px */
        margin-bottom: 14px; /* Reduced from 18px */
    }

    .step-icon-container i {
        font-size: 1.75rem; /* Reduced from 2rem */
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-links {
        gap: 16px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .career-progress {
        margin-bottom: 40px;
    }

    .progress-milestones {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .milestone {
        flex: 0 0 auto;
    }

    .experience-card {
        padding: 24px;
    }

    .achievement-highlight {
        flex-direction: column;
        text-align: center;
    }

    .skills-used {
        justify-content: flex-start; /* Align tags to the left on mobile */
    }

    .timeline-progress {
        margin-bottom: 40px; /* Reduced vertical spacing */
    }

    .progress-container {
        max-width: 100%;
    }

    /* Thinner progress bar for mobile */
    .progress-bar {
        height: 2px; /* Thinner progress line (1-2px) */
        border-radius: 1px;
        margin-bottom: 24px; /* Reduced spacing */
    }

    .progress-fill {
        border-radius: 1px;
        box-shadow: 0 0 12px rgba(99, 102, 241, 0.4); /* Slightly reduced glow for proportion */
    }

    /* Compact year tabs - all on one line with horizontal scroll if needed */
    .year-tabs {
        display: flex;
        flex-wrap: nowrap; /* Keep all buttons on one line */
        justify-content: flex-start;
        padding-top: 10px !important;
        gap: 12px; /* Reduced gap for compact layout */
        align-items: center;
        overflow-x: auto; /* Enable horizontal scroll if needed */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for cleaner look */
        -ms-overflow-style: none;
        padding-bottom: 4px; /* Space for scrollbar if it appears */
    }

    .year-tabs::-webkit-scrollbar {
        display: none; /* Hide scrollbar on webkit browsers */
    }

    .year-tab {
        padding: 10px 16px; /* Compact but comfortable padding */
        min-width: 70px; /* Minimum width for consistency */
        max-width: none; /* Allow natural sizing */
        flex-shrink: 0; /* Prevent shrinking */
        align-self: center;
    }

    .view-all-btn {
        padding: 10px 16px; /* Match year-tab padding */
        margin-right: 0;
        margin-bottom: 0; /* Remove bottom margin */
        order: 0; /* Keep natural order with year buttons */
        width: auto; /* Auto width instead of full width */
        max-width: none;
        min-width: 70px; /* Match year-tab min-width */
        flex-shrink: 0; /* Prevent shrinking */
        align-self: center;
    }

    .view-all-btn span {
        font-size: var(--font-size-base); /* Match year-number size */
        white-space: nowrap;
    }

    .year-number {
        font-size: var(--font-size-base);
    }

    /* Footer Responsive */
    .footer {
        padding: 35px 0 18px;
    }

    .footer-content {
        text-align: center; /* Center all footer elements horizontally */
    }

    .footer-header {
        flex-direction: column;
        gap: 18px;
        text-align: center;
        margin-bottom: 24px;
        padding-bottom: 18px;
        align-items: center;
    }

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

    /* Location pill - centered with icon on left of text */
    .footer-location {
        display: flex;
        flex-direction: row; /* Row layout, not column */
        align-items: center; /* Vertically center icon and text */
        justify-content: center; /* Center content within pill */
        gap: 8px; /* Spacing between icon and text */
        margin-inline: auto; /* Center the pill horizontally */
        max-width: 560px;
        width: 90%;
        min-height: 50px; /* 48-52px range */
        padding: 12px 14px; /* 10-14px padding */
        text-align: left; /* Left-align text (icon is naturally on left) */
    }

    .location-icon {
        width: 20px; /* 18-20px icon size */
        height: 20px;
        flex-shrink: 0;
        color: var(--accent-primary);
    }

    .footer-bottom {
        text-align: center;
        padding-top: 18px;
    }

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

    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
        border-radius: var(--radius-lg);
    }

    .modal-body {
        padding: 0;
        padding-top: calc(60px + env(safe-area-inset-top, 0)); /* Account for fixed header min-height */
    }

    .modal-header {
        padding: 16px 20px;
        padding-top: calc(16px + env(safe-area-inset-top, 0));
        padding-right: calc(20px + 36px + 16px); /* Add space for close button */
        flex-wrap: nowrap;
        gap: 12px;
        position: fixed; /* Fixed at top of screen */
        top: 0;
        left: 0;
        right: 0;
        z-index: 2002; /* Ensure it's above modal content */
        align-items: center; /* Vertically center title and button */
        min-height: calc(60px + env(safe-area-inset-top, 0)); /* Increased height for better touch area */
    }

    .modal-header h3 {
        font-size: clamp(1.1rem, 4vw, 1.375rem); /* Responsive, smaller on tiny screens */
        flex: 1 1 auto;
        margin: 0;
        padding-right: 8px; /* Space between title and close button */
        line-height: 1.3;
        align-self: center; /* Ensure title is vertically centered */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Max 2 lines */
        line-clamp: 2;
        -webkit-box-orient: vertical;
        max-width: calc(100% - 48px); /* Ensure space for close button */
    }

    .modal-header-actions {
        gap: 10px;
        flex-wrap: nowrap;
        position: absolute;
        top: 50%; /* Center vertically */
        right: 20px; /* Same as modal horizontal padding */
        transform: translateY(-50%); /* Center vertically */
        align-items: center;
        flex-shrink: 0;
    }

    /* Hide "View on Behance" button in modal header on mobile only */
    #modalBehanceLinkHeader {
        display: none;
    }

    .btn-header-link {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        position: relative;
        top: 0;
        right: 0;
    }
    
    .modal-close::before {
        font-size: 1.4rem;
    }

    .modal-footer {
        padding: 24px 20px;
        gap: 12px;
    }

    .modal-description {
        font-size: var(--font-size-sm);
        line-height: 1.6;
    }

    .modal-gallery-image {
        border-radius: 0;
    }

    .modal-body .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: var(--font-size-sm);
    }

    .modal-tags {
        gap: 6px;
    }

    .modal-tags .tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
        --container-padding: 0 20px;
    }

    .hero-avatar {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }

    .nav-container {
        padding: 0 20px;
        padding-top: env(safe-area-inset-top, 0);
        height: calc(70px + env(safe-area-inset-top, 0));
    }

    /* Mobile menu adjustments for smaller screens */
    .nav-menu {
        padding: env(safe-area-inset-top, 0) 20px env(safe-area-inset-bottom, 20px) 20px;
        padding-bottom: max(115px, env(safe-area-inset-bottom, 0) + 115px) !important;
        justify-content: center !important;
    }

    .nav-menu::before {
        left: 20px;
        font-size: 1.3rem;
    }

    .nav-menu .nav-link {
        padding: 14px 20px;
        font-size: 18px;
    }

    /* Mobile menu footer for smaller screens */
    .mobile-menu-footer {
        padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 16px)) 20px;
    }

    .mobile-cta-button {
        font-size: 16px;
        padding: 14px 24px;
        min-height: 52px;
    }

    .mobile-contact-icon {
        min-width: 60px;
        padding: 10px;
    }

    .mobile-contact-icon svg {
        width: 22px;
        height: 22px;
    }

    .mobile-contact-icon span {
        font-size: 11px;
    }

    /* Hamburger button for smaller screens */
    .hamburger {
        right: 20px;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
    }

    /* CTA button for smaller screens */
    .cta-button {
        right: 74px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: clamp(2rem, 10vw, 3rem);
        letter-spacing: -0.04em;
        margin-bottom: var(--space-4);
    }

    .section-subtitle {
        font-size: var(--font-size-base);
        padding: 0 8px;
    }

    .hero {
        /* padding: 70px 0 50px; */
        padding: 40px 0 50px;
        min-height: 100vh;
        position: relative;
    }

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

    .hero-headline {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        letter-spacing: -0.05em;
        margin-bottom: 0;
    }

    .hero-subheadline {
        font-size: clamp(1rem, 5vw, 1.2rem);
        margin-bottom: 0;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 24px;
        width: 100%;
    }

    .scroll-indicator {
        /* bottom: 0.75rem; */
        bottom: 1.2rem;
    }

    .hero-badge {
        padding: 8px 16px;
        font-size: 0.8rem;
        gap: 6px;
        margin-bottom: 28px;
    }

    .hero-badge-icon {
        width: 14px;
        height: 14px;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        padding: 15px 24px;
        font-size: 0.95rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        max-height: 50px;
    }

    .about-image {
        padding: 18px;
        justify-content: flex-start !important;
    }

    /* About section text - match portfolio description size on mobile */
    .about-text p,
    .about-intro {
        font-size: 0.95rem;
    }

    .experience-badge {
        padding: 13px 17px;
        gap: 11px;
        border-radius: 49px;
    }

    .experience-badge-icon-wrapper {
        width: 38px;
        height: 38px;
    }

    .experience-badge-icon {
        width: 19px;
        height: 19px;
    }

    .experience-badge-number {
        font-size: 1.52rem;
    }

    .experience-badge .badge-text {
        font-size: 0.86rem;
    }

    .portfolio-image {
        height: 200px;
    }

    .portfolio-content {
        padding: 20px;
        /* Maintain layout stability - ensure meta area has consistent height */
        min-height: 0; /* Allow flexbox to work properly */
    }

    .portfolio-title {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }

    .portfolio-description {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .portfolio-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 18px;
        /* Show exactly 2 rows: precise tag height calculation
           Tag height = padding (6px top + 6px bottom = 12px) + line-height (0.8rem * 1.5 ≈ 19.2px) ≈ 31px
           For 2 rows: (31px * 2) + gap (8px) = 70px
           Set to 72px to ensure both rows are fully visible but prevent third row from appearing */
        max-height: 75px;
        min-height: 72px; /* Ensure stable height - exactly 2 rows visible, no third row */
        overflow: hidden;
        /* Remove any gradients/fades - ensure clean clipping */
        position: relative;
        box-sizing: border-box; /* Include padding in height calculation */
    }

    /* Remove any fade overlays that might clip tags */
    .portfolio-tags::after,
    .portfolio-tags::before {
        display: none;
        content: none;
    }

    .tag {
        padding: 6px 12px;
        font-size: 0.8rem;
        line-height: 1.5; /* Explicit line-height for consistent tag height */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 0;
        /* Ensure single-line text with ellipsis */
        max-width: 100%;
        box-sizing: border-box; /* Ensure padding is included in height calculation */
    }

    /* Special handling for about-tags to prevent overflow on iPhone 7 */
    .about-tags {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        overflow: visible;
    }

    .about-tags .tag {
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        overflow: visible;
        text-overflow: clip;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%; /* Allow tags to take full width if needed, but wrap naturally */
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-content {
        padding: 20px;
    }

    .year-tabs {
        gap: 12px;
        align-items: center; /* Vertically center all buttons */
    }

    .year-tab, .view-all-btn {
        padding: 8px 10px;
        max-width: 70px;
        min-width: 60px;
        align-self: center; /* Center vertically */
    }

    .year-number, .view-all-btn span {
        font-size: 0.9rem;
    }

    .experience-card {
        padding: 18px;
        border-radius: var(--radius-lg);
    }

    .card-header {
        margin-bottom: 20px;
        gap: 12px;
    }

    .company-name {
        font-size: 1.15rem;
        margin-bottom: 4px;
    }

    .company-header .role-duration {
        font-size: 0.85rem;
        margin-left: 0;
        margin-top: 4px;
    }

    .role-title {
        font-size: 1rem;
        margin-top: 4px;
    }

    .responsibilities h4 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .responsibilities li {
        font-size: 0.9rem;
        padding-left: 20px;
        margin-bottom: 12px;
    }

    .skill-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .impact-metrics {
        padding: 16px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 12px;
    }

    .metric {
        flex: 0 0 auto;
        min-width: 80px;
    }

    .metric-value {
        font-size: 1.3rem;
    }

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

    .process-step {
        padding: 20px 18px; /* Reduced top and bottom padding for compact layout */
    }

    .step-icon-container {
        width: 56px; /* Reduced icon size slightly */
        height: 56px; /* Reduced icon size slightly */
        margin-bottom: 14px; /* Reduced spacing */
    }

    .step-icon-container i {
        font-size: 1.75rem; /* Slightly reduced icon font size */
    }

    .step-title {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }

    .step-description {
        font-size: 0.95rem;
    }

    .skill-category {
        padding: 20px;
    }

    .category-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .skill-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .testimonial-item {
        padding: 20px;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }

    .testimonial-name {
        font-size: 1rem;
    }

    .testimonial-position {
        font-size: 0.85rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .contact-links {
        gap: 12px;
    }

    .contact-link {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .contact-link svg {
        width: 18px;
        height: 18px;
    }

    .modal-header {
        padding: 12px 16px;
        padding-top: calc(12px + env(safe-area-inset-top, 0));
        padding-right: calc(16px + 32px + 12px); /* Adjusted for smaller close button */
    }

    .modal-header h3 {
        font-size: clamp(1rem, 3.5vw, 1.25rem); /* Even smaller on very small screens */
        max-width: calc(100% - 44px); /* Ensure space for smaller close button */
        line-height: 1.25;
    }

    .btn-header-link {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }

    .modal-close {
        width: 32px;
        height: 32px;
    }
    
    .modal-close::before {
        font-size: 1.2rem;
    }

    .modal-footer {
        padding: 20px 16px;
    }

    .modal-description {
        font-size: 0.9rem;
    }

    .modal-tags .tag {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 28px 0 14px;
    }

    .footer-header {
        margin-bottom: 20px;
        padding-bottom: 14px;
        gap: 14px;
    }

    .footer-logo-text {
        font-size: clamp(1.3rem, 5vw, 1.6rem);
    }

    .footer-tagline {
        font-size: var(--font-size-sm);
    }

    .footer-location {
        padding: 12px 14px; /* 10-14px padding */
        min-height: 50px; /* 48-52px range */
        font-size: var(--font-size-xs);
        flex-direction: row; /* Icon on left, text on right */
        align-items: center; /* Vertically center icon and text */
        gap: 8px; /* Spacing between icon and text */
        justify-content: center; /* Center content within pill */
        margin-inline: auto; /* Center the pill horizontally */
        max-width: 560px;
        width: 90%;
        text-align: left; /* Left-align text, icon stays on left */
    }

    .location-icon {
        width: 20px; /* 18-20px icon size */
        height: 20px;
        flex-shrink: 0; /* Prevent icon from shrinking */
    }


    .footer-bottom {
        padding-top: 14px;
    }

    .footer-copyright {
        font-size: var(--font-size-xs);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-5px) rotate(0.5deg);
    }
    66% {
        transform: translateY(-8px) rotate(-0.5deg);
    }
}

/* Experience Section Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Experience card entrance animations */
.experience-card {
    animation: fadeInUp 0.6s ease forwards;
}

.experience-card:nth-child(1) { animation-delay: 0.1s; }
.experience-card:nth-child(2) { animation-delay: 0.2s; }
.experience-card:nth-child(3) { animation-delay: 0.3s; }
.experience-card:nth-child(4) { animation-delay: 0.4s; }
.experience-card:nth-child(5) { animation-delay: 0.5s; }
.experience-card:nth-child(6) { animation-delay: 0.6s; }







/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Focus States */
.btn:focus,
.nav-link:focus-visible,
.contact-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 3px;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Remove default focus outline for mouse clicks */
.nav-link:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

/* Button Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button Disabled States */
.btn:disabled,
.btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

/* Enhanced neon glow animation for primary buttons */
@keyframes neonPulse {
    0%, 100% {
        box-shadow:
            0 4px 24px rgba(99, 102, 241, 0.2),
            0 2px 8px rgba(79, 70, 229, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 4px 28px rgba(99, 102, 241, 0.25),
            0 2px 12px rgba(79, 70, 229, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

.btn-primary,
.cta-button {
    animation: neonPulse 4s ease-in-out infinite;
}

.btn-primary:hover,
.cta-button:hover {
    animation: none;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.1);
        --glass-border: rgba(255, 255, 255, 0.3);
        --text-secondary: #cccccc;
    }

    .btn-primary,
    .cta-button {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow:
            0 4px 24px rgba(99, 102, 241, 0.4),
            0 2px 8px rgba(79, 70, 229, 0.3);
    }

    .btn-secondary,
    .btn-outline {
        border-color: rgba(255, 255, 255, 0.4);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .portfolio-item:hover,
    .experience-card:hover,
    .process-step:hover,
    .skill-category:hover,
    .testimonial-item:hover {
        transform: none;
    }

    /* Improve tap targets - minimum 44x44px */
    .hamburger {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        align-items: center;
        justify-content: center;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 44px;
    }

    .year-tab,
    .view-all-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove tap highlight color on iOS */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Add visual feedback for taps */
    .btn:active,
    .nav-link:active,
    .tag:active,
    .skill-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Smooth scrolling for touch */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator {
        animation: none;
    }

    .btn-primary,
    .cta-button {
        animation: none !important;
    }

    .portfolio-item,
    .process-step,
    .skill-category {
        animation: none !important;
    }

    body::before {
        animation: none !important;
    }

    /* Mobile menu animations */
    .nav-menu li,
    .mobile-menu-footer {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .nav-menu.active li {
        animation: none !important;
    }

    body.menu-open::before {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* Mobile Glassmorphism Optimizations */
@media (max-width: 768px) {
    .glass,
    .portfolio-item,
    .timeline-content,
    .process-step,
    .skill-category,
    .testimonial-item {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .hero-badge,
    .experience-badge {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

@media (max-width: 480px) {
    .glass,
    .portfolio-item,
    .timeline-content,
    .process-step,
    .skill-category,
    .testimonial-item {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .hero-badge,
    .experience-badge {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .step-icon-container {
        width: 60px;
        height: 60px;
    }

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

/* Landscape Mobile (max-height: 500px and landscape orientation) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 50px 0 30px;
    }

    .hero-avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 14px;
    }

    .hero-badge {
        margin-bottom: 18px;
    }

    .hero-headline {
        margin-bottom: var(--space-5);
    }

    .hero-buttons {
        gap: 12px;
        flex-direction: row;
    }

    .btn {
        max-width: 180px;
    }

    .nav-menu {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .section-header {
        margin-bottom: var(--space-12);
    }

    .modal-content {
        max-height: 98vh;
    }
}

/* Print Styles */
@media print {
    .header,
    .scroll-indicator,
    .modal {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section-title,
    .hero-headline .highlight {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
}

/* Vertical Gallery Layout */
.modal-gallery {
    width: 100%;
    height: auto;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: none;
    display: block;
    margin: 0;
}

.modal-gallery-scroll {
    width: 100%;
    height: auto;
    overflow: visible;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal-gallery-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    border: none;
}

.modal-gallery-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-gallery-video {
    width: 100%;
    margin-bottom: 24px;
}

/* Video wrapper for responsive 16:9 aspect ratio */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Direct iframe in modal-gallery-video (fallback for old format) */
.modal-gallery-video iframe:not(.video-wrapper iframe) {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 315px;
    border: none;
    border-radius: 12px;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-header-link {
    padding: 8px 16px !important;
    font-size: var(--font-size-xs) !important;
    background: rgba(99, 102, 241, 0.2) !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    color: rgba(99, 102, 241, 0.9) !important;
    margin: 0 !important;
    transition: all 0.3s ease;
}

.btn-header-link:hover {
    background: rgba(99, 102, 241, 0.3) !important;
    border-color: rgba(99, 102, 241, 0.6) !important;
    color: var(--text-primary) !important;
}

.modal-footer {
    padding: 40px 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Smaller Tablets (600px - 768px) - iPad Mini and smaller tablets - 2 columns */
@media (max-width: 768px) and (min-width: 600px) {
    :root {
        --section-padding: 60px 0;
    }

    /* Tablet Header Layout for smaller tablets */
    .nav-container {
        padding: 0 24px;
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
        height: 72px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        position: relative;
    }

    /* Hide desktop navigation pill on smaller tablets */
    .nav-menu {
        display: none !important;
    }

    /* Logo styling - left side */
    .logo {
        display: flex;
        align-items: center;
        height: 100%;
        z-index: 1001;
        flex-shrink: 0;
    }

    /* Show and style CTA button on smaller tablets */
    .cta-button {
        display: inline-flex !important;
        position: unset !important;
        padding: 10px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        margin: 0;
        margin-right: 10px;
        z-index: 1001;
        flex-shrink: 0;
    }

    /* Show hamburger menu on smaller tablets */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        margin: 0;
        z-index: 1002;
        flex-shrink: 0;
        cursor: pointer;
        pointer-events: auto;
        position: unset !important;
        gap: 5px;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
        background: #ffffff;
        display: block;
        transition: all 0.3s ease;
        position: relative;
    }

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

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Ensure equal height for all cards on smaller tablets */
    .process-step {
        height: 100%;
    }

    .skill-category {
        height: 100%;
    }

    .testimonial-item {
        height: 100%;
    }

    /* Hero avatar - larger on smaller tablets for prominence */
    .hero-avatar {
        width: 188px; /* Increased from 160px (17.5% larger) */
        height: 188px; /* Maintain square proportions */
        margin: 0 auto 28px; /* Slightly increased bottom margin for balance */
    }

    /* Hero buttons - side by side on smaller tablets */
    .hero-buttons {
        flex-direction: row !important; /* Side by side instead of stacked */
        flex-wrap: nowrap; /* Prevent wrapping */
        gap: 18px; /* 16-20px gap between buttons */
        align-items: center; /* Vertically align buttons */
    }

    .hero-buttons .btn {
        flex: 1 1 0; /* Equal width for both buttons */
        min-width: 0; /* Allow flex shrinking */
        max-width: 320px; /* Maximum width for each button */
    }
}

.header-buttons {
    display: flex;
    align-items: center;
}

/* Temporary YouTube Video Test Section */
.video-test-section {
    padding: 60px 0;
}

.video-test {
    max-width: 800px;
    margin: 60px auto;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-test iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


