/* =======================================
   QuadCore Studio - Premium Dark Theme
   ======================================= */

:root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-darker: #000000;
    --bg-surface: rgba(20, 20, 22, 0.7);
    --bg-surface-border: rgba(255, 255, 255, 0.08);

    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --text-muted: #6b6b75;

    --accent-gold: #D4AF37;
    --accent-gold-glow: rgba(212, 175, 55, 0.4);
    --accent-neon: #ff5e00;
    --accent-neon-glow: rgba(255, 94, 0, 0.4);

    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout & Spacing */
    --container-width: 1200px;
    --section-padding: 100px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* =======================================
   Reset & Base Styles
   ======================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* Hidden scrollbar but keep functionality */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-surface-border);
    border-radius: 10px;
}

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

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

button {
    cursor: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 10;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* =======================================
   Custom Cursor
   ======================================= */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--bg-dark);
    /* Small black dot */
    border: 2px solid var(--accent-gold);
    /* Yellow/Gold border */
    box-shadow: 0 0 15px var(--accent-gold), 0 0 30px var(--accent-gold-glow);
    /* Intense Glowing effect */
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
    transition: width 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.2s, box-shadow 0.2s;
}

/* Cursor Hover States */
body.hovering .cursor-dot {
    width: 30px;
    height: 30px;
    border-color: var(--accent-neon);
    box-shadow: 0 0 20px var(--accent-neon), 0 0 40px var(--accent-neon-glow);
}

/* =======================================
   Cinematic Background Context
   ======================================= */
.cinematic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mesh-gradient {
    position: absolute;
    width: 150vw;
    height: 150vh;
    top: -25vh;
    left: -25vw;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, rgba(0, 0, 0, 0) 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 94, 0, 0.03) 0%, rgba(0, 0, 0, 0) 40%);
    filter: blur(80px);
    animation: slowBreathe 20s ease-in-out infinite alternate;
}

.smoke-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.03;
    mix-blend-mode: overlay;
}

@keyframes slowBreathe {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.05) translate(2%, 2%);
    }

    100% {
        transform: scale(1) translate(-2%, -2%);
    }
}

/* =======================================
   Typography & Utilities
   ======================================= */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

/* =======================================
   Navigation
   ======================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bg-surface-border);
    transition: padding var(--transition-normal);
}

.navbar.scrolled {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    z-index: 101;
}

.logo span {
    font-weight: 400;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.hover-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-fast);
}

.hover-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width var(--transition-fast);
}

.hover-link:hover {
    color: var(--text-primary);
}

.hover-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: none;
    /* Let custom cursor handle it */
}

.primary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--bg-surface-border);
}

.primary-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
}

.neon-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 94, 0, 0.1));
    border: 1px solid var(--accent-gold);
    color: var(--text-primary);
    padding: 18px 40px;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease;
    z-index: 0;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.neon-btn:hover {
    box-shadow: 0 0 30px rgba(255, 94, 0, 0.3);
    border-color: var(--accent-neon);
}

.neon-btn:hover .btn-glow {
    transform: translate(-50%, -50%) scale(1);
    background: radial-gradient(circle, var(--accent-neon-glow) 0%, transparent 60%);
}

/* =======================================
   Hero Section
   ======================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset for nav */
}

.hero-content {
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: -2px;
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    min-height: 2em;
    /* Prevent layout jump */
}

.typing-text {
    color: var(--text-primary);
    font-weight: 500;
}

.cursor-blink {
    color: var(--accent-gold);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-primary), transparent);
    animation: flowDown 2s infinite;
}

@keyframes flowDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* =======================================
   Problem / Solution Section
   ======================================= */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.split-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-border);
    border-radius: 20px;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.split-card:hover {
    transform: translateY(-5px);
}

.split-card h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    margin-top: 20px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.5;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

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

.feature-list li i {
    margin-top: 4px;
    font-size: 1rem;
    flex-shrink: 0;
}

.problem-list li i {
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.4);
}

.solution-list li i {
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--accent-gold-glow);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.problem-card .card-icon {
    color: #ff4d4d;
    filter: drop-shadow(0 0 10px rgba(255, 77, 77, 0.4));
}

.problem-card:hover {
    border-color: rgba(255, 77, 77, 0.3);
}

.solution-card {
    background: rgba(20, 20, 22, 0.9);
    border-color: rgba(212, 175, 55, 0.3);
}

.solution-card .card-icon {
    color: var(--accent-gold);
}

.solution-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.solution-list li {
    color: rgba(255, 255, 255, 0.9);
}

.card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
    filter: blur(25px);
    z-index: 0;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.solution-card:hover .card-glow {
    opacity: 0.8;
    transform: scale(1.1);
}

.solution-card * {
    position: relative;
    z-index: 1;
}

.solution-card .card-glow {
    position: absolute;
    z-index: 0;
}

/* =======================================
   Services Section 
   ======================================= */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

.header-line {
    width: 60px;
    height: 2px;
    background: var(--accent-gold);
    margin-top: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-border);
    border-radius: 24px;
    padding: 50px;
    position: relative;
    transition: border-color var(--transition-normal);
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Tilt effect applied via JS, base styles here */
.service-content {
    transform: translateZ(30px);
    /* 3D pop effect when tilted */
}

.service-card:hover {
    border-color: var(--accent-gold-glow);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bg-surface-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 30px;
    transition: all var(--transition-fast);
}

.service-card:hover .icon-wrapper {
    background: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 10px 20px var(--accent-gold-glow);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
}

/* Menu Stagger Layout */
.services-grid .service-card:nth-child(even) {
    transform: translateY(40px);
}

/* =======================================
   Team Section
   ======================================= */
.team {
    padding-top: 140px;
    /* Account for service card stagger */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 3/4;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: all var(--transition-slow);
}

.team-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    z-index: 1;
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.team-card:hover .team-img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.team-card:hover .team-glow {
    opacity: 0.4;
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 0;
    background: linear-gradient(to top, rgba(212, 175, 55, 0.85), rgba(212, 175, 55, 0.4), transparent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    z-index: 2;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-overlay i {
    margin-right: 6px;
    font-size: 0.75rem;
}

a.team-card:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.team-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.team-info p {
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 500;
}

/* =======================================
   Contact Section
   ======================================= */
.glass-panel {
    background: rgba(20, 20, 22, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bg-surface-border);
    border-radius: 30px;
    padding: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--bg-surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.social-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
}

/* Email Tooltip */
.email-tooltip-wrap {
    position: relative;
    cursor: none;
}

.email-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(20, 20, 22, 0.95);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border-radius: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2), 0 0 15px rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
}

.email-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--accent-gold);
}

.email-tooltip-wrap.show-email .email-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 20px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    cursor: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

.form-label {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: all var(--transition-normal);
}

/* Float label top when focused or filled */
.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: -10px;
    left: 10px;
    background: var(--bg-surface);
    padding: 0 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent-gold);
}

textarea.form-input {
    resize: none;
}

.submit-btn {
    width: 100%;
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submit-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-darker);
}

/* =======================================
   Footer
   ======================================= */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--bg-surface-border);
    margin-top: 60px;
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
}

.footer-logo span {
    font-weight: 400;
    color: var(--text-secondary);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =======================================
   Animations (Scroll Reveals)
   ======================================= */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.visible {
    opacity: 1;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

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

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

/* =======================================
   Responsive Media Queries
   ======================================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

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

    .services-grid {
        gap: 20px;
    }

    .glass-panel {
        padding: 50px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-dot {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .navbar .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1000;
        cursor: none;
    }

    /* Mobile Menu Overlay Styles */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 99;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .mobile-menu.active {
        transform: translateY(0);
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .mobile-link {
        font-size: 2rem;
        font-family: var(--font-heading);
        font-weight: 600;
        color: var(--text-primary);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s, transform 0.4s;
    }

    .mobile-menu.active .mobile-link {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu.active .mobile-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-menu.active .mobile-link:nth-child(2) {
        transition-delay: 0.2s;
    }

    .mobile-menu.active .mobile-link:nth-child(3) {
        transition-delay: 0.3s;
    }

    .mobile-menu.active .btn {
        opacity: 0;
        animation: fadeUpIn 0.4s forwards 0.4s;
    }

    @keyframes fadeUpIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .split-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid .service-card:nth-child(even) {
        transform: none;
    }

    .team {
        padding-top: var(--section-padding);
    }

    .team-img {
        filter: grayscale(0%) contrast(1);
    }

    .glass-panel {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* =======================================
   Our Work Popup
   ======================================= */
.work-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.work-popup {
    background: rgba(20, 20, 22, 0.85);
    border: 1px solid var(--bg-surface-border);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.08);
}

.work-popup-overlay.active .work-popup {
    transform: scale(1) translateY(0);
}

.work-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: none;
    transition: color var(--transition-fast);
    padding: 4px;
}

.work-popup-close:hover {
    color: var(--text-primary);
}

.work-popup-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.8rem;
    color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}

.work-popup h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.work-popup p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}