﻿
/* Skip Navigation - Accessibility */
.skip-nav {
    position: absolute;
    top: -100px;
    left: 16px;
    background: #4f46e5;
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
    text-decoration: none;
}
.skip-nav:focus {
    top: 0;
}/* 
    NexaCore Design System
    Focus: Premium, Clean, Agency Aesthetic
*/

:root {
  --white: #ffffff;
  --bg-soft: #f5f6fa;
  --bg-dark: #0d0d0f;
  --bg-hero: #e8eaf2;              /* NEW — light lavender-gray hero bg */
  --text-dark: #111111;
  --text-mid: #4A5568;
  --text-light: #9CA3AF;
  --accent: #5b6ef5;               /* CHANGED — blue-indigo (was #1A56DB) */
  --accent2: #9b8ff7;              /* NEW — soft purple accent */
  --accent-hover: #4a5cf5;
  --accent-light: rgba(91,110,245,0.1);
  --border: #E2E8F0;
  --glass: rgba(255,255,255,0.55);
  --glass-dark: rgba(255,255,255,0.06);
  --success: #059669;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(91,110,245,0.18);
  --shadow-card: 0 35px 70px rgba(91,110,245,0.15);

  --radius-card: 24px;             /* CHANGED from 16px — rounder cards */
  --radius-btn: 50px;              /* CHANGED from 10px — pill buttons */
  --radius-badge: 50px;            /* CHANGED from 6px — pill badges */

  --container-width: 1400px;       /* CHANGED from 1200px — wider layout */
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --font: 'DM Sans', sans-serif;
  --font-heading: 'Sora', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

a, button { cursor: none; }

.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
.cursor-follower {
  position: fixed; width: 36px; height: 36px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s, height 0.3s;
}

@media (hover: none) and (pointer: coarse) {
  body, a, button { cursor: auto !important; }
  .cursor, .cursor-follower { display: none !important; }
}

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Custom Scrollbar */
body {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

h1, h2, h3, h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

h1 em, h2 em, h3 em, .section-h2 em {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

section {
    padding: 6rem 0;
}

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

/* 
========================================
REUSABLE COMPONENTS
========================================
*/
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-soft);
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-badge);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
    border: none;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(91,110,245,0.4);
}

.btn-primary {
    background: var(--bg-dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-dark);
    border: 1px solid rgba(17,17,17,0.15);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--white);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-white {
    background: #111;
    color: #fff;
}

.btn-white:hover {
    background: #fff;
    color: #111;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* 
========================================
NAVIGATION
========================================
*/
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.4rem 3rem;
  transition: all 0.4s;
  mix-blend-mode: difference;    /* inverts against any background */
  color: #fff;
  display: flex;
  align-items: center;
}
nav.scrolled {
  padding: 1rem 3rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  mix-blend-mode: normal;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}
nav.scrolled .logo { color: var(--text-dark); }
nav.scrolled .nav-right .btn { background: var(--accent); color: #fff; }
nav.menu-open { mix-blend-mode: normal; color: var(--text-dark); }
nav.menu-open .logo { color: var(--text-dark); }

nav .container {
  display: flex; align-items: center; gap: 2rem;
  max-width: var(--container-width); margin: 0 auto;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem; font-weight: 800;
  letter-spacing: -0.04em; color: #fff;
}

.logo span { font-weight: 400; opacity: 0.75; }

.nav-links {
  display: flex; gap: 2.5rem; margin-left: auto;
  font-size: 0.88rem; font-weight: 500;
}

.nav-links a { opacity: 0.75; transition: opacity 0.2s; color: inherit; }

.nav-links a:hover, .nav-links a.active { opacity: 1; }

/* Navigation Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-trigger .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown:hover .dropdown-trigger .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #6C6C6C !important;
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
    opacity: 0.75 !important;
    white-space: nowrap;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    background: #f5f5f3;
    color: #0057FF !important;
    opacity: 1 !important;
}

/* Mix-blend-mode override when nav is hovered */
nav:hover, nav:focus-within {
    mix-blend-mode: normal !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--text-dark) !important;
    box-shadow: var(--shadow-sm);
}

nav:hover .logo, nav:focus-within .logo {
    color: var(--text-dark) !important;
}

nav:hover .mobile-toggle span, nav:focus-within .mobile-toggle span {
    background: var(--text-dark) !important;
}

nav:hover .nav-right .btn, nav:focus-within .nav-right .btn {
    background: var(--accent) !important;
    color: #fff !important;
}

/* Nav dropdown adjustments when nav is not scrolled or hovered */
nav:not(.scrolled):not(:hover) .dropdown-menu {
    background: rgba(13, 13, 15, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

nav:not(.scrolled):not(:hover) .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.7) !important;
}

nav:not(.scrolled):not(:hover) .dropdown-menu li a:hover,
nav:not(.scrolled):not(:hover) .dropdown-menu li a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

/* Hide mobile CTA link on desktop */
.nav-cta-mobile { display: none; }

/* Responsive adjustment for Mobile Menu */
@media (max-width: 1024px) {
    .nav-dropdown {
        text-align: center;
        width: 100%;
    }

    /* Make "Our Designs" tappable on mobile */
    .dropdown-trigger {
        justify-content: center;
        font-weight: 700;
        font-size: 24px;
        opacity: 1;
        pointer-events: auto;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-dark);
    }
    .dropdown-trigger .arrow {
        display: inline-block;
        font-size: 14px;
        transition: transform 0.3s ease;
    }
    .dropdown-trigger.open .arrow {
        transform: rotate(180deg);
    }

    /* Sub-menu hidden by default on mobile — shown by JS toggle */
    .dropdown-menu {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        border: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 8px 0 4px !important;
        min-width: auto !important;
        display: none;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        border-top: 1px solid rgba(0,0,0,0.06) !important;
        margin-top: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .dropdown-menu.open {
        display: flex !important;
    }
    .dropdown-menu li {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    /* Set text colors and ensure they override any non-hover / scrolled states */
    .dropdown-menu li a,
    nav:not(.scrolled):not(:hover) .dropdown-menu li a {
        display: block !important;
        width: 100% !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        color: var(--text-mid) !important;
        text-align: center !important;
        padding: 6px 0 !important;
        opacity: 1 !important;
        white-space: normal !important;
        background: transparent !important;
    }
    .dropdown-menu li a:hover,
    .dropdown-menu li a.active,
    nav:not(.scrolled):not(:hover) .dropdown-menu li a:hover,
    nav:not(.scrolled):not(:hover) .dropdown-menu li a.active {
        background: transparent !important;
        color: var(--accent) !important;
        opacity: 1 !important;
    }

    /* "Let's Talk" CTA inside mobile menu */
    .nav-cta-mobile {
        display: block !important;
        margin-top: 12px !important;
        width: 100%;
    }
    .nav-cta-mobile a {
        display: block !important;
        background: var(--accent) !important;
        color: #ffffff !important;
        padding: 14px 32px !important;
        border-radius: 50px !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        text-align: center !important;
        opacity: 1 !important;
        transition: background 0.3s ease, transform 0.3s ease !important;
    }
    .nav-cta-mobile a:hover {
        background: var(--accent-hover) !important;
        transform: translateY(-2px) !important;
    }
}

.nav-right .btn {
  background: #fff; color: #000;
  padding: 0.6rem 1.3rem; border-radius: 50px;
  font-size: 0.82rem; font-weight: 700;
}

.nav-right .btn:hover { background: #e0e0e0; transform: translateY(-2px); }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background: #fff;  /* White for difference mode */
    transition: var(--transition);
}
nav.scrolled .mobile-toggle span { background: var(--text-dark); }
nav.menu-open .mobile-toggle span { background: var(--text-dark); }

@media (max-width: 1024px) {
    .mobile-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 80px 40px 40px;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
        overflow-y: auto;
    }

    #navbar.menu-open .nav-links {
        right: 0;
    }

    .nav-links li {
        margin: 14px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links > li > a {
        font-size: 24px;
        font-weight: 700;
        color: var(--text-dark);
    }

    .nav-right { display: none; }

    /* Toggle Animation */
    .mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* 
========================================
HOME HERO
========================================
*/
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #dfe2ef 0%, #e8eaf4 45%, #eaecf5 100%);
  padding-top: 80px;
  padding-bottom: 0;           /* REMOVE extra gap below info strip */
}

#heroCanvas {
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 10;
  padding: 0 3rem;
  max-width: var(--container-width);
  margin: 0 auto; width: 100%;
  padding-top: 4rem;
  padding-bottom: 2rem;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
}

.hero-title {
  font-size: clamp(3.2rem, 5.8vw, 7rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
  max-width: 54%;
}
.hero-title .line { display: block; }
.ht-black  { color: #111; font-style: normal; }
.ht-gray   { color: #6b7280; font-style: normal; }
.ht-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(17,17,17,0.6);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-trust {
  display: flex; gap: 2rem; flex-wrap: wrap;
  font-size: 0.85rem; font-weight: 600;
  color: rgba(17,17,17,0.5);
  margin-bottom: 2rem;
}

/* Rotating badge */
.rotating-badge {
  position: absolute;
  right: 38%; top: 48%;
  transform: translateY(-50%);
  width: 155px; height: 155px;
  background: #111;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 12;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  transition: transform 0.4s;
}
.rotating-badge:hover { transform: translateY(-50%) scale(1.08); }
.badge-svg { width: 100%; height: 100%; animation: spin 20s linear infinite; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-arrow { position: relative; color: #fff; font-size: 1.9rem; z-index: 1; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 9rem; left: 3rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; z-index: 6;
  font-size: 0.7rem; font-weight: 600;
  opacity: 0.4; letter-spacing: 0.06em; color: #111;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, #111, transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Info strip */
.hero-info-strip {
  position: relative; z-index: 10;
  display: flex; align-items: center; gap: 4.5rem;
  padding: 2.2rem 4rem;
  background: rgba(232,234,242,0.7);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.8);
  flex-wrap: wrap;
}
.info-item h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 0.25rem; color: #111; }
.info-item p  { font-size: 0.82rem; color: rgba(17,17,17,0.5); }
.info-divider { width: 1px; height: 36px; background: rgba(17,17,17,0.12); }
.info-desc p  { font-size: 0.82rem; color: rgba(17,17,17,0.5); line-height: 1.65; max-width: 380px; }
.info-stats   { display: flex; gap: 2.5rem; margin-left: auto; }
.stat-chip h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em; color: #111; }
.stat-chip p  { font-size: 0.75rem; color: rgba(17,17,17,0.45); }

/* 
========================================
PAGE HERO (Subpages)
========================================
*/
.page-hero {
    padding: 160px 0 100px;
    text-align: center;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb span {
    color: var(--accent);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-light);
    border: 1px solid rgba(26, 86, 219, 0.2);
    border-radius: 30px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 180px 0 120px;
    text-align: center;
}

.page-hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-hero h1 {
    font-size: clamp(48px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.page-hero .gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p {
    font-size: 20px;
    color: var(--text-mid);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(26, 86, 219, 0.05);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero-orb-1 { top: -100px; left: -100px; }
.hero-orb-2 { bottom: -100px; right: -100px; opacity: 0.08; }

/* 
========================================
SECTIONS
========================================
*/
section {
    padding: 100px 0;
}

/* 
========================================
FILTER BAR
========================================
*/
.filter-section {
    padding: 30px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 10px 24px;
    background: var(--bg-soft);
    color: var(--text-mid);
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.filter-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-pill.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

/* 
========================================
STATS REFINEMENT
========================================
*/
.stat-item h3 {
    font-size: 48px;
    margin-bottom: 8px;
    color: var(--accent); /* Default to accent for light backgrounds */
}

.stats .stat-item h3 {
    color: var(--accent-light); /* Light accent for dark backgrounds */
}

/* CSS Illustration */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.shape-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent) 0%, #3B82F6 100%);
    border-radius: 50%;
    top: 50px;
    left: 50px;
    opacity: 0.1;
    animation: float 6s infinite ease-in-out;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    animation: float 5s infinite ease-in-out;
}

.card-1 { top: 40px; right: -20px; animation-delay: 0s; }
.card-2 { bottom: 60px; left: -40px; animation-delay: 1.5s; }
.card-3 { top: 200px; left: -10px; animation-delay: 3s; }

.mockup-main {
    position: absolute;
    width: 320px;
    height: 220px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    padding: 12px;
}

.mockup-nav {
    height: 8px;
    width: 100%;
    background: var(--bg-soft);
    border-radius: 4px;
    margin-bottom: 20px;
}

.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mockup-item {
    height: 80px;
    background: var(--bg-soft);
    border-radius: 8px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 40px; }
    .hero-btns { justify-content: center; }
    .hero-trust { justify-content: center; flex-wrap: wrap; }
    .hero-visual { display: none; }
    .hero-content h1 { font-size: 48px; }
}

/* 
========================================
LOGO STRIP
========================================
*/
.marquee-wrapper {
  overflow: hidden;
  background: var(--bg-dark);
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.marquee-track {
  display: flex; gap: 2.5rem;
  width: max-content;
  animation: marquee 25s linear infinite;
  font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,0.6);
  align-items: center;
}
.marquee-track .msep { color: var(--accent); opacity: 0.7; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 
========================================
SERVICES
========================================
*/
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-size: 40px;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.section-title p {
    color: var(--text-mid);
    font-size: 18px;
}

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

/* Service card enhancements */
.img-service-card {
  border-radius: var(--radius-card);   /* use 24px token */
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.img-service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-card);
}
/* Add shine sweep on hover */
.img-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s;
  pointer-events: none;
  z-index: 5;
}
.img-service-card:hover::before { left: 100%; }

/* Section label pill */
.badge {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(91,110,245,0.2);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-mid);
    margin-bottom: 24px;
    font-size: 15px;
}

.learn-more {
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

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


/* 
========================================
STATS SECTION
========================================
*/
.stats-section {
  background: var(--bg-dark);
  padding: 5rem 0;
}
.stats-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stats-section .stat-item h2 {
  font-size: 4rem; font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff; margin-bottom: 0.5rem;
}
.stats-section .stat-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

/* 
========================================
WHY US SECTION
========================================
*/
.why-us { 
  background: linear-gradient(180deg, #f5f6fa 0%, #edf0f8 100%); 
  padding: 8rem 0; 
  position: relative;
  overflow: hidden;
}
/* Subtle ambient orb in background */
.why-us::before {
  content: ''; position: absolute;
  top: 30%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(91, 110, 245, 0.06) 0%, transparent 70%);
  z-index: 0; pointer-events: none;
}

.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
  position: relative;
  z-index: 1;
}
.section-h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #111;
  margin-bottom: 1.5rem;
}
.section-h2 em {
  font-style: normal;
  color: var(--accent);
}
.why-left p {
  font-size: 1.12rem;
  line-height: 1.8;
}
.bento-right {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.bento-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(91, 110, 245, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.015), 0 2px 4px rgba(0, 0, 0, 0.01);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}
.bento-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(91, 110, 245, 0.1), 0 10px 20px rgba(0, 0, 0, 0.02);
  border-color: rgba(91, 110, 245, 0.25);
}
.bento-large {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(91, 110, 245, 0.04) 0%, rgba(155, 143, 247, 0.08) 100%);
  border-color: rgba(91, 110, 245, 0.15);
  box-shadow: 0 15px 45px rgba(91, 110, 245, 0.03);
}
.bento-icon { 
  font-size: 2.0rem; 
  width: 60px;
  height: 60px;
  background: rgba(91, 110, 245, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
}
.bento-large .bento-icon {
  background: rgba(155, 143, 247, 0.12);
}
.bento-box:hover .bento-icon {
  transform: scale(1.12) rotate(6deg);
  background: rgba(91, 110, 245, 0.15);
}
.bento-large:hover .bento-icon {
  background: rgba(155, 143, 247, 0.22);
}
.bento-box h4 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; color: #111; }
.bento-box p  { font-size: 0.98rem; color: #5b6275; line-height: 1.7; }

/* 
========================================
PORTFOLIO SECTION
========================================
*/
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}
.portfolio-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.4s;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
}
.portfolio-card:hover {
  box-shadow: 0 35px 70px rgba(91,110,245,0.2);
  border-color: rgba(91,110,245,0.4);
}
.portfolio-img {
    height: 320px;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.portfolio-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: var(--white);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}
.portfolio-content { padding: 30px; }
.portfolio-content h3 { font-size: 22px; margin-bottom: 12px; }
.portfolio-content p { color: var(--text-mid); font-size: 15px; margin-bottom: 24px; }

/* 
========================================
TESTIMONIALS SECTION
========================================
*/
.testimonials-dark {
  background: var(--bg-dark);
  padding: 6rem 0;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.testimonials-dark .testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  color: #fff;
  transition: var(--transition);
  padding: 40px;
}
.testimonials-dark .testimonial-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 35px 70px rgba(0,0,0,0.4);
  border-color: rgba(91,110,245,0.5);
}
.testimonials-dark .testimonial-text { color: rgba(255,255,255,0.75); margin-bottom: 24px; font-style: italic; font-size: 16px; }
.testimonials-dark .quote-icon { color: var(--accent2); font-size: 40px; margin-bottom: 10px; opacity: 1; }
.testimonials-dark .author-info h4 { color: #fff; margin-bottom: 4px; font-size: 16px; }
.testimonials-dark .author-info p  { color: rgba(255,255,255,0.45); font-size: 14px; }
.testimonials-dark .avatar {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* White badge variant for dark backgrounds */
.badge-white {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
}
.badge-white::before { background: var(--accent2); }

/* 
========================================
CTA BANNER
========================================
*/
.cta-banner {
  background: var(--accent);
  border-radius: var(--radius-card);
  padding: 5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.cta-banner h2 em {
  font-style: normal;
  color: #000;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #000;
}
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

/* 
========================================
FOOTER
========================================
*/
footer {
    background: #090910;
    color: var(--white);
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}
.footer-logo { font-size: 28px; margin-bottom: 24px; color: white; }
.footer-logo span { color: var(--accent); }
.footer-tagline { color: rgba(255,255,255,0.6); margin-bottom: 24px; font-size: 15px; }
.footer-col h4 { font-size: 18px; margin-bottom: 30px; color: var(--white); }
.footer-links li { margin-bottom: 16px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 15px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

/* 
========================================
RESPONSIVE — COMPREHENSIVE
========================================
*/

/* ─── 1200px — Wide Tablets / Small Laptops ─── */
@media (max-width: 1200px) {
  :root { --container-width: 1100px; }
  .hero-title { font-size: clamp(3rem, 5.2vw, 5.5rem); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
  .footer-grid .footer-col:last-child { grid-column: span 3; }
  .scrollytelling-grid { padding: 0 40px; gap: 40px; }
}

/* ─── 1024px — Tablets Landscape ─── */
@media (max-width: 1024px) {
  :root { --container-width: 100%; }
  .container { padding: 0 24px; }

  /* Nav */
  nav { padding: 1.2rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }

  /* Hero */
  .hero-title { max-width: 80%; font-size: clamp(2.8rem, 5vw, 4.5rem); }
  #heroCanvas { width: 40%; }
  .rotating-badge { right: 34%; width: 130px; height: 130px; }
  .scroll-indicator { left: 1.5rem; }

  /* Why Us */
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .bento-right { display: grid; }

  /* Stats */
  .stats-section .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  /* Designs scrollytelling */
  .scrollytelling-grid { padding: 0 40px; gap: 40px; }
}

/* ─── 768px — Tablets Portrait ─── */
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .container { padding: 0 20px; }

  /* Nav */
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.7rem 1.5rem; }

  /* Hero */
  .hero { min-height: 100dvh; padding-bottom: 0; }
  .hero-content { padding: 0 1.5rem; padding-top: 2rem; padding-bottom: 2rem; }
  .hero-title {
    font-size: clamp(2.4rem, 9vw, 3.8rem);
    max-width: 100%;
    letter-spacing: -0.04em;
  }
  .hero-sub { font-size: 1rem; max-width: 100%; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  #heroCanvas { display: none; }
  .rotating-badge { display: none; }
  .scroll-indicator { display: none; }
  .hero-info-strip {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    align-items: flex-start;
  }
  .info-stats { display: none; }
  .info-divider { display: none; }

  /* Section titles */
  .section-title { margin-bottom: 40px; }
  .section-title h2 { font-size: 28px; }
  .section-title p { font-size: 16px; }
  .section-h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .img-service-card { height: 340px; }

  /* Why Us */
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
  .bento-right { grid-template-columns: 1fr; }
  .bento-large { grid-column: span 1; }
  .bento-box { padding: 1.5rem; }

  /* Stats */
  .stats-section { padding: 3rem 0; }
  .stats-section .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stats-section .stat-item h2 { font-size: 2.8rem; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
  .portfolio-img { height: 260px !important; }

  /* Testimonials */
  .testimonial-grid { grid-template-columns: 1fr; gap: 20px; }
  .testimonials-dark .testimonial-card { padding: 28px; }
  .testimonials-dark { padding: 4rem 0; }

  /* CTA */
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
  }
  .cta-banner h2 { font-size: 1.8rem; }
  .cta-banner p { font-size: 1rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding-top: 24px;
  }
  footer { padding: 60px 0 24px; }

  /* Filter pills */
  .filter-container { gap: 8px; }
  .filter-pill { padding: 8px 16px; font-size: 13px; }

  /* CTA button full-width on mobile */
  .cta-banner .btn { width: 100%; justify-content: center; }

  /* Designs page — scrollytelling becomes stacked on mobile */
  .scrollytelling-section { height: auto !important; }
  .sticky-container {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
  }
  .scrollytelling-grid {
    grid-template-columns: 1fr !important;
    padding: 40px 20px !important;
    gap: 40px !important;
    height: auto !important;
  }
  .left-col {
    overflow: visible !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    height: auto !important;
    padding-right: 0 !important;
  }
  .right-col { height: 50vw; min-height: 300px; }
  .mockup-cards-container { height: 100%; }
  .project-list { gap: 24px; }
  .project-name { font-size: clamp(1.5rem, 6vw, 2.5rem) !important; }
  .project-item { opacity: 1 !important; transform: none !important; }
  .project-item.active { transform: none !important; }

  /* About page timeline */
  .timeline-line { left: 24px; }
  .timeline-dot { left: 24px; }
  .timeline-card { width: 85%; margin-left: 50px; }
  .left-item, .right-item { justify-content: flex-end; }
}

/* ─── 480px — Large Phones ─── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Nav */
  nav { padding: 0.9rem 1rem; }
  .logo { font-size: 1.1rem; }
  .logo img { height: 28px !important; width: 28px !important; }
  .nav-links {
    width: 100% !important;
    padding: 30px 20px !important;
  }
  .nav-links a { font-size: 20px !important; }

  /* Hero */
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); line-height: 1.1; }
  .hero-sub { font-size: 0.95rem; }

  /* Stats */
  .stats-section .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stats-section .stat-item h2 { font-size: 2.2rem; }

  /* Section heading */
  .section-title h2 { font-size: 24px; }
  .section-h2 { font-size: 1.7rem; }

  /* Portfolio */
  .portfolio-img { height: 220px !important; }
  .portfolio-content { padding: 20px; }
  .portfolio-content h3 { font-size: 18px; }

  /* Testimonials */
  .testimonials-dark .testimonial-card { padding: 22px; }
  .testimonials-dark .testimonial-text { font-size: 14px; }

  /* CTA */
  .cta-banner { padding: 2rem 1rem; border-radius: 12px; }
  .cta-banner h2 { font-size: 1.5rem; }

  /* Footer */
  .footer-logo { font-size: 22px; }

  /* Bento boxes */
  .bento-box { padding: 1.25rem; }
  .bento-icon { width: 48px; height: 48px; font-size: 1.5rem; }
  .bento-box h4 { font-size: 1.1rem; }

  /* Designs page */
  .right-col { height: 60vw; min-height: 240px; }

  /* About values */
  .values-grid { grid-template-columns: 1fr !important; }
  .value-card { padding: 28px; }

  /* Page hero (subpages) */
  .page-hero { padding: 130px 0 80px; }
  .page-hero h1 { font-size: clamp(32px, 9vw, 52px); }
  .page-hero p { font-size: 16px; }
}

/* ─── 360px — Small Phones ─── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero-title { font-size: clamp(1.8rem, 11vw, 2.5rem); }
  .hero-btns .btn { font-size: 0.82rem; padding: 0.75rem 1.2rem; }
  .stats-section .stat-item h2 { font-size: 1.9rem; }
  .section-title h2 { font-size: 22px; }
  .cta-banner h2 { font-size: 1.35rem; }
  .nav-links a { font-size: 18px !important; }
}
