/* ============================================
   BLACK LION CAPITAL - Scroll-Driven Landing
   ============================================ */

:root {
    --black: #000000;
    --black-soft: #0a0a0a;
    --gold: #c7a86d;
    --gold-light: #d4c08a;
    --gold-dark: #b09558;
    --white: #ffffff;
    --gray: #888888;
    --gray-light: #aaaaaa;
    --gray-dark: #333333;
    --font-display: 'Cinzel', serif;
    --font-ui: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: auto;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-ui);
    overflow-x: hidden;
}

::selection {
    background: var(--gold);
    color: var(--black);
}

/* ============================================
   LOADER
   ============================================ */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    margin-bottom: 40px;
}

.loader-bar-track {
    width: 200px;
    height: 2px;
    background: var(--gray-dark);
    margin: 0 auto 20px;
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.loader-text {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--gray);
    text-transform: uppercase;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
    position: fixed;
    top: 28px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lang-switcher.visible {
    opacity: 1;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--gray);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.lang-btn.active {
    color: var(--gold);
}

.lang-btn:hover {
    color: var(--white);
}

.lang-divider {
    color: var(--gray-dark);
    font-size: 0.7rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 900;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    font-weight: 600;
}

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

.nav-link {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--gold);
}

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

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 950;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
}

/* ============================================
   CANVAS
   ============================================ */
.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.canvas-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

#frame-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   SCROLL CONTENT (overlays)
   ============================================ */
.scroll-content {
    position: relative;
    z-index: 10;
}

.content-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    position: relative;
}

.section-inner {
    max-width: 900px;
    width: 100%;
    opacity: 0;
    transform: translateY(40px);
}

.section-inner.active {
    opacity: 1;
    transform: translateY(0);
}

/* Text alignment variants */
.text-left .section-inner,
.text-left {
    max-width: 550px;
    margin-right: auto;
    margin-left: 10%;
}

.text-right .section-inner,
.text-right {
    max-width: 550px;
    margin-left: auto;
    margin-right: 10%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    text-align: center;
}

.hero-section .section-inner {
    max-width: 100%;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--white);
    margin-bottom: 5px;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.5em;
    color: var(--gold);
    margin-bottom: 30px;
}

.hero-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 30px;
}

.hero-tagline {
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    letter-spacing: 0.2em;
    color: var(--gray-light);
    text-transform: uppercase;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 1.5px solid var(--gold);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: var(--gold);
    border-radius: 3px;
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTION TYPOGRAPHY
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(199, 168, 109, 0.3);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.3;
}

.section-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-light);
    margin-bottom: 20px;
    font-weight: 300;
}

.section-detail {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray);
    font-weight: 300;
    font-style: italic;
}

.section-detail.center {
    text-align: center;
}

/* ============================================
   CITIES GRID (Global Presence)
   ============================================ */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.city-card {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid rgba(199, 168, 109, 0.15);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.city-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.city-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.city-role {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   DIVISIONS GRID (Ecosystem)
   ============================================ */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.division-card {
    padding: 30px 24px;
    border: 1px solid rgba(199, 168, 109, 0.1);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.division-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.division-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.division-icon svg {
    width: 100%;
    height: 100%;
}

.division-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--white);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.division-desc {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.6;
    font-weight: 300;
}

/* ============================================
   LEADERSHIP
   ============================================ */
.leader-name {
    color: var(--white) !important;
}

.leader-role {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 25px;
}

.leader-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gold-light);
    line-height: 1.7;
    margin-top: 30px;
    padding-left: 20px;
    border-left: 2px solid var(--gold);
}

/* ============================================
   PHILOSOPHY
   ============================================ */
.principles-list {
    list-style: none;
    margin: 35px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.principle-item {
    font-size: 1.1rem;
    color: var(--gray-light);
    letter-spacing: 0.05em;
    padding-left: 30px;
    position: relative;
    font-weight: 300;
    line-height: 1.6;
}

.principle-item::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.philosophy-closing {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
    text-align: center;
    margin-top: 40px;
    letter-spacing: 0.05em;
    font-weight: 400;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    text-align: center;
    min-height: 100vh;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--white);
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    font-weight: 400;
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--gray-light);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 16px 50px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.cta-button:hover {
    background: var(--gold);
    color: var(--black);
}

.footer-bar {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(199, 168, 109, 0.15);
}

.footer-bar p {
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 0.1em;
}

/* Sections are transparent so canvas shows through */

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .nav-links {
        display: none;
    }

    .text-left .section-inner,
    .text-left {
        margin-left: 5%;
    }

    .text-right .section-inner,
    .text-right {
        margin-right: 5%;
    }
}

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

    .cities-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

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

    .text-left .section-inner,
    .text-left,
    .text-right .section-inner,
    .text-right {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .lang-switcher {
        top: 20px;
        right: 20px;
    }

    .hero-title {
        letter-spacing: 0.15em;
    }

    .hero-subtitle {
        letter-spacing: 0.3em;
    }
}

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