/* ============================================
   GODMODE MEDIA HOUSE - STYLES
   Ultra-Modern Minimal Design
   ============================================ */

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #08080c;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-img {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(75%) sepia(50%) saturate(500%) hue-rotate(5deg) brightness(0.95);
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #d4a853, #e8c87a);
    border-radius: 2px;
    animation: loaderFill 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   CURSOR TRAIL
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    opacity: 0;
    mix-blend-mode: screen;
}

.cursor-glow.active {
    opacity: 1;
}

.cursor-glow.hover {
    width: 50px;
    height: 50px;
}


/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Colors - Refined dark palette with warm undertones */
    --color-bg-primary: #08080c;
    --color-bg-secondary: #0e0e14;
    --color-bg-tertiary: #16161f;
    --color-bg-card: rgba(255, 255, 255, 0.02);
    --color-bg-card-hover: rgba(255, 255, 255, 0.05);
    --color-bg-glass: rgba(14, 14, 20, 0.72);

    /* Accent - Warm champagne gold, more refined */
    --color-accent: #d4a853;
    --color-accent-light: #e8c878;
    --color-accent-dark: #b08a3a;
    --color-accent-glow: rgba(212, 168, 83, 0.1);
    --color-accent-subtle: rgba(212, 168, 83, 0.06);

    /* Text - Warmer whites */
    --color-text-primary: #f5f3ed;
    --color-text-secondary: rgba(245, 243, 237, 0.55);
    --color-text-muted: rgba(245, 243, 237, 0.3);

    /* Borders - ultra subtle */
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(212, 168, 83, 0.25);

    /* Typography */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --section-padding: clamp(48px, 5vw, 80px);
    --container-max: 1900px;
    --container-padding: clamp(24px, 4vw, 48px);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);

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

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    font-weight: 400;
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg-primary);
}

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

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* --- Utility --- */
.text-accent {
    color: var(--color-accent);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-medium);
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}

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

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    box-shadow: 0 0 0 0 rgba(212, 168, 83, 0);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212, 168, 83, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    padding: 14px 0;
    background: var(--color-bg-glass);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--color-border);
}

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

.nav-logo {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

.brand-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-medium);
    filter: brightness(0) invert(75%) sepia(50%) saturate(500%) hue-rotate(5deg) brightness(0.95);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-accent);
}

.nav-link.nav-cta {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    font-weight: 500;
    margin-left: auto;
}

.nav-link.nav-cta:hover {
    box-shadow: 0 4px 24px rgba(212, 168, 83, 0.3);
    transform: translateY(-1px);
}

.nav-link.nav-cta::after {
    display: none;
}

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

.nav-cta-inner {
    display: block;
    background: var(--color-accent);
    color: var(--color-bg-primary) !important;
    font-weight: 500;
    text-align: center;
    padding: 14px 28px !important;
    border-radius: var(--radius-xl);
    margin-top: 16px;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-text-primary);
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 1.5px;
    background: var(--color-text-primary);
    transition: all var(--transition-fast);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Frosted glass gradient at the bottom of hero */
.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #08080c 0%, rgba(8, 8, 12, 0.8) 40%, transparent 100%);
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    will-change: transform;
}

.hero-video {
    width: 100%;
    height: 110%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(8, 8, 12, 0.3) 0%,
            rgba(8, 8, 12, 0.5) 40%,
            rgba(8, 8, 12, 0.92) 100%),
        linear-gradient(135deg,
            rgba(212, 168, 83, 0.05) 0%,
            transparent 60%);
}

/* Subtle film grain overlay */
.hero-video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 var(--container-padding);
    max-width: 880px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.02);
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.08;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
}

.hero-line {
    display: block;
    font-size: clamp(2.8rem, 7.5vw, 6rem);
}

.hero-accent {
    color: var(--color-accent);
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 300;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: 0 auto 48px;
    line-height: 1.9;
    letter-spacing: 0.01em;
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero-values .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.6;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    z-index: 3;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.5); }
    50% { opacity: 0.8; transform: scaleY(1); }
}

/* ============================================
   LAYOUT WRAPPERS
   ============================================ */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.stacked-vision,
.stacked-services,
.stacked-founder {
    grid-template-columns: 1fr !important;
}

/* ============================================
   SECTION GRID LAYOUT
   ============================================ */
.section-grid {
    display: block;
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: none;
}

.label-number {
    display: none;
}

.label-text {
    display: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-align: center;
}

.section-desc {
    color: var(--color-text-secondary);
    font-size: 1rem;
    font-weight: 300;
    max-width: 720px;
    line-height: 1.9;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    border-bottom: 1px solid var(--color-border);
}

.about-text {
    margin-bottom: 56px;
}

.about-text p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-top: 48px;
    border-top: 1px solid var(--color-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 200;
    color: var(--color-accent);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 200;
    color: var(--color-accent);
}

.stat-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 12px;
}

/* ============================================
   VISION & MISSION
   ============================================ */
.vision {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

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

.vision-card {
    padding: 52px 44px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.vision-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    transform: translateY(-2px);
}

.vision-card:hover::before {
    opacity: 0.5;
}

.vision-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    margin-bottom: 28px;
    opacity: 0.7;
}

.vision-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.vision-card p {
    color: var(--color-text-secondary);
    font-weight: 300;
    line-height: 1.9;
    font-size: 0.95rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    border-bottom: 1px solid var(--color-border);
}

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

.service-card {
    padding: 44px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

/* Two-column side-by-side layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Compact styles for stacked services */
.stacked-services {
    margin-top: 24px;
    gap: 0;
    display: flex;
    flex-direction: column;
}

/* Inline 3-column services layout */
.inline-services {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    flex-direction: unset !important;
    gap: 32px !important;
}

/* Notable Collaborations inside Founder section */
.founder-collabs-inline {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.collabs-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.stacked-services .service-card {
    padding: 20px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
}

.stacked-services .service-card:last-child {
    border-bottom: none;
}

.inline-services .service-card {
    padding: 0;
    border-bottom: none;
}

.stacked-services .service-number {
    display: none;
}

.stacked-services .service-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.stacked-services .service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stacked-services .service-card p {
    display: none; /* Hide description to save space */
}

.stacked-services .service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 44px; /* Indent past the icon */
}

.stacked-services .service-list li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), transparent 80%);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.service-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    transform: translateY(-4px);
}

.service-card:hover::before {
    opacity: 0.6;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    margin-bottom: 28px;
    opacity: 0.5;
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin-bottom: 28px;
    opacity: 0.7;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 28px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-text-secondary);
}

.service-list li::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--color-accent);
    flex-shrink: 0;
    opacity: 0.5;
}

/* ============================================
   FOUNDER SECTION
   ============================================ */
.founder {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

.founder-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 72px;
    align-items: start;
}

.founder-image {
    position: relative;
}

.founder-photo-wrapper {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-tertiary);
    position: relative;
    border: 1px solid var(--color-border);
}

.founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.founder-photo-wrapper:hover .founder-photo {
    transform: scale(1.05);
}

.founder-image-accent {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 50%;
    height: 50%;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-lg);
    opacity: 0.12;
    z-index: -1;
}

.founder-name {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 300;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.founder-role {
    display: inline-block;
    padding: 6px 18px;
    background: var(--color-accent-subtle);
    border: 1px solid rgba(212, 168, 83, 0.12);
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--color-accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.founder-info p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 18px;
}

.founder-collabs {
    margin-top: 72px;
    padding-top: 48px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.founder-collabs h4 {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 36px;
}

.collab-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 48px;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.collab-logos img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    transition: all var(--transition-medium);
}

.collab-logos img:hover {
    opacity: 1;
    filter: none;
    transform: translateY(-2px) scale(1.05);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio {
    border-bottom: 1px solid var(--color-border);
}

.portfolio-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 72px;
}

.portfolio-slideshow-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
}

.portfolio-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    animation: slideZoom 6s ease-in-out forwards;
}

@keyframes slideZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.portfolio-stills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.portfolio-stills img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--color-border);
    transition: transform var(--transition-medium);
}

.portfolio-stills img:hover {
    transform: scale(1.02);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}

.testimonials-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
    max-width: 100%;
    margin: 40px auto 0;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.testimonial-large-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    margin-bottom: -40px; /* overlap down into bubble */
}

.testimonial-bubble {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 64px 32px 40px;
    border-radius: 24px;
    flex-grow: 1;
    z-index: 1;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-bubble p {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    font-family: var(--font-body);
}

.testimonial-bubble strong {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 800;
    text-transform: uppercase;
    margin-top: auto;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-desc {
    color: var(--color-text-secondary);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 44px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 44px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    flex-shrink: 0;
    background: var(--color-bg-card);
    opacity: 0.7;
}

.contact-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 3px;
}

.contact-item a,
.contact-item span:not(.contact-label) {
    font-weight: 300;
    font-size: 0.92rem;
}

.contact-item a {
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--color-accent);
}

.contact-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-link {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--transition-medium);
}

.social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-subtle);
    transform: translateY(-2px);
}

.social-handle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-secondary);
}

/* Contact Form */
.contact-form-wrapper {
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 7L1 3h8z' fill='%23555'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 72px 0 36px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 56px;
}

.footer-tagline {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-weight: 300;
    margin-top: 14px;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    letter-spacing: 0.02em;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--color-text-secondary);
}

.footer-confidential {
    font-style: italic;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Base animate state - elements start hidden */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1),
        transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for child elements */
[data-animate]:nth-child(2) { transition-delay: 0.1s; }
[data-animate]:nth-child(3) { transition-delay: 0.2s; }
[data-animate]:nth-child(4) { transition-delay: 0.3s; }
[data-animate]:nth-child(5) { transition-delay: 0.4s; }

/* Section transitions - subtle opacity shift */
.section {
    transition: opacity 0.6s ease;
}

/* Images and cards get a smooth scale on load */
.portfolio-stills img,
.service-card,
.testimonial-card,
.vision-card {
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Horizontal reveal line decoration for sections */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.2;
}

.section:hover::after {
    width: 60%;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 64px;
    }

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

    .section-label {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .label-number {
        font-size: 1.8rem;
    }

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

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

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .founder-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .founder-image {
        max-width: 380px;
    }

    .portfolio-showcase {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    /* --- NAVIGATION --- */
    .nav-toggle {
        display: block;
        z-index: 1002;
    }

    .nav-container {
        position: relative;
    }

    /* Hide the standalone Contact Us CTA on mobile */
    .nav-link.nav-cta {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        background: rgba(8, 8, 12, 0.97);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px 40px;
        gap: 4px;
        transition: right var(--transition-medium);
        border-left: 1px solid var(--color-border);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Show the mobile Contact Us link inside slide-out menu */
    .nav-cta-mobile {
        display: block;
        width: 100%;
    }

    .nav-link {
        font-size: 1rem;
        padding: 14px 0;
        width: 100%;
    }

    .nav-link.active::after {
        display: none;
    }

    /* --- HERO --- */
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        padding: 0 16px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .hero-values {
        gap: 8px;
        font-size: 0.55rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 12px;
    }

    /* --- SERVICES GRID: full width stacked cards --- */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        margin-top: 40px;
    }

    /* The inline 3-col layout also must become 1 column on mobile */
    .inline-services {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Override stacked-services to show proper cards on mobile */
    .stacked-services .service-card {
        padding: 28px 24px !important;
        background: var(--color-bg-card) !important;
        border: 1px solid var(--color-border) !important;
        border-radius: var(--radius-lg) !important;
        border-bottom: 1px solid var(--color-border) !important;
    }

    .stacked-services .service-card h3 {
        font-size: 1.05rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .stacked-services .service-list {
        margin-left: 0;
    }

    .service-card {
        padding: 28px 24px;
    }

    .service-card h3 {
        font-size: 1.05rem;
    }

    .service-card p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .service-list li {
        font-size: 0.82rem;
    }

    /* --- TESTIMONIALS: single column, properly sized --- */
    .testimonials-list {
        grid-template-columns: 1fr !important;
        gap: 40px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .testimonial-large-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: -35px;
    }

    .testimonial-bubble {
        padding: 52px 24px 32px;
        border-radius: 20px;
        text-align: center;
    }

    .testimonial-bubble p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    /* --- FOUNDER --- */
    .founder-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .founder-image {
        max-width: 100%;
    }

    .founder-photo-wrapper {
        max-height: 400px;
    }

    .founder-info h2 {
        font-size: 1.6rem !important;
    }

    /* Collab logos on mobile */
    .collab-logos {
        gap: 16px !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    .collab-logos img {
        max-height: 32px !important;
    }

    /* --- PORTFOLIO --- */
    .portfolio-stills {
        grid-template-columns: 1fr;
    }

    .portfolio-slideshow-container {
        aspect-ratio: 4 / 3;
    }

    /* --- VISION --- */
    .vision-grid {
        grid-template-columns: 1fr;
    }

    .vision-card {
        padding: 36px 28px;
    }

    /* --- ABOUT STATS --- */
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 1.8rem !important;
    }

    /* --- CONTACT --- */
    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .contact-info-group {
        gap: 24px;
    }

    /* --- FOOTER --- */
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 16px;
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* --- MISC --- */
    .section::after {
        display: none;
    }

    .section-title {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
    }

    .section-desc {
        font-size: 0.9rem !important;
    }

    /* Ensure container doesn't overflow */
    .container {
        padding: 0 20px;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stat-item + .stat-item {
        padding-top: 24px;
        border-top: 1px solid var(--color-border);
    }

    .hero-badge {
        font-size: 0.6rem !important;
        padding: 8px 16px !important;
    }

    .hero-title {
        font-size: clamp(1.6rem, 10vw, 2.5rem) !important;
    }

    .service-card {
        padding: 24px 20px;
    }

    .testimonials-list {
        max-width: 100%;
    }

    .collab-logos img {
        max-height: 26px !important;
    }

    .vision-card {
        padding: 28px 20px;
    }

    .portfolio-slideshow-container {
        aspect-ratio: 3 / 2;
    }
}
