/* --- CSS VARIABLES (THEME) --- */
:root {
    --primary-color: #0056b3; /* A strong, cinematic blue */
    --primary-hover: #004494;
    
    /* Light Mode Defaults */
    --bg-color: #f4f7f9;
    --bg-alt-color: #ffffff;
    --text-color: #222222;
    --header-bg: rgba(244, 247, 249, 0.8);
    --footer-border: #e0e0e0;
    --toggle-bg: #d1d9e1;
}

body.dark-mode {
    /* Dark Mode Overrides */
    --bg-color: #121212;
    --bg-alt-color: #1a1a1a;
    --text-color: #e0e0e0;
    --header-bg: rgba(18, 18, 18, 0.8);
    --footer-border: #333333;
    --toggle-bg: #444;
}


/* --- GENERAL & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}


/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--footer-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}


/* --- THEME TOGGLE SWITCH --- */
.theme-toggle {
    --toggle-width: 50px;
    --toggle-height: 26px;
    --thumb-size: 20px;
    position: relative;
    cursor: pointer;
    width: var(--toggle-width);
    height: var(--toggle-height);
    background-color: var(--toggle-bg);
    border-radius: 50px;
    border: none;
    padding: 3px;
    transition: background-color 0.3s ease;
}

.toggle-thumb {
    width: var(--thumb-size);
    height: var(--thumb-size);
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.toggle-thumb .fas {
    font-size: 14px;
    position: absolute;
    transition: opacity 0.2s ease;
}

.toggle-thumb .fa-sun {
    color: #f39c12; /* Sun yellow */
    opacity: 1;
}
.toggle-thumb .fa-moon {
    color: #4c5a69; /* Moon gray */
    opacity: 0;
}

/* Dark mode state for toggle */
body.dark-mode .toggle-thumb {
    transform: translateX(calc(var(--toggle-width) - var(--thumb-size) - 6px));
}
body.dark-mode .toggle-thumb .fa-sun {
    opacity: 0;
}
body.dark-mode .toggle-thumb .fa-moon {
    opacity: 1;
}


/* --- MAIN CONTENT & SECTIONS --- */
main {
    padding-top: 71px; /* Offset for fixed header */
}

section {
    padding: 80px 0;
    text-align: center;
}

/* --- HERO SECTION --- */
#hero {
    min-height: calc(100vh - 71px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative; /* Required for the overlay */
    
    /* --- SWAP YOUR IMAGE HERE --- */
    background-image: url('../images/lance.png');
    background-size: cover; /* Makes the image fill the container */
    background-position: right; /* Centers the image */
    background-repeat: no-repeat;
}

/* This adds a dark overlay so text is readable */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.5); /* Semi-transparent black. Adjust 0.5 to make it darker or lighter */
    z-index: 1;
}

/* This makes sure the text appears above the overlay */
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    color: var(--primary-color);
}

.hero-content .subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* --- GENERIC CONTENT SECTION STYLES --- */
.content-section {
    background-color: var(--bg-color);
}
.content-section.alt-bg {
    background-color: var(--bg-alt-color);
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.coming-soon-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- FOOTER --- */
footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--footer-border);
    transition: border-color 0.3s ease;
    font-size: 0.9rem;
    background-color: var(--bg-alt-color);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .logo-link {
        flex-basis: 100%;
        text-align: center;
    }

    nav {
        order: 3; /* Push nav below logo and toggle */
        flex-basis: 100%;
        display: flex;
        justify-content: center;
    }

    .theme-toggle {
        position: absolute;
        top: 18px;
        right: 20px;
    }

    main {
        padding-top: 120px; /* Increased offset for wrapped header */
    }

    #hero {
        min-height: calc(100vh - 120px);
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
}