:root {
    --primary: #FF4B4B;
    --secondary: #6B4BFF;
    --dark-bg: #0f0f13;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background-color: var(--dark-bg);
    color: var(--text);
    overflow: hidden;
    /* Prevent scrolling initially */
    height: 100vh;
}

/* 3D Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Overlay UI */
#overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Gate Screen */
#gate {
    max-width: 400px;
    width: 90%;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.security-check {
    margin-top: 30px;
}

.small-text {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

/* Interactive Button */
.interactive-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary);
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.interactive-button:hover {
    background: rgba(255, 75, 75, 0.2);
    box-shadow: 0 0 15px rgba(255, 75, 75, 0.4);
}

.btn-text {
    position: relative;
    z-index: 2;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Main Content */
#main-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    /* Initially disabled */
    transition: opacity 0.8s ease;
}

.hidden {
    display: none !important;
    /* Helper for JS state */
}

.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(15, 15, 19, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-small {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-link.highlight {
    background: var(--primary);
}

.content-container {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 40px;
}

.hero-image-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(107, 75, 255, 0.2);
    border: 1px solid var(--glass-border);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 30px;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
}

.ad-section {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    min-height: 250px;
    /* Space for banner */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-section h3 {
    margin-bottom: 15px;
    opacity: 0.5;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Features Section */
.features-section {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 2rem;
    }

    .glass-panel {
        padding: 20px;
    }
}