/* =========== 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;}

/* =========== 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 {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
    margin-top: 2rem;
}

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

/* =========== 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 =========== */
/* Tablet Breakpoint (max-width: 1024px) */
@media (max-width: 1024px) {
    .title-main { font-size: 3.5rem; }
    .section-title { font-size: 2.8rem; }
    .section-title.massive { font-size: 3.2rem; }
    .split-layout { gap: 2rem; }
    .visual-side { height: 45vh; }
    
    /* Ensure content fits better on tablet */
    .content {
        width: 95%;
    }
    .glass { padding: 2rem; }
}

/* Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
    /* Transform into a vertical scrolling page on mobile */
    body {
        overflow-y: auto !important;
        overflow-x: hidden;
    }
    .presentation-container {
        height: auto !important;
        display: block;
    }
    .slide {
        position: relative !important;
        height: auto !important;
        min-height: 100vh;
        padding: 4rem 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Override animation hiding on mobile */
    .slide .text-side > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Layouts */
    .split-layout {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    
    /* Stack elements properly */
    .split-layout.flip .text-side { order: 1; }
    .split-layout.flip .visual-side { order: 2; }
    
    .visual-side {
        height: auto;
        min-height: 300px;
        width: 100%;
    }
    
    .text-side {
        text-align: center;
        align-items: center;
    }
    
    .feature-list li { text-align: left; font-size: 1.1rem; }
    .module-tags { justify-content: center; }
    
    /* Fluid typography and adjustments */
    .title-main { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1.5rem; }
    .section-title { font-size: 2.2rem; line-height: 1.2; }
    .subtitle { font-size: 1.2rem; margin-bottom: 2rem; }
    .large-text { font-size: 1.1rem; margin-bottom: 1.5rem; }
    .logo { font-size: 1.2rem; margin-bottom: 1.5rem; }
    
    /* Elements */
    .glass { padding: 1.5rem; border-radius: 20px; }
    .dark-bg { padding: 1.5rem; border-radius: 15px; }
    
    /* Touch target optimizations for buttons */
    .btn { 
        padding: 1.2rem 2rem; 
        font-size: 1.1rem; 
        width: 100%; 
        max-width: 100%; 
        display: block; 
        margin-top: 1rem;
    }
    .stat-number { font-size: 2rem; }
    
    /* Show nav on mobile but with safe area padding */
    .presentation-nav {
        display: flex !important;
        bottom: 20px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        width: 90%;
        justify-content: space-between;
    }
    
    /* Ensure images are responsive */
    .visual-side img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
    }
}

/* Fix for desktop screens with small height where nav bar might overlap text */
@media (max-height: 800px) and (min-width: 1025px) {
    .presentation-nav {
        bottom: 10px;
        transform: scale(0.8) translateX(-60%);
    }
    .title-main { font-size: 3rem; margin-bottom: 0.5rem; }
    .section-title { font-size: 2.2rem; margin-bottom: 0.5rem; }
    .large-text { font-size: 1.1rem; margin-bottom: 1rem; }
    .visual-side { height: 50vh; }
    .feature-list li { font-size: 1rem; margin-bottom: 0.5rem; }
}

