@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&family=Playfair+Display:ital,wght@1,400;1,700&display=swap');

:root {
    --bg-gradient: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.15));
    --text-dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: rgba(255, 255, 255, 0.85);
    --cream: #f5f1e8;
    --deep-purple-bg: #1a0b2e;
    /* A deep, rich purple */
    --purple-gradient: linear-gradient(135deg, #1a0b2e 0%, #3a0f5a 100%);
    /* Deep purple gradient */
    --gold: #D4AF37;
    --gold-bg: #F4B400;
    --font-main: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-script: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    font-family: var(--font-main);
    max-width: 100vw;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/hero1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    line-height: 1.5;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-y: auto;
    /* Removed native scroll-snap as it conflicts with GSAP Pinning */
    scroll-snap-type: none;
}

body.allow-scroll {
    /* This class might be used to enable/disable native scrolling,
       but for scroll-snap to work, overflow-y needs to be set on the main body. */
}

/* --- Luxury Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--deep-purple-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--gold), #8a6d1d);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

/* --- Navigation Header Blur (Luxury Glass) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    /* Tall enough to encompass the menu button area */
    z-index: 9000;
    pointer-events: none;
    background-color: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    will-change: backdrop-filter, background-color;
}

h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

button,
input,
select,
textarea {
    font-family: var(--font-main);
}

.nav-link-item {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.4s ease;
}

.header-logo {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 9999;
    pointer-events: auto;
}

.header-logo img {
    height: 65px;
    width: auto;
    opacity: 0.4;
    /* Watermark effect */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.header-logo:hover img {
    transform: scale(1.05);
    opacity: 0.8;
    /* Re-highlights slightly on hover */
}

.nav-link-item:hover {
    border-bottom-color: rgba(245, 241, 232, 0.8);
}

.menu-btn {
    position: fixed;
    top: 56px;
    /* Optimized for optical center alignment with the 65px logo */
    right: 40px;
    z-index: 9999;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    transform: translateZ(0) !important;
    /* Forces hardware acceleration and stays fixed */
    transition: background-color 0.3s ease;
}

.menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: transform 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6), background-color 0.3s ease;
}

/* Dark mode for the button lines when scrolling over light backgrounds */
.menu-btn.scrolled span {}

.menu-btn.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
    background-color: #FFFFFF !important;
}

.menu-btn.active span:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
    background-color: #FFFFFF !important;
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    /* Default for larger screens */
    /* Combined width to accommodate the 90px strip + 310px panel */
    height: 100vh;
    z-index: 9998;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
}

.side-menu.active {
    pointer-events: auto;
}

/* Layer 1: Back Layer – Gradient Panel */
.menu-layer-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    /* Takes full width of side-menu */
    height: 100vh;
    background: linear-gradient(180deg, #F28C38 0%, #F7C948 100%);
    border-radius: 25px 0 0 25px;
    z-index: 1;
}

/* Layer 2: Front Layer – White Menu Panel */
.menu-layer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 310px;
    /* Default for larger screens */
    /* Leaves 90px of gradient visible on the left */
    height: 100vh;
    background: #FFFFFF;
    border-radius: 25px 0 0 25px;
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

/* Sidebar Content & View Logic */
.menu-layer-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    height: 100%;
    opacity: 0;
}

.menu-main-container {
    margin-top: 60px;
}

.side-menu.active .menu-layer-content {}

.menu-close-text {
    text-align: right;
    font-size: 14px;
    color: #2F2F2F;
    cursor: pointer;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side-menu ul {
    list-style: none;
    text-align: left;
}

.side-menu ul li a {
    text-decoration: none;
    color: #2F2F2F;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: color 0.3s;
}

.side-menu ul li a:hover {
    color: #F28C38;
}

.side-menu ul li a {
    font-size: 20px;
    /* Adjusted for more menu items */
    padding: 12px 0;
}

.submenu {
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* --- New Landing Hero Section --- */
.landing-page-hero,
.page-header-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Clips the sliding images */
    background-color: transparent;
    background-image: none;
    /* Handled by slider layers in JS */
    scroll-snap-align: start;
    /* Snap to the top of this section */
    z-index: 10;
}

.landing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

.landing-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-light);
    padding: 0 24px;
    max-width: 1100px;
}

.landing-content h1,
.landing-content p {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.landing-cta {
    display: none !important;
}

.landing-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    color: var(--text-light);
}

.landing-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    color: var(--text-light);
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Luxury Founder Hero Section --- */
.founder-hero-modern {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    /* Deep dark overlay */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    overflow: hidden;
    z-index: 100;
}

.founder-portrait-container {
    position: relative;
    width: clamp(350px, 50vw, 600px);
    height: clamp(350px, 50vw, 600px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-main-image {
    width: clamp(250px, 30vw, 400px);
    height: clamp(250px, 30vw, 400px);
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(244, 180, 0, 0.2);
    /* Subtle Gold Glow */
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.curved-typography-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: visible;
}

.curved-typography-svg text {
    font-family: var(--font-main);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 22px;
    fill: #ffffff;
}

.founder-text-path-bg {
    fill: none;
    stroke: var(--gold-bg);
    stroke-width: 38px;
    /* Creates the "Boxed" look */
}

.founder-img-circle {
    aspect-ratio: 1 / 1 !important;
    width: clamp(180px, 35vw, 320px) !important;
    border-radius: 50% !important;
    border: 1px solid var(--gold);
    /* Border fits tightly around the image */
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    display: block;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.founder-circular-container {
    position: relative;
    width: clamp(300px, 50vw, 550px);
    height: clamp(300px, 50vw, 550px);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .founder-circular-container {
        width: 280px;
        height: 280px;
    }

    .founder-img-circle {
        width: 180px !important;
    }

    .circular-text-svg text {
        font-size: 26px;
        /* Slightly larger text on smaller path for clarity */
    }
}

.circular-text-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* Increased to sit above the image */
    animation: rotate-text 80s linear infinite;
    /* Slowed down from 40s */
}

.circular-text-svg text {
    fill: var(--cream);
    font-family: var(--font-main);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 18px;
    /* Slightly smaller as requested */
}

@keyframes rotate-text {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.founder-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* Maintains circle inside the padding */
}

.founder-section {
    padding: 120px 40px !important;
    display: flex;
    justify-content: center;
}

.founder-section .reveal-title {
    /* Overriding previous font styles for SVG compatibility */
    opacity: 1;
    transform: none;
}

/* --- Hero Spacer Section --- */
.hero-spacer {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    z-index: 10;
}

.has-submenu:hover .submenu {
    max-height: 200px;
}

.toggle-icon {
    font-size: 18px;
    color: #F28C38;
}

/* --- Photography Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    /* Changed to min-height to allow content to fit */
    /* Dynamic viewport height for better mobile support */
    width: 100%;
    background-color: transparent;
    display: flex;
    align-items: flex-start;
    /* Prevents top content from being pushed off-screen */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: filter 0.5s ease;
    will-change: transform;
}

.label-tiny {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5em;
    color: var(--cream);
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Standardizing the primary button for Tailwind compatibility */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hero-title-wrapper {
    position: relative;
}

.headline {
    font-size: clamp(50px, 10vw, 120px);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--cream);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    transform: none;
    transform-origin: left;
}

.script-text {
    font-family: var(--font-script);
    font-style: italic;
    font-size: clamp(40px, 6vw, 80px);
    color: rgba(245, 241, 232, 0.6);
    position: absolute;
    bottom: -30px;
    left: 15%;
    z-index: 6;
}

/* --- UI Decor Elements --- */
.corner-frame {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(245, 241, 232, 0.3);
    z-index: 10;
    pointer-events: none;
}

.top-left {
    top: 40px;
    left: 40px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 40px;
    right: 40px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 40px;
    left: 40px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 40px;
    right: 40px;
    border-left: none;
    border-top: none;
}

.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    opacity: 0.4;
}

.crosshair::before,
.crosshair::after {
    content: '';
    position: absolute;
    background: var(--cream);
}

.crosshair::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
}

.crosshair::after {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
}

.subtext {
    font-size: 18px;
    font-weight: 400;
    color: rgba(15, 23, 42, 0.7);
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* --- Global Animation System --- */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.section-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.car-text-reveal .line {
    display: inline-block;
    /* Changed to inline-block for better word containment */
    width: auto;
    min-width: 100%;
    opacity: 0;
    transform: translateY(40px);
    letter-spacing: 0.02em;
    text-wrap: balance;
    transition: opacity 1s ease, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), letter-spacing 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.section-reveal.active .car-text-reveal .line {
    opacity: 1;
    transform: translateX(0) translateY(0);
    letter-spacing: -0.02em;
}

.active .line:nth-child(1) {
    transition-delay: 0.2s;
}

.active .line:nth-child(2) {
    transition-delay: 0.4s;
}

.active .line:nth-child(3) {
    transition-delay: 0.6s;
}

.highlight-reveal {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    z-index: 1;
}

.highlight-reveal::after {
    content: '';
    position: absolute;
    left: -2%;
    top: 5%;
    width: 104%;
    height: 90%;
    background-color: var(--gold-bg);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.section-reveal.active .highlight-reveal::after {
    transform: scaleX(1);
    transition-delay: 0.8s;
    /* Follow after text moves in */
}

.highlight-border {
    position: relative;
    display: inline-block;
    padding: 0 15px;
    z-index: 1;
}

.highlight-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--gold-bg);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.section-reveal.active .highlight-border::after {
    transform: scaleX(1);
    transition-delay: 1.2s;
}

.side-label-reveal {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.section-reveal.active .side-label-reveal {
    opacity: 0.8;
    transform: translateX(0);
    transition-delay: 0.8s;
    /* Delayed to appear after the main title and highlights */
}

.center-label-reveal {
    opacity: 0.6;
    /* We remove the CSS transition to let GSAP handle the reveal */
    transition: none;
    will-change: contents;
}

.highlight-reveal-inline {
    background-color: var(--gold-bg);
    padding: 2px 6px;
}

/* Purple Theme Overrides */
.global-section.purple-theme,
.summit-section.purple-theme,
.footer.purple-theme {
    position: relative;
    --gold: #fbbf24;
    /* Warm Gold Accent */
    --gold-bg: #F4B400;
    /* Solid vibrant yellow for the 'car' highlight */
    /* Transparent Gold Highlight */
    background: transparent !important;
    color: #f8fafc;
    /* Brighter text for better background visibility */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Soft Lavender for main text */
}

.purple-theme .stat-number {
    color: white !important;
}

/* High-contrast buttons for Dark Theme */
.purple-theme .btn-primary:not(.btn-white) {
    background-color: #fbbf24 !important;
    color: #1a0b2e !important;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.2);
}

.purple-theme .btn-primary:not(.btn-white):hover {
    background-color: #fcd34d !important;
    transform: translateY(-3px);
}

/* Text Overrides for Aubergine Background */
.purple-theme .reveal-title {
    color: #ffffff !important;
}

.purple-theme .reveal-description {
    color: #f1f5f9 !important;
}

.purple-theme .program-title {
    color: white !important;
    border-left: 3px solid var(--gold);
    padding-left: 20px;
}

.purple-theme .side-label-reveal {
    color: #f3e8ff !important;
    border-color: var(--gold) !important;
}

.purple-theme .form-label {
    color: var(--gold) !important;
    opacity: 1;
}

.purple-theme .form-input {
    color: white !important;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.purple-theme .form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Reset browser autofill styles to keep inputs plain */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: inherit !important;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px transparent !important;
}

.purple-theme .form-input:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: white;
}

.purple-theme .summit-overlay {
    background: transparent;
    /* Make overlay transparent to show body background */
    /* Purple tint for the summit video/image */
}

/* --- Buttons --- */
.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.btn-primary {
    background-color: var(--text-dark);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-white {
    background-color: white;
    color: var(--text-dark);
    border: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Button Loading States */
.btn-primary.is-loading {
    pointer-events: none;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transition: border-color 0.4s ease;
}

.btn-loader.gold {
    border-top-color: var(--gold) !important;
}

/* --- The Giant Planet Reveal Circle --- */
.reveal-circle {
    position: absolute;
    top: 100vh;
    left: 50%;
    width: 120vw;
    /* Taller than it is wide to create the egg profile */
    height: 160vh;
    background: rgba(15, 23, 42, 0.3);
    /* Darker tinted overlay instead of white */
    /* Asymmetrical radius: sharper at the top (70%) than the bottom (30%) */
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    /* Initial -150px offset makes the 'egg tip' prominent in the hero */
    transform: translateX(-50%) translateY(calc(-150px + (var(--p, 0) * -100vh)));
    z-index: 20;
    box-shadow: 0 -30px 100px rgba(0, 0, 0, 0.2), inset 0 20px 40px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    will-change: transform;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hide the planet reveal overlay on mobile to keep scrolling stable */
@media (max-width: 1024px) {
    .reveal-circle {
        display: none !important;
    }
}

/* --- Summit Section with Image Background --- */
.summit-section {
    position: relative;
    min-height: 100vh;
    padding: 160px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
    /* Snap to the top of this section */
}

/* Override global reveal for summit to use scroll-linked movement */
.summit-section.section-reveal {
    /* Increased fallback to 200px to ensure it stays hidden lower down initially */
    transform: translateY(var(--summit-pull-y, 0px));
    /* Explicitly remove transform transition to allow smooth LERP updates from JS */
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.summit-section.section-reveal.active {
    opacity: 1;
    /* The transform remains driven by --summit-pull-y variable in JS */
}

.summit-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    z-index: 0;
    background-image: url('images/summit.jpg');
    /* Insert summit.jpg */
    background-size: cover;
    background-position: center;
    transform: translateY(var(--summit-parallax, 0));
    will-change: transform;
}

.summit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Darker overlay for professionalism and text readability */
    z-index: 1;
}

.summit-section .reveal-title,
.summit-section .reveal-description {
    color: white;
}

.summit-section .reveal-description {
    color: rgba(255, 255, 255, 0.9);
}

/* --- Second Section Revealed inside the Circle --- */
.global-section,
.footer,
.summit-section {
    padding: 160px 0;
    background: transparent !important;
    transition: background-color 1s ease-in-out;
    /* Smooth transition for background color */
    z-index: 10;
}

@media (max-width: 768px) {

    .global-section,
    .footer {
        padding: 80px 24px;
    }

    .summit-section {
        padding: 80px 24px;
    }

    .summit-section .reveal-title {
        font-size: clamp(38px, 9vw, 58px);
        line-height: 1.2;
    }

    .summit-section .modern-img-frame.portrait {
        max-width: 360px;
        margin-bottom: 10px;
    }

    .side-label-reveal {
        font-size: 9px !important;
        padding-left: 15px !important;
    }

    .landing-page-hero {
        min-height: 100dvh !important;
        /* Fills the screen perfectly on modern mobile browsers */
    }

    .header-logo {
        top: 20px;
        left: 20px;
    }

    .header-logo img {
        height: 48px;
    }

    .hero-slide-layer {
        background-position: center center !important;
    }
}

.second-section {
    position: absolute;
    z-index: 5;
    top: calc(160vh - 100vh);
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    /* Better alignment for the top of the egg shape */
    justify-content: center;
    padding: 100px 80px 0 80px;
    /* opacity handled by section-reveal */
    overflow: hidden;
}

.reveal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    align-items: center;
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
    /* Sits above summit overlay */
}

/* Ultra-modern 3-column editorial grid */

.reveal-grid-editorial {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Center column matches image width + breathing room */
    gap: 40px 100px;
    /* Large horizontal gap for luxury spacing */
    align-items: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.pulse-intro-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 11px;
    font-weight: 800;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 50px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 35px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    animation: gold-pulse-luxury 2s infinite;
}

.pulse-intro-btn:hover {
    background: var(--gold);
    color: var(--text-dark);
    transform: translateY(-2px);
}

@keyframes gold-pulse-luxury {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.essence-section {
    padding: 180px 0 !important;
    background: transparent !important;
}

.essence-title {
    font-size: 24px;
    color: white;
    margin-bottom: 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}

.essence-title .highlight-reveal {
    padding: 4px 12px;
    display: inline-block;
}

.essence-text {
    font-size: 16px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.play-btn-luxury {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.play-btn-luxury:hover {
    transform: scale(1.1);
    background: var(--gold);
    border-color: var(--gold);
}

.founder-side-col {
    display: flex;
    flex-direction: column;
    gap: 140px;
    /* Large vertical gap to separate the "top" and "down" blocks */
}

.founder-text-block p {
    font-size: clamp(15px, 1vw, 18px);
    line-height: 2;
    color: var(--text-muted);
    font-weight: 200;
    /* Ultra-light weight for expensive look */
    letter-spacing: 0.04em;
    max-width: 400px;
}

.founder-text-block .luxury-highlight {
    color: var(--gold);
    font-weight: 700;
}

.founder-text-block .luxury-quote {
    font-family: var(--font-script);
    font-style: italic;
    font-size: clamp(20px, 1.4vw, 24px) !important;
    color: var(--gold) !important;
    line-height: 1.5 !important;
}

.founder-text-block::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: linear-gradient(to right, var(--gold), transparent);
    margin-bottom: 20px;
    opacity: 0.6;
}

.col-right .founder-text-block {
    text-align: right;
}

.col-right .founder-text-block::before {
    margin-left: auto;
}

@media (max-width: 1024px) {
    .reveal-grid-editorial {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .founder-side-col {
        gap: 40px;
    }

    .col-right .founder-text-block {
        text-align: center;
    }

    .col-right .founder-text-block::before {
        margin-left: auto;
        margin-right: auto;
    }

    .middle-content-zoom {
        order: -1;
    }

    /* Image first on mobile */
}

/* Set transform origin to center for the cinematic zoom effect */
.middle-content-zoom {
    transform-origin: center center;
    will-change: transform, opacity, filter, contents;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    /* Ensure high quality rendering during large scales */
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
}

.founder-section.global-section {
    background: transparent !important;
    color: var(--text-light) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Ensure text is light on this background */
    padding: 120px 40px;
    /* Consistent padding */
}

.founder-circular-container {
    position: relative;
    width: clamp(350px, 50vw, 550px);
    /* Adjusted size to accommodate text */
    height: clamp(350px, 50vw, 550px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    /* Center the container */
}

.founder-img-circle {
    width: clamp(250px, 35vw, 400px) !important;
    /* Adjusted image size */
    border: 3px solid var(--gold);
    /* Thicker gold border */
    box-shadow: 0 0 25px rgba(244, 180, 0, 0.6), 0 0 50px rgba(244, 180, 0, 0.3);
    /* Enhanced gold glow */
}

/* Styles for the image slideshow within the founder circle */
.founder-img-circle {
    position: relative;
    /* Ensure children are positioned relative to this */
    overflow: hidden;
    /* Hide parts of images outside the circle */
}

.founder-slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* Maintain circular shape */
    opacity: 0;
    /* Hidden by default, JS will manage active state */
}

.founder-slideshow-image.active {
    opacity: 1;
    /* First image visible by default */
}

.founder-identity {
    margin-top: 45px;
    z-index: 10;
}

.founder-name {
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.founder-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .founder-logo-badge {
        width: 95px;
        top: -35px;
    }
}

.founder-logo-badge {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    z-index: 20;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.circular-text-svg text {
    letter-spacing: 0.08em;
    /* Slightly more spacing for premium feel */
}

.founder-profile-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.relocated-bio-container {
    position: relative;
    padding: 80px 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
}

.relocated-bio-container::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 40px;
    font-family: var(--font-script);
    font-size: 120px;
    color: var(--gold);
    opacity: 0.1;
    line-height: 1;
}

.founder-bio-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    /* Elegant white typography */
    margin-bottom: 15px;
    font-weight: 400;
    /* Regular weight for readability */
}

.founder-bio-text:last-child {
    margin-bottom: 0;
}

.founder-text-block {
    padding: 20px;
    /* Add some padding */
    background: rgba(255, 255, 255, 0.05);
    /* Subtle background for the text blocks */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for editorial grid */
@media (max-width: 1024px) {

    .col-left .founder-text-block,
    .col-right .founder-text-block {
        text-align: center;
    }

    .col-left .founder-text-block::before,
    .col-right .founder-text-block::before {
        margin-left: auto;
        margin-right: auto;
    }

    .founder-profile-title {
        text-align: center;
    }
}

/* Perspective Container for Why Gailic */
.perspective-container {
    perspective: 1500px;
    width: 100%;
    position: relative;
}

.person-frame {
    position: absolute;
    width: clamp(180px, 20vw, 240px);
    height: clamp(300px, 35vw, 420px);
    overflow: hidden;
    border-radius: 20px;
    background: #f1f5f9;
    transition: filter 0.5s ease;
    will-change: transform, opacity, filter;
}

.person-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-left {
    left: 5%;
    z-index: 10;
    transform: scale(0.85);
}

.person-center {
    left: 50%;
    transform: translateX(-50%) scale(1.05);
    z-index: 20;
}

.person-right {
    right: 5%;
    z-index: 10;
    transform: scale(0.85);
}

.why-header,
.main-paragraph {
    will-change: transform, opacity, filter;
}

@media (max-width: 767px) {
    .why-header {
        font-size: clamp(40px, 8vw, 60px);
    }

    .main-paragraph {
        font-size: 16px;
    }
}

.reveal-left,
.reveal-right {
    will-change: transform, opacity, filter;
}

/* Align image with What We Do section (1.2fr) and shift text right (1fr) */
.reveal-grid-reversed {
    grid-template-columns: 1.2fr 1fr;
}

.modern-img-frame {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.8s ease;
}

.modern-img-frame:hover {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.modern-img-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

/* Ensures the image has a vertical/portrait aspect ratio to match the "What We Do" section */
.modern-img-frame.portrait {
    aspect-ratio: 4 / 5;
    width: 100%;
    overflow: hidden;
}

/* Optimization for Cinematic Image Reveals */
.modern-img-frame img,
.gallery-item img {
    will-change: filter, opacity, transform;
}

.stats-grid .stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
}

.stats-grid .stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--gold);
    transform: translateY(-10px);
}

.reveal-title {
    font-size: clamp(60px, 9vw, 110px);
    font-weight: 800;
    line-height: 1.1;
    /* Increased to prevent clipping of tall characters */
    text-align: left;
    color: var(--text-dark);
}

/* Alternate Direction: Reveal from Right */
.reveal-from-right .line {
    transform: translateX(30px) translateY(10px);
}

.program-item {
    margin-bottom: 0;
    position: relative;
    padding-bottom: 40px;
    opacity: 0;
    /* Initially hidden for staggered reveal */
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

.program-item:last-child {
    border-bottom: none;
}

/* Staggered items should be hidden initially so JS can reveal them in steps */
.staggered-item {
    opacity: 0;
    will-change: transform, opacity;
}

/* --- Contact Section Styles --- */
#contact.purple-theme {
    background: transparent;
    padding-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.program-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

/* --- Stats Grid for Impact Page --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.stat-number {
    font-size: 64px;
    font-weight: 800;
    color: var(--text-dark);
    display: block;
    line-height: 1;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.stat-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: #F4B400;
    margin-top: 4px;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64748b;
    margin-top: 10px;
    display: block;
}

/* --- Gallery System --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* --- Form Styles --- */
.registration-form {
    width: 100%;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    /* Hide the steps as they slide out to the left/right */
    min-height: 200px;
    /* Ensure a base height */
}

.form-group {
    margin-bottom: 35px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    font-size: 18px;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
    outline: none;
    background: transparent;
    color: var(--text-dark);
}

textarea.form-input {
    resize: vertical;
    /* Allow vertical resizing */
    min-height: 120px;
    /* Minimum height for textarea */
}

/* --- Multi-Step Form UI --- */
.form-step {
    display: none;
    width: 100%;
}

.form-step.active {
    display: block;
    position: relative;
}

.form-navigation {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.step-indicator {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.step-dot {
    height: 4px;
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: background 0.4s ease;
}

.step-dot.active {
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

/* Adjusting secondary button for dark backgrounds */
.purple-theme .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

select.form-input {
    cursor: pointer;
}

.form-input:focus {
    border-bottom-color: #F4B400;
}

.form-input::placeholder {
    color: #cbd5e1;
}

.char-counter {
    font-size: 10px;
    text-align: right;
    margin-top: 8px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.char-counter.valid {
    color: #F4B400;
}

/* Visual feedback for invalid fields when "Next" is clicked */
.form-input.invalid-field {
    border-bottom-color: #ef4444 !important;
    animation: fieldShake 0.4s ease-in-out;
}

@keyframes fieldShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Error state: Only shows if the user has entered something invalid */
.form-input:invalid:not(:placeholder-shown) {
    border-bottom-color: #ef4444;
}

/* --- Success Message --- */
.success-message {
    display: none;
    text-align: left;
    padding: 40px 0;
}

.success-message.active {
    display: block;
}

.success-message .line {
    will-change: transform, opacity, filter, letter-spacing;
}

.reveal-description {
    font-size: 20px;
    line-height: 1.6;
    color: #475569;
    text-wrap: pretty;
    margin-bottom: 0;
    /* Removed margin since button is gone */
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    .car-text-reveal .line {
        transform: translateY(20px);
        min-width: 0;
        display: block;
    }

    .reveal-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        justify-items: center;
    }

    .reveal-title,
    .reveal-right {
        text-align: center;
    }

    .second-section {
        padding: 40px 20px;
        height: auto;
        min-height: 100vh;
    }

    .menu-btn {
        top: 25px;
        right: 25px;
    }

    .side-menu {
        width: 85%;
        /* Menu covers more width on mobile */
    }

    .menu-layer-panel {
        width: calc(100% - 80px);
    }
}


@media (max-width: 767px) {
    .side-menu {
        width: 100vw;
        /* Full width on very small screens */
    }

    .menu-layer-panel {
        width: calc(100vw - 60px);
        /* Leave a small strip of background visible */
    }
}

/* --- Video Play Overlay --- */
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 20;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.5s;
}

.video-play-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-btn-luxury {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes playPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.play-btn-luxury {
    animation: playPulse 2s infinite;
}

.play-btn-luxury:hover {
    transform: scale(1.1);
    background: var(--gold);
    border-color: var(--gold);
}

/* --- Partner Accordion --- */
.partner-acc-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    will-change: max-height, opacity;
}

.staggered-container {
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.partner-acc-item.active span {
    color: var(--gold);
    opacity: 1;
    transition: color 0.4s ease, opacity 0.4s ease;
}

/* --- Utility: Hide Scrollbars --- */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Social Media Links --- */
.social-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.social-icon {
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
}

.social-icon:hover {
    color: #fbbf24 !important;
    transform: translateY(-5px);
}

/* --- Swipe Indicator Animation --- */
.swipe-indicator {
    position: absolute;
    display: none !important;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 40;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.swipe-hand-anim {
    animation: swipeHint 2.5s infinite ease-in-out;
}

@keyframes swipeHint {
    0% {
        transform: translateX(40px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        transform: translateX(-40px);
        opacity: 1;
    }

    100% {
        transform: translateX(-40px);
        opacity: 0;
    }
}

/* --- Community Mobile Gallery Navigation --- */
.community-mobile-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 30px 0;
}

.nav-arrow {
    position: absolute;
    top: 380px;
    /* Centered relative to the video cards */
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

@media (max-width: 768px) {
    .nav-arrow {
        top: 240px;
        /* Adjusted for mobile scale if toggled back on */
    }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }
}

.nav-arrow:active {
    background: var(--gold);
    color: var(--text-dark);
    transform: scale(0.9);
}

.dot-indicators .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.dot-indicators .dot.active {
    background: var(--gold);
    transform: scale(1.5);
    box-shadow: 0 0 15px var(--gold-bg);
}

/* --- Global Video Modal Player --- */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.video-modal-overlay.active {
    display: flex;
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 450px;
    /* Portrait default for mobile */
    height: auto;
    max-height: 90vh;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 769px) {
    .video-modal-container {
        max-width: 1000px;
        aspect-ratio: 16 / 9;
    }
}

.video-modal-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: var(--gold);
    color: var(--text-dark);
}

/* --- Mid-page Obaatsen Hero --- */
.obaatsen-hero {
    position: relative;
    width: 100%;
    height: 100dvh;
    background-color: transparent;
    /* Seamless blend with brand flyers */
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    /* Removes gaps for a seamless PDF-like flow */
    overflow: hidden;
    scroll-snap-align: start;
    /* Snap to the top of this section */
    padding: 0 !important;
}

.obaatsen-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.1) 40%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 5;
    pointer-events: none;
}

.obaatsen-logo {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    /* Fills the screen like the index hero */
    opacity: 0;
    transform: scale(1.1);
    /* Subtle zoom-in start */
    filter: brightness(0.8) contrast(1.1);
    transition: transform 2s cubic-bezier(0.23, 1, 0.32, 1), opacity 1.5s ease-out;
    z-index: 1;
}

.section-reveal.active .obaatsen-logo {
    opacity: 1;
    transform: scale(1);
}


/* --- Team Page: Strategic Influence & Advisory Cards --- */
.advisory-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.advisory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--gold);
    transition: height 0.6s ease;
}

.advisory-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.advisory-card:hover::before {
    height: 100%;
}

.advisory-label {
    display: block;
    color: var(--gold);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.advisory-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: 300;
}

/* --- Team Page: Leadership Values Carousel --- */
.values-track {
    display: flex;
    gap: 0;
    padding: 0;
    overflow: visible;
    width: max-content;
    will-change: transform;
}

.values-carousel-section {
    position: relative;
    padding: 160px 0 !important;
    min-height: auto;
}

/* --- Team Page: Leadership Values Carousel --- */
/* (Removed old carousel specific overrides since we now use .advisory-card) */

.value-card:hover {
    border-color: var(--gold);
    transform: scale(1.02);
}

.value-number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--font-script);
    font-size: 5rem;
    font-style: italic;
    color: var(--gold);
    opacity: 0.08;
    line-height: 1;
    pointer-events: none;
}

.value-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.value-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 300;
}

/* --- Team Page: Architectural Split Canvas --- */
.luxury-split-canvas {
    background: transparent !important;
}

.glass-philosophy {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.canvas-image-composition {
    position: relative;
    padding-bottom: 40px;
    /* Space for the floating card offset */
}

.canvas-main-frame {
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.canvas-image-composition:hover .canvas-main-frame {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.canvas-image-composition:hover .glass-philosophy {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Community Page: Philosophy Section Redesign --- */
.community-philosophy-section {
    padding: 160px 0 !important;
    background: transparent !important;
}

.community-image-composition {
    position: relative;
    padding-bottom: 40px;
    /* Space for the bottom floating card offset */
    padding-top: 40px;
    /* Space for the top floating card offset */
}

.community-main-frame {
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.community-image-composition:hover .community-main-frame {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.community-image-composition:hover .glass-philosophy {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

/* Ensure the main title in this section uses the mask for the highlight */
.community-philosophy-section h2 .obaasima-mask {
    .community-philosophy-section h2 .obaatsen-mask {
        background-image: linear-gradient(to right, var(--gold), #fcd34d);
    }

    /* --- Mobile Optimizations for Philosophy Section --- */
    @media (max-width: 1024px) {
        .community-image-composition {
            display: flex !important;
            flex-direction: column !important;
            gap: 1.5rem !important;
            padding: 0 !important;
        }

        .community-main-frame {
            order: 1 !important;
            aspect-ratio: 3 / 4 !important;
            /* Reverts to the original portrait frame */
            height: auto !important;
            width: 100% !important;
            max-width: 420px !important;
            /* Prevents the image from becoming too tall on mobile */
            margin: 0 auto !important;
            /* Centers the frame */
        }

        .community-main-frame img {
            filter: brightness(1) grayscale(0) !important;
            /* Full clarity and color for mobile */
        }

        .glass-philosophy {
            position: static !important;
            width: 100% !important;
            max-width: 100% !important;
            transform: none !important;
        }

        .philosophy-card-accountability {
            order: 2 !important;
            /* Authentic Accountability shows under the image */
        }

        .philosophy-card-foundation {
            order: 3 !important;
            /* The Foundation shows at the bottom */
        }
    }