/* ============================================
   Violet Crown Interactive — Site Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-cream: #FFF1DB;
    --color-dark-bg: #1A1A2E;
    --color-darker-bg: #0D0D1A;
    --color-orange: #F87A33;
    --color-red: #D83C31;
    --color-overlay: rgba(0, 0, 0, 0.5);
    --color-overlay-about: rgba(0, 0, 0, 0.6);
    --color-body-text: #e0d5c5;
    --color-footer-bg: #1a0a1e;
    --font-headline: 'Chakra Petch', sans-serif;
    --font-body: 'Figtree', sans-serif;
}

/* --- 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);
    font-weight: 400;
    background-color: var(--color-darker-bg);
    color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--color-orange);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Video Background --- */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
    z-index: 1;
}

/* About page uses stronger overlay */
.page-about .video-background::after {
    background: var(--color-overlay-about);
}

/* Video fallback background image */
.video-background .fallback-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/vci-bg-3.jpg') center center / cover no-repeat;
    z-index: -1;
}

/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    width: 60px;
    height: 60px;
    transition: opacity 0.3s ease;
}

.header-logo img:hover {
    opacity: 0.8;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    font-family: var(--font-headline);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-cream);
}

.header-nav .nav-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--color-cream);
    border-radius: 50%;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.header-nav .nav-linkedin:hover {
    border-color: var(--color-orange);
    background-color: rgba(248, 122, 51, 0.15);
}

.header-nav .nav-linkedin svg {
    width: 16px;
    height: 16px;
    fill: var(--color-cream);
    transition: fill 0.3s ease;
}

.header-nav .nav-linkedin:hover svg {
    fill: var(--color-orange);
}

/* --- Page Wrapper (ensures footer stays at bottom) --- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* About page wrapper scrolls naturally */
.about-wrapper {
    min-height: auto;
}

/* --- Homepage Hero --- */
.hero-section {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px 40px;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1500px;
    width: 100%;
    gap: 0;
}

.hero-lottie {
    flex: 0 0 55%;
    max-width: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-lottie .lottie-container {
    width: 100%;
    max-width: 650px;
}

.hero-lottie .lottie-container svg {
    width: 100% !important;
    height: auto !important;
    max-height: 80vh;
}

.hero-content {
    flex: 0 0 45%;
    max-width: 45%;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-headline);
    font-weight: 700;
    font-style: normal;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--color-cream);
    margin-bottom: 20px;
}

.hero-content .years {
    font-family: var(--font-headline);
    font-weight: 500;
    font-style: italic;
    font-size: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-cream);
    margin-bottom: 28px;
    display: block;
}

.hero-content .body-text {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-body-text);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .signature {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    color: var(--color-body-text);
}

/* --- Gradient Stripe --- */
.gradient-stripe {
    width: 100%;
    height: 6px;
    background: linear-gradient(
        to right,
        #6B2FA0,
        #4A3BAE,
        #3066BE,
        #2E9E6B,
        #A8C256,
        #F4D03F,
        #F39C12,
        #E74C3C,
        #C0392B
    );
    position: relative;
    z-index: 10;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-footer-bg);
    padding: 20px 40px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.site-footer p {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: #b0a898;
    letter-spacing: 0.5px;
}

/* ============================================
   About Page Styles
   ============================================ */

/* --- About Hero Section --- */
.about-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 40px 60px;
    overflow: hidden;
}

/* About page uses inline video in hero only */
.about-hero .hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.about-hero .hero-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.about-hero .hero-video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay-about);
    z-index: 1;
}

.about-hero h1,
.about-hero .subtitle {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-family: var(--font-headline);
    font-weight: 700;
    font-style: normal;
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--color-cream);
    max-width: 900px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.about-hero .subtitle {
    font-family: var(--font-headline);
    font-weight: 500;
    font-style: normal;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-orange);
    max-width: 800px;
    line-height: 1.3;
}

/* --- Founders Portrait --- */
.founders-portrait {
    width: 100%;
    position: relative;
    z-index: 5;
}

.founders-portrait img {
    width: 100%;
    display: block;
}

/* --- About Body --- */
.about-body {
    background-color: var(--color-darker-bg);
    padding: 60px 40px 40px;
    position: relative;
    z-index: 5;
}

.about-body-inner {
    max-width: 900px;
    margin: 0 auto;
}

.about-body p {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-body-text);
    margin-bottom: 20px;
}

/* --- Founders Grid --- */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.founder-card {
    text-align: center;
}

.founder-card .headshot {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid var(--color-orange);
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
}

.founder-card h3 {
    font-family: var(--font-headline);
    font-weight: 700;
    font-style: normal;
    font-size: 26px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 16px;
}

.founder-card .bio {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-body-text);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
        padding-top: 40px;
    }

    .hero-lottie {
        flex: none;
        max-width: 80%;
    }

    .hero-content {
        flex: none;
        max-width: 90%;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content .years {
        font-size: 18px;
    }

    .site-header {
        padding: 16px 24px;
    }

    .header-logo img {
        width: 48px;
        height: 48px;
    }

    .header-nav {
        gap: 24px;
    }

    .about-hero h1 {
        font-size: 48px;
    }

    .about-hero .subtitle {
        font-size: 18px;
    }

    .founders-grid {
        gap: 30px;
    }

    .founder-card .headshot {
        width: 180px;
        height: 180px;
    }

    .founder-card h3 {
        font-size: 22px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 20px 30px;
    }

    .hero-lottie {
        max-width: 95%;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content .years {
        font-size: 16px;
    }

    .hero-content .body-text {
        font-size: 16px;
    }

    .site-header {
        padding: 12px 16px;
    }

    .header-logo img {
        width: 40px;
        height: 40px;
    }

    .header-nav {
        gap: 16px;
    }

    .header-nav a {
        font-size: 13px;
    }

    .about-hero {
        padding: 120px 20px 40px;
    }

    .about-hero h1 {
        font-size: 32px;
    }

    .about-hero .subtitle {
        font-size: 16px;
    }

    .about-body {
        padding: 40px 20px 30px;
    }

    .about-body p {
        font-size: 16px;
    }

    .founders-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 40px;
    }

    .founder-card .headshot {
        width: 200px;
        height: 200px;
    }

    .founder-card h3 {
        font-size: 22px;
    }

    .founder-card .bio {
        font-size: 14px;
        max-width: 400px;
        margin: 0 auto;
    }

    .site-footer {
        padding: 16px 20px;
    }

    .gradient-stripe {
        height: 4px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content .body-text {
        font-size: 15px;
    }

    .about-hero h1 {
        font-size: 24px;
    }

    .about-hero .subtitle {
        font-size: 14px;
    }
}

/* --- Lottie fade-in animation --- */
.lottie-container {
    opacity: 0;
    animation: lottieFadeIn 1s ease-out 0.6s forwards;
}

@keyframes lottieFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
