/* style.css */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-green: #22c55e;
    --accent-orange: #f97316;
    --accent-blue: #3b82f6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4% 5%;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-header {
    margin-bottom: 20px;
}

.slide-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.slide-header p {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.stack-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    flex-grow: 1;
    width: 100%;
    margin-bottom: 30px;
    align-items: center;
}

.single-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    width: 100%;
    margin-bottom: 30px;
}

.single-container .image-card {
    width: 70%;
    height: 100%;
    max-height: 520px;
}

.image-card {
    background-color: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    max-height: 520px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 8px solid #ffffff;
}

.right-stack {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 520px;
}

.stacked-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transform: scale(0.9) rotate(0deg);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-out;
}

.stacked-card.revealed {
    opacity: 1;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #000000;
    overflow: hidden;
}

.image-container::before {
    content: "";
    position: absolute;
    top: -10%; left: -10%; 
    width: 120%; height: 120%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.4);
    z-index: 1;
}

.image-container img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: contain;
    z-index: 2;
}

.image-container img {
    content: inherit;
}

/* ==========================================================================
   BADGES & STYLES
   ========================================================================== */

/* Common base for all labels */
.badge {
    position: absolute;
    padding: 8px 22px;        /* A bit more padding for the larger font */
    font-weight: 800;         /* Extra bold for better readability on TV */
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* 1. THE CLASSIC STYLE (Floating, rounded corners) */
.badge.classic {
    top: 15px; 
    left: 15px;
    border-radius: 10px;
}

/* 2. THE MODERN STYLE (Flush with the edge, square corners) */
.badge.modern {
    border-radius: 0;
}

.badge.modern.modern-left {
    top: 30px;
    left: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.badge.modern.modern-right {
    bottom: 30px;
    right: 0;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

/* Color assignments */
.badge.orange, .badge.before { background-color: var(--accent-orange); color: white; }
.badge.blue, .badge.work { background-color: var(--accent-blue); color: white; }
.badge.green, .badge.after { background-color: var(--accent-green); color: white; }
.badge.yellow { background-color: #eab308; color: #0f172a; }
.badge.default-badge { background-color: #64748b; color: white; }

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */
.progress-bar-container {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 14px;             /* Made container thicker */
    background: rgba(255,255,255,0.1); 
    z-index: 100;
}

.progress-bar {
    height: 100%; 
    width: 0%; 
    background: var(--accent-green);
}

/* ==========================================================================
   STYLING FOR INTRO & OUTRO
   ========================================================================== */
   .special-slide {
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
}

.special-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.special-content p {
    font-size: 2rem;
    color: var(--text-muted);
}

/* Neon glow effect matching the green theme */
.glow-text {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

/* Centrated stack layout, if no before image exists */
.stack-container.centered-stack {
    display: flex;
    justify-content: center; /* Center the stack horizontally */
    align-items: center;     /* Center the stack vertically */
}

.stack-container.centered-stack .right-stack {
    width: 60%;        /* The width of the stack, best suited for your images */
    max-width: 800px;  /* Prevents the images from bursting on giant monitors */
    margin: 0 auto;    /* Absolute protection for the centering */
}