/* ==========================================================================
   Design System & Base Variables
   ========================================================================== */
:root {
    --color-bg: #0b0f19;
    --color-bg-alt: #111827;
    --color-text-primary: #f9fafb;
    --color-text-secondary: #9ca3af;
    --color-accent: #3b82f6;
    --color-accent-hover: #60a5fa;
    --nav-bg: rgba(11, 15, 25, 0.4);
    --nav-bg-scrolled: rgba(11, 15, 25, 0.85);
    --nav-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --header-height: 80px;
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: var(--nav-bg-scrolled);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--color-text-primary);
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition-smooth);
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-logo:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Hamburger Menu Button */
.menu-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-smooth);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Morph Hamburger to X when active */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Navigation Drawer & Backdrop
   ========================================================================== */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 85vw);
    height: 100%;
    height: 100dvh;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--nav-border);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.75rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.nav-drawer.active {
    transform: translateX(0);
    visibility: visible;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--nav-border);
}

.drawer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
}

.drawer-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-grow: 1;
}

.drawer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: block;
    transition: var(--transition-smooth);
}

.drawer-link:hover,
.drawer-link.active {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(6px);
}

.drawer-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--nav-border);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-height);
}

.hero-section {
    width: 100%;
    padding: 1.5rem 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-height: calc(100vh - var(--header-height) - 110px);
    max-height: calc(100dvh - var(--header-height) - 110px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0f19;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: calc(100vh - var(--header-height) - 110px);
    max-height: calc(100dvh - var(--header-height) - 110px);
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-container:hover .hero-image {
    transform: scale(1.015);
}

/* Subtle Vignette Overlay for Depth */
.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 60%, rgba(0, 0, 0, 0.25) 100%);
}

/* ==========================================================================
   Footer
   ========================================================================= */
.footer {
    width: 100%;
    padding: 1.75rem 1.5rem;
    background: transparent;
    border-top: 1px solid var(--nav-border);
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.copyright {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    font-weight: 400;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================= */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .nav-container {
        padding: 0 1.25rem;
    }

    .brand-logo {
        font-size: 1.45rem;
    }

    .hero-section {
        padding: 1rem 1rem 1.5rem;
    }

    .hero-image-container {
        border-radius: 14px;
        min-height: 180px;
        max-height: calc(100vh - var(--header-height) - 70px);
        max-height: calc(100dvh - var(--header-height) - 70px);
    }

    .hero-image {
        width: 100%;
        height: auto;
        max-height: calc(100vh - var(--header-height) - 70px);
        max-height: calc(100dvh - var(--header-height) - 70px);
    }

    .footer {
        padding: 1.25rem 1rem;
    }

    .copyright {
        font-size: 0.85rem;
    }
}
