@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@700;800;900&display=swap');

:root {
    --bg-color: #0d0d0d;
    --surface-color: #111111;
    /* Cards and raised surfaces */
    --text-primary: #ffffff;
    --text-secondary: #8c8c8c;
    --text-tertiary: rgba(255, 255, 255, 0.4);
    /* Dim labels */
    --accent-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.06);
    /* Very faint dividers */
    --label-spacing: 0.12em;
    /* Standardized uppercase letter-spacing */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --accent-metric: #4ade80;
    /* Emerald green for KPI highlights */
    --transition-fast: 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hard reset for links */
a,
a:visited,
a:hover,
a:active,
a:focus {
    color: inherit !important;
    text-decoration: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

html.modal-open,
html.modal-open body {
    overflow: hidden !important;
    height: 100% !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background-image: url("https://grains.imgix.net/grain.png?auto=format&fit=max&w=1000");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
    animation: grain-animation 8s steps(10) infinite;
}

@keyframes grain-animation {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, 5%);
    }

    30% {
        transform: translate(7%, -25%);
    }

    40% {
        transform: translate(-5%, 25%);
    }

    50% {
        transform: translate(-15%, 10%);
    }

    60% {
        transform: translate(15%, 0%);
    }

    70% {
        transform: translate(0%, 15%);
    }

    80% {
        transform: translate(3%, 35%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Header */
.header {
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 1.5rem 0;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    position: relative;
}

.nav-column {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--text-secondary);
}

.nav-content {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.2;
}

.nav-center {
    text-align: center;
    justify-content: center;
    align-items: center;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 0.85;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.logo-first {
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-last {
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.nav-right {
    align-items: flex-end;
    text-align: right;
}

.status-live {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-live .dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    flex-shrink: 0;
    display: block;
}

/* Hero Section */
.hero {
    padding-top: 15rem;
    padding-bottom: 5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 15vw, 13rem);
    line-height: 0.8;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 4rem;
    width: 100%;
    letter-spacing: -0.04em;
    display: block;
}

/* Title line spans  Einline on desktop, block on mobile */
.title-line {
    display: inline;
}

.hero-subtitle {
    font-size: 1.2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    font-weight: 700;
    line-height: 1.4;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.footer-subtitle {
    font-size: 1.4rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 3rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    font-weight: 700;
    line-height: 1.3;
}

.footer-subtitle strong {
    color: var(--text-primary);
}

/* Tech Stripe Enhanced */
.tech-stripe {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: 6rem;
    padding: 1.2rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: techStripeAppear 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1), 
                box-shadow 0.7s cubic-bezier(0.19, 1, 0.22, 1), 
                border-color 0.7s ease,
                background 0.7s ease;
    will-change: transform, box-shadow;
}

.tech-stripe:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 
                0 0 25px rgba(255, 255, 255, 0.05);
}

.tech-stripe:active {
    transform: translateY(-2px) scale(0.99);
}

/* New Animated Glow Path */
.tech-stripe::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease;
    opacity: 0;
    pointer-events: none;
}

.tech-stripe:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Refined Shimmer */
.tech-stripe::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: newShimmer 6s infinite ease-in-out;
    pointer-events: none;
}

@keyframes newShimmer {
    0% { transform: translateX(-100%); }
    20%, 100% { transform: translateX(100%); }
}

.tech-stripe:hover::after {
    animation-duration: 2s;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.05) 55%,
        transparent 100%
    );
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0.7;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                opacity 0.4s ease, 
                background-color 0.4s ease;
    filter: grayscale(0.3);
    cursor: default;
    position: relative;
}

.tech-item:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-4px) scale(1.1);
}

.tech-item img {
    width: 48px;
    height: 48px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s ease;
}

/* Individual Color Glows - Smoother implementation */
.tech-item:nth-child(1):hover img { filter: drop-shadow(0 0 12px rgba(33, 115, 70, 0.5)); }
.tech-item:nth-child(2):hover img { filter: drop-shadow(0 0 12px rgba(0, 117, 143, 0.5)); }
.tech-item:nth-child(3):hover img { filter: drop-shadow(0 0 12px rgba(242, 200, 15, 0.5)); }
.tech-item:nth-child(4):hover img { filter: drop-shadow(0 0 12px rgba(255, 102, 0, 0.5)); }



@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 150%; }
}

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

.hero-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    width: 100%;
    position: relative;
    gap: 0;
}

.intro-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 0 3rem;
    position: relative;
    transition: opacity 0.3s ease;
}

.intro-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
}

/* Symmetric padding for all items to ensure perfect centering */
.intro-item:first-child {
    padding-left: 3rem;
}

.intro-item:last-child {
    padding-right: 3rem;
}

.intro-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.intro-item:hover .intro-text {
    opacity: 1;
}

.intro-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    flex-shrink: 0;
}

.intro-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.intro-text strong {
    color: var(--text-primary);
}

.intro-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-link {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
    position: relative;
    width: fit-content;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-bottom: 2px;
}

.contact-link:hover {
    border-color: var(--text-primary) !important;
    padding-left: 5px;
}

.availability-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-top: 0.5rem;
}


.availability-tag .dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
}

/* Socials Section */
.socials-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 5rem 0;
}

.footer .socials-row {
    margin: 3rem 0 5rem;
}


/* Featured Section */
.featured-projects {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-title-huge {
    font-size: clamp(3rem, 10vw, 8rem);
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 2rem;
    /* Reduced to bring subtitle closer */
    border-top: 1px solid var(--border-color);
    padding-top: 6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-align: center;
}

.section-subtitle-small {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: var(--label-spacing);
    text-transform: uppercase;
    margin-bottom: 6rem;
    opacity: 0.55;
    text-align: center;
    display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-number {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: block;
}

.project-card .card-title {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.project-card .card-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn-view-full,
.btn-case-study {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary) !important;
    margin-top: auto;
    padding: 0.75rem 1.8rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: fit-content;
}

.btn-view-full:hover,
.btn-case-study:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    gap: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.see-more-row {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

/* ── Unified Pill Buttons (Socials & CTA) ── */
a.btn-pill,
a.btn-see-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    border-radius: 100px;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
    overflow: hidden;
    isolation: isolate;
}

a.btn-pill:hover,
a.btn-see-more:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Active press state (tactile feedback for all interactive buttons) */
a.btn-pill:active,
.btn-cert:active,
.btn-case-study:active,
.btn-view-full:active,
.btn-see-more:active {
    transform: scale(0.96) !important;
    opacity: 0.8;
    transition-duration: 0.1s;
}

/* Badge & Logo Transparency */
.badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    /* mix-blend-mode removed to prioritize SVG alpha filters */
}

.badge img.logo-fix {
    /* For logos with WHITE backgrounds:
       1. Invert to make the white background black
       2. Use high-precision SVG filter to make black transparent 
       3. Hue-rotate back to preserve original logo colors */
    filter: invert(1) hue-rotate(180deg) contrast(2) brightness(1.1) url(#perfect-remove-black);
}

.badge img.logo-black-bg {
    /* For logos that already have a BLACK background */
    filter: contrast(1.5) url(#perfect-remove-black);
}

.badge img.logo-cobasi {
    filter: url(#chroma-key-teal);
}

/* Achievement Section & Focused Carousel */
.achievement-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
    /* Clips the track at section level */
}

.carousel-viewport {
    width: 100%;
    position: relative;
    padding: 2rem 0;
    overflow: visible;
    /* Allows neighbors to be seen */
    display: flex;
    justify-content: flex-start;
    /* Start from left, JS will handle offset */
}

.carousel-track {
    display: flex;
    gap: 4rem;
    /* Note: transition is managed exclusively by JS for the infinite loop to work correctly */
    align-items: center;
    width: max-content;
    will-change: transform;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 30vw;
    min-width: 450px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    opacity: 0.3;
    /* Increased for better peek */
    transform: scale(0.9);
    filter: blur(4px) grayscale(1);
    pointer-events: none;
}

.achievement-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.2);
    filter: blur(0) grayscale(0);
    pointer-events: all;
    background: rgba(255, 255, 255, 0.04);
}

/* Pagination Dots with Liquid Animation */
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    /* Elastic/Liquid ease */
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dot.active {
    width: 40px;
    background: #ffffff;
    /* Explicit white for active state */
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4),
        0 0 10px rgba(255, 255, 255, 0.2);
    animation: liquidRipple 3s infinite ease-in-out;
}

@keyframes liquidRipple {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(0.96);
        filter: brightness(1.2);
    }
}

.dot:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
}

.achievement-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

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

.badge {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    mix-blend-mode: screen;
    /* Effectively makes black parts transparent */
}

.badge img.logo-fix {
    /* For logos with white backgrounds:
       1. Invert to make the white background black
       2. Use hue-rotate to fix the colors
       3. Use contrast/brightness to ensure the background is pure black (#000)
    */
    filter: invert(1) hue-rotate(180deg) contrast(1.5) brightness(1.1);
}

/* Credentials Section */
.credentials-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Base Credential Elements */
.nav-label {
    font-size: 0.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    opacity: 0.85;
    display: block;
    margin-bottom: 0.5rem;
}

.credential-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.credential-year {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.credential-item h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    text-transform: uppercase;
}

.credential-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.credential-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Credentials Section Layout */
.credentials-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-areas:
        "side main"
        "visa main";
    gap: 6rem;
    width: 100%;
}

.side-credentials {
    grid-area: side;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.main-credentials {
    grid-area: main;
    display: flex;
    flex-direction: column;
}

.visa-credentials {
    grid-area: visa;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.visa-credentials .nav-label {
    margin-bottom: 0;
}

/* Updated Status Tags to match reference style */
.status-tag {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-style: italic;
    font-weight: 500;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-tag.pulse::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ffcc00;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffcc00;
    animation: pulseAnimate 2s infinite;
}

@keyframes pulseAnimate {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* Visa Status Card */
.visa-status-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

/* Subtle Shimmer Effect for Visa Card */
.visa-status-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.04),
            transparent);
    animation: shimmer 8s infinite linear;
    pointer-events: none;
}

.visa-status-card strong {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1;
    /* Match dot height alignment */
}

/* Ensure dot within visa status card is perfectly centered */
.visa-status-card .status-live .dot {
    margin: 0;
    width: 8px;
    height: 8px;
}

.visa-status-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Certifications Grid System */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cert-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: var(--transition-fast);
}

.cert-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.cert-card-header strong {
    display: block;
    font-size: 1.15rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
    font-weight: 500;
}

.cert-topics {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    font-style: italic;
    font-weight: 400;
    flex-grow: 1;
    text-transform: none;
}

.cert-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.2rem;
    margin-top: auto;
}

.cert-id {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.btn-cert-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
}

.btn-cert-compact:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.btn-icon-svg {
    width: 10px;
    height: 10px;
    transition: transform 0.3s ease;
}

.btn-cert-compact:hover .btn-icon-svg {
    transform: translate(1px, -1px);
}


.language-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.language-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lang-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.lang-name {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.lang-level {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    width: 0;
    height: 100%;
    background: #ffffff;
    border-radius: 10px;
    opacity: 0.6;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0);
}

.progress.filled {
    opacity: 0.95;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.language-item:hover .progress {
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    background: var(--accent-color);
}

.badge-outline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.achievement-card h3 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.achievement-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.nav-arrows {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    margin-top: 4rem;
    font-size: 1.5rem;
}

.nav-arrows span {
    opacity: 0.2;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-arrows span:hover {
    opacity: 1;
    color: var(--text-primary);
}

/* Footer */
.footer {
    padding: 10rem 0 4rem;
    text-align: center;
}

.get-in-touch {
    font-size: clamp(5rem, 18vw, 15rem);
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 0.8;
    margin-bottom: 6rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: var(--text-primary);
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 8rem;
}

.footer-logo {
    display: flex;
    line-height: 1;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.footer-logo .logo-first {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-logo .logo-last {
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.footer-links-group {
    display: flex;
    gap: 3rem;
}

.footer-links-group a {
    color: var(--text-secondary) !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--text-primary) !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Global Reveal System */
.reveal {
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(20px);
}

.reveal-down {
    transform: translateY(-20px);
}

.reveal-left {
    transform: translateX(20px);
}

.reveal-right {
    transform: translateX(-20px);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Delay Utilities for Staggered Lists */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Experience Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: rgba(10, 10, 10, 0.85);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow-y: auto;
    backdrop-filter: blur(30px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 3rem;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 2001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.modal-header .badge {
    margin-bottom: 1.5rem;
    width: fit-content;
}

/* Duplicate rule removed — see .achievement-card h3 at line 1024 */

.achievement-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: -0.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.meta-dot {
    opacity: 0.3;
    font-size: 0.5rem;
}

.achievement-card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    text-transform: uppercase;
}

.modal-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.modal-details {
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-details ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-details li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
}

.modal-details li::before {
    content: '';
    position: absolute;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    top: 0.65rem;
}

.modal-details strong {
    color: var(--text-primary);
}

/* Modal Scrollbar */
.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Case Study Modal (Wide Document Style) */
#caseStudyOverlay {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
}

.case-study-container {
    background: #050505;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 48px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Let internal layout handle padding */
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 1);
    transform: scale(0.9) translateY(40px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

#caseStudyOverlay.active .case-study-container {
    transform: scale(1) translateY(0);
}

.case-study-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    height: 100%;
}

.case-study-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    height: 100%;
    overflow-y: auto;
}

.case-study-main {
    padding: 4rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    overflow-y: auto;
}

/* Custom Scrollbars */
.case-study-main::-webkit-scrollbar,
.case-study-sidebar::-webkit-scrollbar {
    width: 4px;
}

.case-study-main::-webkit-scrollbar-thumb,
.case-study-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#caseStudyTitle {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.case-study-section {
    position: relative;
    padding-bottom: 1rem;
}

.case-study-section h4 {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    /* Apply dim to color, not element, so ::after gradient isn't affected */
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: var(--label-spacing);
}

.case-study-section h4::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
}

.case-study-section p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 95%;
}

/* KPI Card Treatment */
.kpi-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.kpi-card h4 {
    color: var(--text-primary);
}

.kpi-card p {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
}

.kpi-card strong {
    color: var(--accent-metric);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.15);
}

.sidebar-item .nav-label {
    display: block;
    margin-bottom: 1.2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: var(--label-spacing);
    font-weight: 800;
    color: var(--text-secondary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#caseStudyFocus {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* =========================================
   TABLET (≤1024px)
   ========================================= */
@media (max-width: 1024px) {
    .container {
        padding: 0 2.5rem;
    }

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

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

    .hero-intro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .hero-intro-grid .intro-item:last-child {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .achievement-card {
        width: 55vw;
        min-width: 380px;
    }

    .section-title-huge {
        font-size: 4rem;
        padding-top: 4rem;
    }

    /* Case Study Modal */
    .case-study-layout {
        grid-template-columns: 1fr;
    }

    .case-study-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 2rem;
    }

    .case-study-main {
        padding: 2rem;
    }

    #caseStudyTitle {
        font-size: 2.8rem;
    }
}

/* =========================================
   MOBILE (≤768px)
   ========================================= */
@media (max-width: 768px) {

    /* --- Global --- */
    body {
        overflow-x: hidden;
        width: 100vw;
    }

    .container {
        padding: 0 1.5rem;
        width: 100%;
        max-width: 100vw;
        overflow: visible;
        /* Prevent clipping breakout elements like the carousel */
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }

    /* --- Header / Nav --- */
    .header {
        padding: 1rem 0;
        padding-top: calc(env(safe-area-inset-top, 12px) + 1rem);
    }

    .nav-grid {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .nav-logo {
        flex-direction: row;
        gap: 0.1em;
        align-items: baseline;
    }

    .logo-first,
    .logo-last {
        font-size: 1.35rem;
    }

    /* --- Hero: Two-line title fix --- */
    .hero {
        padding-top: 7rem;
        padding-bottom: 2.5rem;
        text-align: center;
        align-items: center;
    }

    /* Force title spans to stack on separate lines */
    .title-line {
        display: block;
        line-height: 0.9;
    }

    .hero-title {
        font-size: clamp(3rem, 19vw, 6rem) !important;
        line-height: 0.9;
        letter-spacing: -0.04em;
        margin-bottom: 2rem;
        font-weight: 900;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 2rem;
        color: var(--text-secondary);
        font-weight: 400;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        letter-spacing: 0;
    }

    /* --- Tech Stripe --- */
    .tech-stripe {
        gap: 2.2rem;
        padding: 1.8rem 2.8rem;
        margin-bottom: 3.5rem;
        border-radius: 100px;
        flex-wrap: nowrap;
        justify-content: center;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .tech-stripe:hover {
        transform: none !important;
        background: rgba(255, 255, 255, 0.03) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    .tech-stripe::before,
    .tech-stripe::after {
        display: none !important;
    }

    .tech-item {
        gap: 0;
        opacity: 0.9;
    }

    .tech-item:hover {
        transform: none !important;
    }

    .tech-item img {
        width: 42px;
        height: 42px;
    }

    /* =============================================
       HERO INTRO GRID  ERedesigned for Mobile
       ============================================= */
    .hero-intro-grid {
        grid-template-columns: 1fr;
        padding-top: 0;
        border-top: none;
        gap: 0;
        margin-top: 2rem;
    }

    /* Each intro item becomes a clean info row */
    .intro-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1.5rem 0 !important;
        gap: 0.8rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        position: relative;
        width: 100%;
        text-align: left !important;
    }

    /* Kill the vertical divider lines on mobile */
    .intro-item::after {
        display: none !important;
    }

    /* Remove top line from first only */
    .intro-item:first-child {
        border-top: none;
    }

    .intro-item:last-child {
        border-bottom: none;
    }

    /* Left label column */
    /* Left label column now as a header */
    .intro-label {
        font-size: 0.72rem;
        color: rgba(255, 255, 255, 0.4);
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.18em;
        margin: 0 !important;
        /* Standardize gap usage */
    }

    .intro-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0.5rem;
        opacity: 1;
        flex: 1;
        width: 100%;
        margin: 0 !important;
    }

    .intro-text p,
    .intro-text a,
    .intro-text .availability-tag {
        text-align: left;
        margin: 0 !important;
        /* Kill default margins to achieve perfect 'even' padding */
    }

    .intro-text>* {
        font-size: 0.9rem;
        line-height: 1.6;
        color: var(--text-secondary);
    }

    .intro-text strong {
        color: var(--text-primary);
    }

    /* Let's Connect item */
    .intro-contact .intro-text {
        gap: 0.6rem;
    }

    .contact-link {
        font-size: 0.9rem;
        font-family: var(--font-body);
        font-weight: 600;
        word-break: break-all;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    .availability-tag {
        font-size: 0.8rem;
        margin: 0 !important;
        letter-spacing: 0.12em;
    }

    /* =============================================
       SECTION SPACING  ENormalized
       ============================================= */
    /* Consistent rhythm: 5rem top, 4rem bottom for all sections */
    .featured-projects {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .credentials-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .achievement-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
        /* Remove overflow:hidden so neighboring cards can peek */
        overflow: visible;
    }

    /* Section title border provides natural visual separation */
    .section-title-huge {
        font-size: clamp(2.2rem, 8.5vw, 3rem) !important;
        line-height: 0.92;
        letter-spacing: -0.04em;
        padding-top: 2.5rem;
        margin-bottom: 0.8rem;
        font-weight: 800;
        text-align: center;
    }

    .section-subtitle-small {
        font-size: 0.78rem;
        margin-bottom: 2.5rem;
        letter-spacing: 0.15em;
        opacity: 0.55;
        text-align: center;
    }

    /* =============================================
       PROJECTS
       ============================================= */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .project-card {
        padding: 1.8rem 1.5rem;
        gap: 1rem;
        border-radius: 20px;
    }

    .project-card .card-title {
        font-size: 1.6rem;
        line-height: 1.05;
        letter-spacing: -0.02em;
    }

    .project-card .card-desc {
        font-size: 0.85rem;
        line-height: 1.75;
        opacity: 0.75;
    }

    /* 44px minimum touch targets */
    .btn-view-full,
    .btn-case-study,
    .btn-cert {
        min-height: 44px;
        padding: 0.85rem 1.8rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }



    .see-more-row {
        margin-top: 2.5rem;
        padding: 0 1rem;
    }

    /* =============================================
       SOCIAL PILLS
       ============================================= */
    .socials-row {
        gap: 0.8rem;
        margin: 2.5rem 0 3.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Footer socials: full-width stacked on mobile */
    .footer .socials-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        padding: 0 1rem;
    }

    .footer .socials-row .btn-pill {
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(10px);
        color: var(--text-primary) !important;
        padding: 1rem 2rem;
        font-size: 0.82rem;
        letter-spacing: 0.12em;
        width: 100%;
        text-align: center;
        justify-content: center;
        display: inline-flex;
        box-shadow: none !important;
    }

    .see-more-row .btn-see-more,
    a.btn-pill {
        padding: 1rem 2rem;
        font-size: 0.82rem;
        width: 100%;
        justify-content: center;
    }

    /* =============================================
       CREDENTIALS
       ============================================= */
    .credentials-layout {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .side-credentials {
        order: 1;
        gap: 3rem;
    }

    .main-credentials {
        order: 2;
    }

    .visa-credentials {
        order: 3;
    }

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

    .cert-card {
        padding: 1.5rem;
    }

    .cert-card-header strong {
        font-size: 1rem;
    }

    .cert-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    /* =============================================
       EXPERIENCE CAROUSEL  Ewith neighboring peek
       ============================================= */

    /*
     * Peek setup:
     * - achievement-section: overflow: visible (set above)
     * - carousel-viewport: clips to container width, but cards can peek via negative margin trick
     * - Card width = 80vw so ~10vw shows on each side
     */
    .carousel-viewport {
        overflow: hidden !important;
        padding: 2.5rem 0;
        width: 100vw !important;
        position: relative;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }

    .carousel-track {
        gap: 1.5rem;
        padding: 0;
    }

    .achievement-card {
        width: 80vw !important;
        min-width: unset !important;
        padding: 2.2rem 2rem;
        border-radius: 28px;
        gap: 1.5rem;
        opacity: 0.35;
        transform: scale(0.9) translateZ(0);
        filter: blur(3px) grayscale(1);
        backface-visibility: hidden;
        transition: none;
        background: rgba(255, 255, 255, 0.02);
    }

    .carousel-ready .achievement-card {
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
            filter 0.3s cubic-bezier(0.19, 1, 0.22, 1),
            opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .achievement-card.active {
        opacity: 1 !important;
        transform: scale(1) translateZ(0) !important;
        filter: blur(0) grayscale(0) !important;
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none !important;
        pointer-events: all;
    }

    .achievement-card h3 {
        font-size: 1.6rem !important;
        line-height: 1.05;
        letter-spacing: -0.02em;
    }

    .achievement-card p {
        font-size: 0.95rem !important;
        line-height: 1.65;
    }

    .achievement-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.72rem;
        gap: 0.2rem;
    }

    .achievement-meta .meta-dot {
        display: none;
    }

    .achievement-header .badge {
        padding: 0.45rem 0.9rem;
        font-size: 0.68rem;
        gap: 0.4rem;
    }

    .badge img,
    .badge img.logo-fix {
        width: 14px;
        height: 14px;
    }

    /* Nav arrows hidden on mobile ? swipe-only navigation */
    .nav-arrows {
        display: none;
    }

    .carousel-pagination {
        margin-top: 2rem;
        gap: 0.8rem;
    }

    .carousel-pagination .dot {
        width: 12px;
        height: 12px;
    }

    .carousel-pagination .dot.active {
        width: 44px;
    }

    /* =============================================
       FOOTER
       ============================================= */
    .footer {
        padding: 5rem 0 3rem;
        text-align: center;
    }

    .get-in-touch {
        font-size: clamp(4.8rem, 22vw, 8rem) !important;
        line-height: 0.8;
        letter-spacing: -0.06em;
        margin-bottom: 2.5rem;
        font-weight: 900;
    }

    .footer-subtitle {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 2.5rem;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 3.5rem;
        padding-top: 2.5rem;
        align-items: center;
    }

    .footer-links-group {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* =============================================
       MODALS
       ============================================= */
    .modal-container {
        width: 95%;
        border-radius: 24px;
        padding: 2rem 1.5rem;
        max-height: 90vh;
    }

    .modal-title {
        font-size: 1.7rem;
    }

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

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    /* Case Study Modal  Efull-screen slide up on mobile */
    #caseStudyOverlay {
        display: block !important;
        overflow-y: hidden;
    }

    .case-study-container {
        display: block !important;
        /* Fix Flexbox clipping bug preventing scroll */
        width: 100%;
        height: 100vh !important;
        height: 100dvh !important;
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 0;
        transform: translateY(100%);
        box-shadow: none;
        overflow-y: auto !important;
        /* Move scroll here */
        -webkit-overflow-scrolling: touch;
        background: #050505;
        z-index: 2005;
    }

    #caseStudyOverlay.active .case-study-container {
        transform: translateY(0);
    }

    .case-study-layout {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100%;
        background: #050505;
        position: relative;
        padding: 5rem 1.5rem 8rem;
        /* Extra bottom padding for mobile safe area */
        gap: 0;
    }

    .case-study-sidebar,
    .case-study-main {
        display: contents;
    }

    /* Interleaved Order for Mobile */
    #caseStudyBadgeContainer {
        order: 1;
        margin-bottom: 1rem;
    }

    #caseStudyTitle {
        order: 2;
        font-size: clamp(2.2rem, 10vw, 2.8rem);
        line-height: 1;
        letter-spacing: -0.04em;
        margin: 0.5rem 0 2.5rem;
    }

    /* Core Tech Stack */
    .case-study-sidebar .sidebar-item:nth-child(1) {
        order: 3;
        margin-bottom: 2.5rem;
        padding-bottom: 2.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Focus Area */
    .case-study-sidebar .sidebar-item:nth-child(2) {
        order: 4;
        margin-bottom: 3.5rem;
    }

    /* Content Sections (Challenge, Solution, Results) */
    .case-study-main .case-study-section {
        order: 5;
        margin-bottom: 3.5rem;
    }

    .case-study-section h4 {
        font-size: 0.75rem;
        letter-spacing: 0.2rem;
        margin-bottom: 1.2rem;
        color: #cccccc;
        /* Lighter Gray for headers */
        font-weight: 800;
    }

    .case-study-section p {
        font-size: 1.1rem;
        line-height: 1.75;
        color: var(--text-secondary);
        opacity: 0.9;
    }

    .kpi-card {
        padding: 2.2rem 1.8rem;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 1rem;
    }

    .kpi-card p {
        font-size: 1.2rem;
        font-weight: 500;
        color: var(--text-primary);
    }

    .tech-tags {
        gap: 0.7rem;
    }

    .tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.75rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        color: #e0e0e0;
        /* Bright gray for tag content */
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-item .nav-label {
        margin-bottom: 1.2rem;
        font-size: 0.7rem;
        color: #cccccc;
        /* Lighter Gray for labels */
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.15em;
    }

    #caseStudyFocus {
        color: #e0e0e0;
        /* Bright gray for focus area value */
        font-weight: 500;
        font-size: 1.1rem;
    }

    /* Fixed mobile close button for the case study */
    #caseStudyOverlay .modal-close {
        position: fixed !important;
        top: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        z-index: 3000;
        backdrop-filter: blur(15px);
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.4rem;
    }
}

/* =========================================
   SMALL MOBILE (≤480px)
   ========================================= */
@media (max-width: 480px) {

    .title-line {
        display: block;
        line-height: 0.88;
    }

    .hero-title {
        font-size: clamp(2.8rem, 18vw, 4.5rem) !important;
        letter-spacing: -0.04em;
        margin-bottom: 1.5rem;
    }

    .get-in-touch {
        font-size: clamp(4.2rem, 22vw, 7rem) !important;
        margin-bottom: 2rem;
    }

    .section-title-huge {
        font-size: clamp(1.9rem, 8vw, 2.5rem) !important;
    }

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

    .project-card {
        padding: 1.5rem 1.2rem;
        gap: 0.9rem;
        border-radius: 16px;
    }

    .project-card .card-title {
        font-size: 1.45rem;
    }

    .achievement-card {
        width: 80vw !important;
        padding: 1.8rem 1.4rem;
        gap: 1.1rem;
        transform: scale(0.9) translateZ(0);
        filter: blur(3px) grayscale(1);
        backface-visibility: hidden;
        transition: none;
        background: rgba(255, 255, 255, 0.02);
    }

    .carousel-ready .achievement-card {
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
            filter 0.3s cubic-bezier(0.19, 1, 0.22, 1),
            opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .achievement-card.active {
        opacity: 1 !important;
        transform: scale(1) translateZ(0) !important;
        filter: blur(0) grayscale(0) !important;
        box-shadow: none !important;
    }

    .achievement-card h3 {
        font-size: 1.4rem !important;
    }

    .tech-stripe {
        border-radius: 12px;
        padding: 0.8rem 1rem;
        gap: 0.8rem 1rem;
    }

    .intro-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1.25rem 0 !important;
        gap: 0.8rem;
        width: 100% !important;
        text-align: left !important;
    }

    .intro-item::after {
        display: none !important;
    }

    .intro-item:first-child {
        border-top: none !important;
    }

    .intro-item:last-child {
        border-bottom: none !important;
    }

    .modal-container {
        padding: 1.5rem 1.2rem;
    }

    .modal-title {
        font-size: 1.45rem;
    }

    .carousel-viewport {
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }

    .carousel-track {
        padding: 0;
        gap: 1.5rem;
    }
}