@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
    --bg-dark: #f8f9fd;
    --bg-card: rgba(255, 255, 255, 0.94);
    --bg-card-hover: #ffffff;
    --text-white: #0c27aa; /* Deep Royal Blue */
    --text-body: #1e2038;
    --text-gray: #454968;
    --text-muted: #8287a7;
    --accent-magenta: #ff06ff; /* Electric Magenta Pink */
    --accent-magenta-rgb: 255, 6, 255;
    --accent-lime: #00e676; /* Electric Lime Green */
    --accent-royal: #0c27aa;
    --accent-royal-rgb: 12, 39, 170;
    --border-color: rgba(12, 39, 170, 0.09);
    --border-color-hover: rgba(255, 6, 255, 0.35);
    --border-radius: 24px;
    --font-title: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --gap: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-body);
    scroll-behavior: smooth;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Film Grain Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.015;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Floating Ambient Liquid Blobs */
.ambient-blob-1 {
    position: absolute;
    top: 15%;
    left: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(var(--accent-magenta-rgb), 0.08) 0%, transparent 70%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(45px);
    pointer-events: none;
    z-index: 0;
    animation: floatBlob 12s ease-in-out infinite alternate;
}

.ambient-blob-2 {
    position: absolute;
    top: 50%;
    right: -8%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-royal-rgb), 0.06) 0%, transparent 70%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(55px);
    pointer-events: none;
    z-index: 0;
    animation: floatBlob 16s ease-in-out infinite alternate-reverse;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(45px, -35px) scale(1.1); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(12, 39, 170, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-magenta);
}

/* =========================================================================
   1. NAVBAR
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 15px 5%;
    background: rgba(248, 249, 253, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--accent-royal);
    cursor: pointer;
}

.nav-brand span {
    color: var(--accent-magenta);
}

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

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-magenta);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-royal);
}

.nav-links a:hover::after {
    width: 100%;
}

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

.nav-social a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: color 0.3s, transform 0.3s;
}

.nav-social a:hover {
    color: var(--accent-magenta);
    transform: translateY(-2px);
}

/* =========================================================================
   2. HERO SECTION
   ========================================================================= */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
    background: radial-gradient(circle at 75% 35%, rgba(var(--accent-magenta-rgb), 0.06) 0%, transparent 60%);
}

#canvas-3d-agency {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    pointer-events: all;
    opacity: 0.95;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 65%;
    pointer-events: none;
}

.hero-content * {
    pointer-events: all;
}

.mega-title {
    font-family: var(--font-title);
    font-size: clamp(3rem, 7vw, 7.2rem);
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: var(--accent-royal);
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-royal);
    transition: all 0.4s ease;
}

.text-outline:hover {
    color: var(--accent-magenta);
    -webkit-text-stroke-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-gray);
    max-width: 550px;
    margin-bottom: 35px;
    font-weight: 400;
}

/* Button UI */
.btn-magnetic-container {
    display: inline-block;
}

.btn-primary-brutal {
    display: inline-flex;
    align-items: center;
    background: var(--accent-magenta);
    color: #ffffff;
    border: none;
    padding: 16px 36px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    box-shadow: 0 6px 25px rgba(var(--accent-magenta-rgb), 0.35);
}

.btn-primary-brutal span {
    margin-left: 10px;
    transition: transform 0.3s;
}

.btn-primary-brutal:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(var(--accent-magenta-rgb), 0.5);
}

.btn-primary-brutal:hover span {
    transform: translateX(5px);
}

/* Spinning Badge Sticker */
.spinning-badge-wrap {
    position: absolute;
    bottom: 40px;
    right: 52%;
    z-index: 10;
    pointer-events: auto;
}

.spinning-badge {
    width: 120px;
    height: 120px;
    animation: spinBadge 18s linear infinite;
    cursor: pointer;
    filter: drop-shadow(0 10px 20px rgba(12, 39, 170, 0.1));
}

@keyframes spinBadge {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================================================
   3. INFINITE KINETIC MARQUEE TICKER
   ========================================================================= */
.marquee-section {
    width: 100%;
    overflow: hidden;
    background: var(--accent-royal);
    color: #ffffff;
    padding: 22px 0;
    margin: 40px 0;
    transform: rotate(-1.5deg) scale(1.03);
    box-shadow: 0 12px 30px rgba(12, 39, 170, 0.15);
    position: relative;
    z-index: 10;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    animation: marquee 25s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 35px;
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-content span.star {
    color: var(--accent-magenta);
    font-size: 1.6rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================================================
   4. SECTIONS BASIC & ORGANIC TILT
   ========================================================================= */
section {
    padding: 110px 5%;
    position: relative;
    width: 100%;
}

.section-header {
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 25px;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--accent-royal);
}

.section-title span {
    color: var(--accent-magenta);
}

.section-tag {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-royal);
}

.tilt-left {
    transform: rotate(-1.5deg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.tilt-right {
    transform: rotate(1.5deg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

/* =========================================================================
   5. BENTO GRID (SHARP SPLIT-MEDIA CARDS)
   ========================================================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    margin-top: 30px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 6px 24px rgba(12, 39, 170, 0.03);
    transform-style: preserve-3d;
}

.bento-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 20px 40px rgba(12, 39, 170, 0.08), 0 0 30px rgba(var(--accent-magenta-rgb), 0.08);
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* Sharp Split Image Frame Inside Bento Card */
.bento-img-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(12, 39, 170, 0.08);
    position: relative;
}

.bento-img-sharp {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.0) contrast(1.05); /* 100% sharp and vibrant! */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-img-sharp {
    transform: scale(1.06);
}

/* Side-by-side layout for large cards */
.bento-card.bento-split-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 35px;
}

.bento-card.bento-split-row .bento-img-frame {
    width: 42%;
    aspect-ratio: 4 / 3;
    height: auto;
    margin-bottom: 0;
    flex-shrink: 0;
}


.bento-card.bento-split-row .card-content {
    flex: 1;
}

.card-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-royal);
    font-family: var(--font-title);
    margin-bottom: 12px;
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 10px;
    color: var(--accent-royal);
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1.5;
}

.bento-card.highlight {
    background: radial-gradient(circle at 100% 0%, rgba(var(--accent-magenta-rgb), 0.08) 0%, transparent 70%), var(--bg-card);
    border-color: rgba(var(--accent-magenta-rgb), 0.3);
}

/* =========================================================================
   6. COMPACT INTERACTIVE PROCESS STEPPER
   ========================================================================= */
.stepper-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(12, 39, 170, 0.03);
    margin-top: 30px;
}

.stepper-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stepper-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stepper-tab span.num {
    color: var(--accent-royal);
}

.stepper-tab:hover {
    border-color: var(--accent-royal);
    color: var(--accent-royal);
}

.stepper-tab.active {
    background: var(--accent-royal);
    border-color: var(--accent-royal);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(12, 39, 170, 0.25);
}

.stepper-tab.active span.num {
    color: var(--accent-magenta);
}

.stepper-panels {
    position: relative;
    min-height: 120px;
}

.stepper-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.stepper-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.stepper-panel-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--accent-royal);
    margin-bottom: 10px;
    line-height: 1.1;
}

.stepper-panel-title span {
    color: var(--accent-magenta);
}

.stepper-panel-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 850px;
    line-height: 1.6;
}

/* =========================================================================
   7. EDITORIAL MONUMENTAL PORTFOLIO
   ========================================================================= */
.portfolio-editorial-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 40px;
}

.portfolio-editorial-card {
    width: 100%;
    height: 520px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(12, 39, 170, 0.06);
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.portfolio-editorial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(12, 39, 170, 0.12);
}

.editorial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-editorial-card:hover .editorial-img {
    transform: scale(1.06);
}

.editorial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(12, 39, 170, 0.95) 0%, rgba(12, 39, 170, 0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px;
    z-index: 2;
}

.editorial-tag-glass {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255, 6, 255, 0.25);
    border: 1px solid rgba(255, 6, 255, 0.5);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
    margin-bottom: 15px;
}

.editorial-title {
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    text-transform: uppercase;
    line-height: 1;
    color: #ffffff !important;
    margin-bottom: 12px;
}

.editorial-result {
    font-size: 1.1rem;
    color: var(--accent-lime);
    font-weight: 700;
}

/* =========================================================================
   8. PORTFOLIO LIGHTBOX MODAL
   ========================================================================= */
.lightbox-modal {
    /* Visibility-based toggle for proper CSS transition — display:none kills transitions */
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(12, 39, 170, 0.4);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.lightbox-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.lightbox-content {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 950px;
    position: relative;
    box-shadow: 0 40px 80px rgba(12, 39, 170, 0.2);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(25px);
    overflow: hidden;
}

.lightbox-modal.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-gray);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--accent-magenta);
}

.lightbox-body {
    display: flex;
    flex-direction: row;
    min-height: 480px;
}

.lightbox-img-wrap {
    flex: 1.2;
    background: #000;
    max-height: 550px;
    overflow: hidden;
}

.lightbox-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-info {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lightbox-info h2 {
    font-family: var(--font-title);
    font-size: 2.4rem;
    text-transform: uppercase;
    line-height: 1;
    margin: 10px 0 20px 0;
    color: var(--accent-royal);
}

.lightbox-info p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 30px;
}

.lightbox-stats {
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
}

.lightbox-stats h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.lightbox-stats p {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-magenta);
    margin-bottom: 0;
}

/* =========================================================================
   9. STATS & AGENCY MANIFESTO
   ========================================================================= */
.manifesto-banner {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 60px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(12, 39, 170, 0.03);
}

.manifesto-quote {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 3.4rem);
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--accent-royal);
    margin-bottom: 30px;
}

.manifesto-quote span {
    color: var(--accent-magenta);
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(12, 39, 170, 0.02);
    transform-style: preserve-3d;
}

.stat-item:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 12px 25px rgba(255, 6, 255, 0.12);
}

.stat-num {
    font-family: var(--font-title);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    color: var(--accent-royal);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
}

/* =========================================================================
   10. MEGA CONTACT STAGE
   ========================================================================= */
.mega-contact-stage {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.mega-contact-title {
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 5vw, 4rem);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 30px;
    color: var(--accent-royal);
}

.mega-email-link {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 4.5vw, 4.2rem);
    font-weight: 800;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-royal);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    word-break: break-word;
}

.mega-email-link:hover {
    color: var(--accent-magenta);
    -webkit-text-stroke-color: transparent;
    transform: scale(1.03);
}

.direct-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-royal);
    text-decoration: none;
    transition: all 0.3s;
}

.contact-badge:hover {
    border-color: var(--accent-magenta);
    color: var(--accent-magenta);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 6, 255, 0.15);
}

/* =========================================================================
   11. FOOTER
   ========================================================================= */
footer {
    padding: 40px 5%;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fd;
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--accent-royal);
}

/* Scroll Progress Bar */
.progress-bar-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 4px;
    height: 100vh;
    z-index: 1001;
    background: rgba(12, 39, 170, 0.05);
}

.progress-bar {
    width: 100%;
    height: 0%;
    background: var(--accent-magenta);
    transition: height 0.1s ease-out;
}

/* =========================================================================
   12. MODALS
   ========================================================================= */
.modal {
    /* Visibility-based toggle for proper CSS transition — display:none kills transitions */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(12, 39, 170, 0.35);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.modal-content {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-body);
    padding: 60px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(12, 39, 170, 0.15);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(25px);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--accent-royal);
}

.modal-content h2 span {
    color: var(--accent-magenta);
}

.modal-content p {
    color: var(--text-gray);
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--text-gray);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent-magenta);
}

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

.client-logo {
    background: rgba(12, 39, 170, 0.02);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.3s;
}

.client-logo:hover {
    border-color: var(--accent-magenta);
}

.client-logo b {
    color: var(--accent-royal);
    display: block;
    margin-bottom: 5px;
}

/* =========================================================================
   13. RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-card.bento-split-row {
        flex-direction: column;
        align-items: stretch;
    }
    .bento-card.bento-split-row .bento-img-frame {
        width: 100%;
        aspect-ratio: 16 / 10;
        height: auto;
        margin-bottom: 20px;
    }
    .span-4, .span-5, .span-7, .span-8 {
        grid-column: span 3;
    }
    .span-12 {
        grid-column: span 6;
    }
    .hero {
        height: auto;
        min-height: 100vh;
        flex-direction: column-reverse;
        justify-content: center;
        padding: 120px 5% 60px 5%;
    }
    #canvas-3d-agency {
        position: relative;
        width: 100%;
        height: 320px;
        order: 1;
        margin-bottom: 20px;
    }
    .hero-content {
        max-width: 100%;
        order: 2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        pointer-events: all;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 25px;
    }
    .spinning-badge-wrap {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 5%;
    }
    .nav-links {
        display: none;
    }
    .ambient-blob-1, .ambient-blob-2 {
        display: none !important;
    }
    .hero-content {
        padding: 0 10px;
    }
    .mega-title {
        font-size: clamp(2.2rem, 9vw, 3.4rem) !important;
        letter-spacing: -1px;
        line-height: 0.95;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .span-4, .span-5, .span-7, .span-8, .span-12 {
        grid-column: span 1;
    }
    .bento-card {
        padding: 24px;
        border-radius: 20px;
    }
    .stepper-container {
        padding: 24px 16px;
        border-radius: 20px;
    }
    .portfolio-editorial-card {
        height: 360px;
    }
    .editorial-overlay {
        padding: 24px;
    }
    .editorial-title {
        font-size: 1.8rem;
        line-height: 1.15;
    }
    .stepper-tabs {
        flex-direction: column;
        gap: 10px;
    }
    .stepper-tab {
        width: 100%;
        justify-content: center;
    }
    .lightbox-body {
        flex-direction: column;
    }
    .lightbox-img-wrap {
        height: 220px;
        max-height: 220px;
    }
    .lightbox-info {
        padding: 24px;
    }
    .lightbox-info h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    .manifesto-banner {
        padding: 35px 25px;
    }
    .mega-email-link {
        font-size: clamp(1.2rem, 6.5vw, 2.2rem) !important;
        -webkit-text-stroke: 1px var(--accent-royal) !important;
        margin-bottom: 30px;
    }
    .direct-badges {
        gap: 12px;
        width: 100%;
    }
    .contact-badge {
        padding: 14px 20px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    .modal-content {
        padding: 35px 20px;
    }
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* =========================================================================
   14. HAMBURGER BUTTON & MOBILE SLIDE-IN MENU
   ========================================================================= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    position: relative;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-royal);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

/* Animated X when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Slide-in mobile menu panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    background: rgba(248, 249, 253, 0.98);
    backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-color);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px rgba(12, 39, 170, 0.12);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 28px;
    right: 28px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-gray);
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
}

.mobile-menu-close:hover {
    color: var(--accent-magenta);
    transform: rotate(90deg);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.mobile-link {
    color: var(--accent-royal);
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 1.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.25s, padding-left 0.25s;
    display: block;
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link:hover,
.mobile-link:focus {
    color: var(--accent-magenta);
    padding-left: 12px;
    outline: none;
}

.mobile-social {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.mobile-social a {
    color: var(--text-gray);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mobile-social a:hover {
    color: var(--accent-magenta);
}

/* Dark overlay behind the menu panel */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 39, 170, 0.28);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

/* Show hamburger & hide desktop social on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-social {
        display: none;
    }
}
