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

:root {
    --color-bg: #050505;
    --color-text: #eaeaea;
    --color-text-muted: #7a7a7a;
    --color-accent: #c8aa76; /* Refined muted gold */
    --glass-bg: rgba(15, 15, 15, 0.35); /* Smoked glass */
    --glass-border: rgba(255, 255, 255, 0.04);
    --glass-blur: blur(30px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Custom cursor */
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    background: radial-gradient(circle at 50% 50%, #0d0d0d 0%, var(--color-bg) 100%);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.15; /* Make it much darker/subtle to not distract from content */
}

/* Custom Luxury Cursor */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(200, 170, 118, 0.4);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

h1 {
    font-size: 5.5rem;
    letter-spacing: 10px;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.5s ease, letter-spacing 0.5s ease;
}

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

/* Glassmorphism - Smoked Obsidian */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 4px; /* Sharper, more elegant edges */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.transparent-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    background: transparent;
    transition: padding 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2.5rem 0;
}

/* Layout */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
}

.nav-left, .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-right {
    justify-content: flex-end;
}

.logo-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo h2 {
    font-size: 1.5rem;
    letter-spacing: 8px;
    margin: 0;
    color: #fff;
}

/* Menu Toggle */
.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 12px;
    padding: 0;
    z-index: 2000;
    position: relative;
}

.menu-toggle .line {
    display: block;
    width: 35px;
    height: 1px;
    background: #fff;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle.active .line:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle.active .line:nth-child(2) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1500;
    pointer-events: none;
    visibility: hidden;
}

.sidebar-menu.active {
    pointer-events: auto;
    visibility: visible;
}

.sidebar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-menu.active .sidebar-bg {
    opacity: 1;
}

.sidebar-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.1s;
}

.sidebar-menu.active .sidebar-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
}

.sidebar-links a {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 2vw, 2rem);
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.sidebar-links a:hover {
    opacity: 1;
    color: #fff;
}

.sidebar-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.sidebar-footer {
    margin-top: 5rem;
    color: var(--color-accent);
    font-family: 'Cinzel', serif;
    letter-spacing: 4px;
    font-size: 1rem;
    text-transform: uppercase;
}

/* Animations prep for GSAP */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 5%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    color: var(--color-text-muted);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Buttons */
.btn-glass {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-glass:hover {
    color: #000;
    box-shadow: 0 15px 40px rgba(200, 170, 118, 0.15);
}

.btn-glass:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Sections */
.section {
    padding: 12rem 6%;
    max-width: 1600px;
    margin: 0 auto;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    text-align: center;
    color: #fff;
}

/* Four Gates Grid */
.gates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.gate-card {
    padding: 4rem 2.5rem;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background 0.8s;
}

.gate-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.02);
}

.gate-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.gate-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6rem 5%;
    text-align: center;
    margin-top: 8rem;
    background: rgba(5, 5, 5, 0.8);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.footer p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    /* Hero Adjustments */
    .hero {
        height: auto !important;
        min-height: 100vh;
        padding-top: 150px !important;
        padding-bottom: 80px !important;
    }
    
    .hero-content {
        height: auto !important;
        gap: 4rem;
        padding-top: 0 !important;
    }
    
    .hero-content h1 { 
        font-size: 2.5rem !important; 
        letter-spacing: 6px !important; 
    }
    
    .hero-bottom-area {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 2rem !important;
    }
    
    .hero-editorial-text, .hero-editorial-text p {
        text-align: left !important;
        text-align-last: left !important;
        max-width: 100% !important;
    }
    
    .hero-editorial-border {
        border-right: none !important;
        border-left: 2px solid var(--color-accent) !important;
        padding-right: 0 !important;
        padding-left: 1.5rem !important;
    }
    
    /* Global Adjustments */
    .section {
        padding: 4rem 5% !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
        letter-spacing: 4px !important;
        margin-bottom: 2rem !important;
    }
    
    /* Aggressive inline style overrides for mobile */
    .glass {
        padding: 2rem 1.5rem !important;
    }
    
    .glass > div {
        padding: 1.5rem !important;
        min-width: 100% !important; /* Forces 2-column flex layouts to stack vertically */
    }
    
    .glass > div > div[style*="border-radius: 50%"] {
        width: 180px !important;
        height: 180px !important;
    }
    
    .gates-grid {
        grid-template-columns: 1fr;
        gap: 1rem !important;
    }
    
    .gate-card {
        padding: 1.5rem !important;
    }
    
    /* Navigation Adjustments */
    .transparent-nav {
        padding: 1.5rem 0 !important;
    }
    
    .nav-container {
        padding: 0 5%;
    }
    
    .logo h2 {
        font-size: 1.1rem !important;
        letter-spacing: 4px !important;
    }
    
    .btn-glass.nav-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.55rem !important;
        letter-spacing: 1px !important;
        white-space: nowrap;
    }
    
    .sidebar-links {
        gap: 2rem;
    }
    
    .sidebar-links a {
        font-size: 1.3rem !important;
        letter-spacing: 4px !important;
    }
    
    .sidebar-footer {
        font-size: 0.8rem;
        letter-spacing: 2px;
        margin-top: 3rem;
    }
    
    /* Disable custom cursor on mobile */
    * { cursor: auto !important; }
    .cursor-dot, .cursor-outline { display: none !important; }
}
