@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette - Jewel Tones & Dark Mode Default */
    --bg-dark: #0a0b0d;
    --bg-darker: #050506;
    --bg-card: rgba(20, 22, 26, 0.6);
    --text-main: #f0f2f5;
    --text-muted: #a0a5b0;
    --accent-gold: #cfaa6b;
    --accent-gold-hover: #e0be7d;
    --accent-glow: rgba(207, 170, 107, 0.15);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Cinzel', serif;
    
    /* Animations & Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Glassmorphism */
    --glass-bg: rgba(15, 17, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

h1 {
    font-size: clamp(3rem, 5vw, 6rem);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 4rem);
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

.min-h-screen {
    min-height: 100vh;
}

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

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Grid Layouts - Bento Grid & Columns */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-slow);
    overflow: hidden;
    position: relative;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: rgba(207, 170, 107, 0.3);
}

.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

@media (max-width: 991px) {
    .col-span-4, .col-span-6, .col-span-8 {
        grid-column: span 12;
    }
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 991px) {
    .two-column {
        grid-template-columns: 1fr;
    }
}

/* Glassmorphism Elements */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* Navigation - Floating Transparent */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 11, 13, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-fast);
}

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

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-fast);
}

@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-slow);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-gold);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    color: var(--bg-dark);
}

.btn-solid {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
}

.btn-solid:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(207, 170, 107, 0.2);
}

/* Header / Hero Sections */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

/* Image Handling (Single provided image per page rule) */
.image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.image-container img, .content-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* display in full without cropping */
    border-radius: 20px;
    background: var(--bg-card); /* Add background in case image is completely different aspect ratio */
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* Gate Page Styles */
.gate-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.gate-wrapper::before {
    content: '';
    position: absolute;
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
    animation: drift 20s infinite linear;
}

@keyframes drift {
    0% { transform: translate(-5%, -5%); }
    50% { transform: translate(5%, 5%); }
    100% { transform: translate(-5%, -5%); }
}

.gate-card {
    position: relative;
    z-index: 10;
    max-width: 500px;
    width: 90%;
    padding: 3rem;
    text-align: center;
}

.gate-input-group {
    margin: 2rem 0;
}

.gate-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
    transition: var(--transition-fast);
}

.gate-input:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.1);
}

#gate-error {
    color: #ff5555;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: none;
}

/* Background Gradients & Noise */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Custom Selection */
::selection {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    padding: 2rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    top: 2.5rem;
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 6px var(--bg-dark);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
    }
    .timeline-dot {
        left: 10px !important;
    }
}
