/* =========== VARIABLES & THEME =========== */
:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    --accent-gold: #ffcc00;
    --accent-gold-dark: #cc9900;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden; /* Manage scrolling via JS */
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
}

.text-gold { color: var(--accent-gold); }
.text-white { color: #fff; }
.text-light { color: var(--text-main); }
.dark-bg { background-color: var(--bg-darker); padding: 3rem; border-radius: 20px;}

/* =========== GLOBAL LOGO =========== */
.global-logo {
    position: fixed;
    top: 30px;
    left: 40px;
    width: 60px;
    z-index: 1000;
    pointer-events: none; /* so it doesn't block clicks */
}

.global-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    transform: none; /* Override standard img hover effect */
}

/* =========== PRESENTATION CONTAINER =========== */
.presentation-container {
    height: 100vh;
    width: 100vw;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    transform: translateY(20px) scale(0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 10;
}

/* Base Content Box */
.content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* =========== TYPOGRAPHY & ELEMENTS =========== */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

.title-main {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.section-title.massive {
    font-size: 4.5rem;
    text-align: center;
    background: linear-gradient(to right, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.large-text {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

.slide.active .image-container img {
    transform: scale(1.02);
}

.eyebrow {
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* =========== LAYOUTS =========== */
/* Intro */
.intro-content {
    text-align: center;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-layout.flip .text-side {
    order: 2;
}

.split-layout.flip .visual-side {
    order: 1;
}

.text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visual-side {
    position: relative;
    height: 60vh;
    border-radius: 24px;
}

/* Glassmorphism */
.glass {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* Center Focus */
.center-focus {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.max-w { max-width: 800px; margin: 0 auto 3rem; }

/* Overlay styles (ThetaX) */
.full-screen-overlay {
    height: 100%;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-card {
    max-width: 700px;
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s ease 0.3s;
}

.slide.active .overlay-card {
    transform: translateY(0);
    opacity: 1;
}

/* =========== COMPONENTS =========== */
/* Feature List */
.feature-list {
    list-style: none;
}
.feature-list li {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}
.feature-list li::before {
    content: '→';
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Tags */
.module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}
.module-tags span, .module-tags a {
    padding: 0.5rem 1rem;
    background: rgba(255,204,0,0.1);
    color: var(--accent-gold);
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid rgba(255,204,0,0.2);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}
.module-tags a:hover {
    background: rgba(255,204,0,0.2);
    transform: translateY(-2px);
}

/* Stats */
.stat-box {
    margin-top: 2rem;
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(255,204,0,0.2), transparent);
    border-left: 4px solid var(--accent-gold);
    border-radius: 0 10px 10px 0;
}
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
}
.stat-label {
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(255,204,0,0.3);
}

.btn-primary:hover {
    background-color: #ffe066;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,204,0,0.5);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* =========== NAVIGATION BAR =========== */
.presentation-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.05);
}

.nav-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
}

.nav-btn:disabled {
    color: rgba(255,255,255,0.2);
    cursor: not-allowed;
}

.progress-bar {
    width: 150px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gold);
    width: 14.28%; /* 1/7 initially */
    transition: width var(--transition-fast);
}

/* =========== ANIMATIONS =========== */
.slide .text-side > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.slide.active .text-side > *:nth-child(1) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.slide.active .text-side > *:nth-child(2) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.slide.active .text-side > *:nth-child(3) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.slide.active .text-side > *:nth-child(4) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.slide.active .text-side > *:nth-child(5) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.slide.active .text-side > *:nth-child(6) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }

/* Animation Utils */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255,204,0,0.5);
    border-radius: 50%;
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* =========== RESPONSIVE DESIGN =========== */
@media (max-width: 992px) {
    body {
        overflow: auto; /* Fallback */
    }
    .presentation-container {
        height: 100dvh; /* Better for mobile browser UI */
    }
    
    .slide {
        align-items: flex-start;
        overflow-y: auto;
        padding-top: 60px;
        padding-bottom: 100px;
    }
    
    .slide .content {
        padding-bottom: 40px; /* extra space at bottom */
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .split-layout.flip .text-side { order: 2; }
    .split-layout.flip .visual-side { order: 1; }
    
    .text-side {
        align-items: center;
    }
    
    .visual-side {
        height: 40vh;
        min-height: 250px;
        width: 100%;
    }
    
    .feature-list {
        text-align: left;
        display: inline-block;
    }
    
    .module-tags {
        justify-content: center;
    }
    
    .title-main { font-size: 4rem; }
    .section-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .global-logo {
        top: 20px;
        left: 20px;
        width: 45px;
    }
    .title-main { font-size: 3rem; }
    .section-title { font-size: 2.2rem; }
    .section-title.massive { font-size: 2.5rem; }
    .subtitle { font-size: 1.2rem; }
    
    .slide {
        padding-top: 40px;
    }

    .dark-bg, .glass {
        padding: 2rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .presentation-nav {
        width: 90%;
        bottom: 20px;
        justify-content: space-between;
    }
    
    .progress-bar {
        flex-grow: 1;
        width: auto;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    .title-main { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .section-title.massive { font-size: 2rem; }
    
    .visual-side {
        height: 30vh;
        min-height: 200px;
    }
    
    .logo { font-size: 1.2rem; margin-bottom: 1rem; }
    
    .scroll-indicator {
        bottom: 20px; /* Hide or adjust on very small if needed */
    }
    
    .dark-bg, .glass {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 1rem 1.5rem;
    }
}

