:root {
    --primary: #FF6B00;
    --secondary: #FFC107;
    --dark: #111111;
    --light: #FAFAFA;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --case-accent: #ef4444;
    --case-muted: #94a3b8;
    
    /* Large Screen Mode - Font Scale Factor */
    --font-scale: 1;
}

/* ============================================ */
/* LARGE SCREEN MODE - Büyük Ekran Optimizasyonu */
/* 4m x 6m ekranlar için tipografi ölçeklendirme */
/* Toggle: Ctrl+Shift+L veya Debug Panel */
/* ============================================ */

body.large-screen-mode {
    --font-scale: 1.35; /* 1.4'ten düşürüldü - overflow sorunlarını önlemek için */
}

/* Scale all Tailwind text classes in large screen mode */
body.large-screen-mode .text-xs {
    font-size: calc(0.75rem * var(--font-scale)) !important; /* 12px -> 16.8px */
    line-height: 1.5 !important;
}

body.large-screen-mode .text-sm {
    font-size: calc(0.875rem * var(--font-scale)) !important; /* 14px -> 19.6px */
    line-height: 1.5 !important;
}

body.large-screen-mode .text-base {
    font-size: calc(1rem * var(--font-scale)) !important; /* 16px -> 22.4px */
}

body.large-screen-mode .text-lg {
    font-size: calc(1.125rem * var(--font-scale)) !important; /* 18px -> 25.2px */
}

body.large-screen-mode .text-xl {
    font-size: calc(1.25rem * var(--font-scale)) !important; /* 20px -> 28px */
}

body.large-screen-mode .text-2xl {
    font-size: calc(1.5rem * var(--font-scale)) !important; /* 24px -> 33.6px */
}

body.large-screen-mode .text-3xl {
    font-size: calc(1.875rem * var(--font-scale)) !important; /* 30px -> 42px */
}

body.large-screen-mode .text-4xl {
    font-size: calc(2.25rem * var(--font-scale)) !important; /* 36px -> 50.4px */
}

body.large-screen-mode .text-5xl {
    font-size: calc(3rem * var(--font-scale)) !important; /* 48px -> 67.2px */
}

body.large-screen-mode .text-6xl {
    font-size: calc(3.75rem * var(--font-scale)) !important; /* 60px -> 84px */
}

body.large-screen-mode .text-7xl {
    font-size: calc(4.5rem * var(--font-scale)) !important; /* 72px -> 100.8px */
}

/* ============================================ */
/* STAT CARDS - Rakam ve Yazı Düzeni */
/* ============================================ */

/* Stat box düzeni - rakamlar için daha fazla alan */
body.large-screen-mode .stat-box {
    padding: 2rem 1.5rem !important;
    min-height: auto !important;
}

body.large-screen-mode .stat-box h3,
body.large-screen-mode .stat-box .count-up {
    font-size: 3rem !important; /* Sabit boyut - çok büyümesini engelle */
    line-height: 1.1 !important;
    margin-bottom: 0.5rem !important;
}

body.large-screen-mode .stat-box p {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-top: 0.25rem !important;
}

/* Stat card ultra düzeni */
body.large-screen-mode .stat-card-ultra {
    padding: 2rem !important;
}

body.large-screen-mode .stat-card-ultra h3,
body.large-screen-mode .stat-card-ultra .count-up {
    font-size: 3.5rem !important; /* Kontrollü büyüme */
    line-height: 1.1 !important;
}

body.large-screen-mode .k-suffix {
    font-size: 2rem !important;
}

/* Genel count-up rakamları - container içinde olanlar */
body.large-screen-mode .count-up {
    line-height: 1.1 !important;
}

/* Büyük rakamların yanındaki açıklamalar */
body.large-screen-mode [class*="text-"][class*="font-black"] + p,
body.large-screen-mode .count-up + p,
body.large-screen-mode h3 + p {
    margin-top: 0.5rem !important;
}

/* ============================================ */
/* CARD İÇİ LAYOUT DÜZELTMELERİ */
/* ============================================ */

/* Stat kartlarında flex düzeni */
body.large-screen-mode .stat-box.flex,
body.large-screen-mode .stat-card-ultra.flex {
    gap: 1rem !important;
}

/* Grid gap artırma - sadece stat grid'leri için */
body.large-screen-mode .grid.gap-4:not(.main-content *):not(#slide-0 *) {
    gap: 1.25rem !important;
}

body.large-screen-mode .grid.gap-6:not(.main-content *):not(#slide-0 *) {
    gap: 1.75rem !important;
}

/* ============================================ */
/* TAGS VE BADGES */
/* ============================================ */

body.large-screen-mode .tag,
body.large-screen-mode [class*="tracking-wider"],
body.large-screen-mode [class*="tracking-widest"] {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

/* Rounded tag/badge'ler */
body.large-screen-mode span[class*="rounded"][class*="bg-"] {
    font-size: 0.9rem !important;
}

/* ============================================ */
/* SLIDE-0 KORUMA - Layout bozulmasın */
/* ============================================ */

body.large-screen-mode #slide-0 .relative.w-160,
body.large-screen-mode #slide-0 .relative.h-160 {
    /* Resim container'ı sabit kalsın */
    width: 40rem !important;
    height: 40rem !important;
}

body.large-screen-mode #slide-0 .absolute.-bottom-6.-left-6 {
    /* 2025 badge pozisyonu korunsun */
    bottom: -1.5rem !important;
    left: -1.5rem !important;
    padding: 1rem !important;
}

body.large-screen-mode #slide-0 img[class*="rounded-"] {
    /* Resim boyutu korunsun */
    max-width: 100% !important;
    max-height: 100% !important;
}

/* ============================================ */
/* SPECIFIC SLIDE FIXES */
/* ============================================ */

/* Slide 7/8 - Grid stat kartları (küçük kartlar) */
body.large-screen-mode #slide-7 .count-up,
body.large-screen-mode #slide-8 .count-up {
    font-size: 2rem !important;
}

body.large-screen-mode #slide-7 [class*="p-4"] p,
body.large-screen-mode #slide-8 [class*="p-4"] p {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
}

/* Slide 9 - Stat box düzeni */
body.large-screen-mode #slide-9 .stat-box .count-up,
body.large-screen-mode #slide-9 .stat-box h3 {
    font-size: 2.5rem !important;
    margin-bottom: 0.25rem !important;
}

body.large-screen-mode #slide-9 .stat-box p {
    font-size: 1rem !important;
}

/* Slide 12 - Nikah kartları */
body.large-screen-mode #slide-12 .count-up {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
}

body.large-screen-mode #slide-12 [class*="border-l-"] .count-up {
    font-size: 2.25rem !important;
}

/* Slide 14 - Psixoloji zorakılıq */
body.large-screen-mode #slide-14 .count-up {
    font-size: 2.75rem !important;
}

body.large-screen-mode #slide-14 [class*="border-l-"] .count-up {
    font-size: 2.25rem !important;
}

body.large-screen-mode #slide-14 [class*="bg-gradient-to-br"] .count-up {
    font-size: 3.5rem !important;
}

/* Slide 15 - Hüquqi təminat kartları */
body.large-screen-mode #slide-15 [class*="border-t-"] .count-up,
body.large-screen-mode #slide-15 [class*="border-t-"] h3 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
}

body.large-screen-mode #slide-15 [class*="border-t-"] p {
    font-size: 0.9rem !important;
    margin-top: 0.25rem !important;
}

/* Slide 28 - Teşekkür kartları */
body.large-screen-mode #slide-28 p {
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

body.large-screen-mode #slide-28 h3 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
}

body.large-screen-mode #slide-28 h4 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
}

body.large-screen-mode #slide-28 [class*="p-4"],
body.large-screen-mode #slide-28 [class*="p-5"] {
    padding: 1.25rem !important;
}

/* Gradient kartlar içindeki büyük rakamlar - genel */
body.large-screen-mode [class*="from-gray-900"] .count-up,
body.large-screen-mode [class*="from-purple-600"] .count-up,
body.large-screen-mode [class*="from-teal-500"] .count-up {
    font-size: 3rem !important;
}

/* Alt açıklamalar - uppercase küçük yazılar */
body.large-screen-mode p[class*="uppercase"][class*="text-xs"],
body.large-screen-mode span[class*="uppercase"][class*="text-xs"] {
    font-size: 0.9rem !important;
    margin-top: 0.35rem !important;
}

/* ============================================ */
/* FLEX LAYOUT DÜZELTMELERİ */
/* ============================================ */

/* Flex container içinde rakamların taşmasını engelle */
body.large-screen-mode .flex-col > .count-up,
body.large-screen-mode .flex-col > h3 {
    flex-shrink: 0 !important;
}

/* İkon container'ları sabit boyutta kalsın */
body.large-screen-mode .stat-box [class*="w-10"][class*="h-10"],
body.large-screen-mode .stat-box [class*="w-12"][class*="h-12"],
body.large-screen-mode .stat-box [class*="w-16"][class*="h-16"] {
    flex-shrink: 0 !important;
}

/* Chart bar container yüksekliği */
body.large-screen-mode .chart-bar-bg {
    margin-top: 0.75rem !important;
}

/* ============================================ */
/* STAT CARD PADDING ARTIRMA */
/* ============================================ */

/* Sadece stat kartları için padding artırma - slide-0 hariç */
body.large-screen-mode .stat-box[class*="p-"] {
    padding: 1.5rem !important;
}

body.large-screen-mode .stat-card-ultra[class*="p-"] {
    padding: 1.75rem !important;
}

/* Text alanları için minimum yükseklik - sadece stat kartlarında */
body.large-screen-mode .stat-box [class*="h-8"],
body.large-screen-mode [class*="animate-stagger-item"] [class*="h-8"] {
    height: auto !important;
    min-height: 2.5rem !important;
}

/* ============================================ */
/* NAVIGATION */
/* ============================================ */

body.large-screen-mode .nav-btn {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
}

/* Status indicator for large screen mode */
body.large-screen-mode::after {
    content: '📺 BÜYÜK EKRAN MODU';
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #FF6B00, #FFC107);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f0f0f0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    color: var(--dark);
}

h1,
h2,
h3,
.title-font {
    font-family: 'Montserrat', sans-serif;
}

/* Custom Scrollbar for Stats Grid */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Dynamic Background */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('https://i.ibb.co/Df36P51G/Pngtree-abstract-wave-background-with-orange-11049242.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    z-index: -1;
    animation: floatOrb 20s infinite ease-in-out;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: var(--secondary);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: var(--primary);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: #fff;
    top: 40%;
    left: 40%;
    opacity: 0.4;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, -30px) scale(0.9);
    }
}

/* Main Layout */
#app {
    position: absolute;
    width: 1920px;
    height: 1080px;
    perspective: 1000px;
    overflow: hidden;
    top: 0;
    left: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    visibility: hidden;
    opacity: 0;
}

/* Card Styling */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    transform-style: preserve-3d;
}

.main-content {
    width: 95%;
    height: 92%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem;
    position: relative;
}

/* Flex layout variant for slides that need flex instead of grid */
.main-content.flex-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1024px) {
    .main-content {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .full-width {
        grid-template-columns: 1fr;
    }

    /* New Layout for Slide 6 & 8 */
    .split-layout-reverse {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

/* Typography */
.highlight-text {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Chart Styles */
.chart-bar-bg {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 99px;
    height: 12px;
    width: 100%;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 99px;
    width: 0;
}

/* Circular Progress */
.circle-chart {
    width: 120px;
    height: 120px;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round;
    stroke: var(--primary);
    stroke-dasharray: 0 100;
}

/* Circular Donut Chart for Slide 15 */
.donut-segment {
    transition: stroke-dasharray 1s ease-out;
    transform-origin: center;
    transform: rotate(-90deg);
}

/* Navigation */
.nav-controls {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    display: flex;
    gap: 1rem;
    z-index: 50;
}

.nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.2s;
}

.nav-btn:hover {
    transform: scale(1.1);
    color: var(--secondary);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* Elements specific styling */
.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-box {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border-left: 5px solid var(--secondary);
}

.stat-box:hover {
    transform: translateY(-5px);
}

/* 3D Tilt Effect helper */
.tilt-element {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* --- YENİ Slayd 2 Üçün Xüsusi CSS --- */
.goal-card-premium {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    height: 100%;
    justify-content: flex-start;
    cursor: pointer;
}

.goal-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(var(--card-color), 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.goal-card-premium:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(var(--card-color), 0.2);
    border-color: rgb(var(--card-color));
}

.goal-card-premium:hover::before {
    opacity: 1;
}

.goal-icon-box {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgb(var(--card-color));
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 20px rgba(var(--card-color), 0.1);
    transition: all 0.6s ease;
    position: relative;
    z-index: 10;
}

.goal-card-premium:hover .goal-icon-box {
    background: rgb(var(--card-color));
    color: white;
    transform: rotateY(180deg);
    box-shadow: 0 10px 25px rgba(var(--card-color), 0.3);
}

.goal-icon-box i {
    transition: transform 0.6s;
}

.goal-card-premium:hover .goal-icon-box i {
    transform: rotateY(-180deg);
}

.goal-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 900;
    color: rgb(var(--card-color));
    opacity: 0.05;
    line-height: 1;
    transition: opacity 0.3s, transform 0.3s;
}

.goal-card-premium:hover .goal-number {
    opacity: 0.15;
    transform: scale(1.1);
}

/* Colors RGB values for dynamic use */
.color-blue {
    --card-color: 59, 130, 246;
}

.color-orange {
    --card-color: 249, 115, 22;
}

.color-green {
    --card-color: 16, 185, 129;
}

/* --- SLAYD 3 & 5 ÜÇÜN YENİ STİLLƏR (Premium Statistikalar) --- */
.stat-card-ultra {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 20px 20px 60px #d1d5db, -20px -20px 60px #ffffff;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stat-card-ultra:hover {
    transform: translateY(-5px);
}

.stat-card-ultra.primary {
    border-left: 8px solid var(--primary);
}

.stat-card-ultra.secondary {
    border-left: 8px solid var(--secondary);
}

.stat-card-ultra.danger {
    border-left: 8px solid #ef4444;
}

.neon-text-shadow {
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

.neon-text-shadow-red {
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.k-suffix {
    font-size: 0.5em;
    opacity: 0.6;
    vertical-align: top;
    margin-left: 4px;
}

.chart-container {
    position: relative;
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 10px 20px rgba(255, 107, 0, 0.2));
}

.chart-neon circle {
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease-out;
}

/* Slide 5 Specific: Flow Cards */
.flow-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.flow-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.flow-card.red:hover {
    border-left-color: #ef4444;
}

.flow-card.orange:hover {
    border-left-color: #f97316;
}

.flow-card.yellow:hover {
    border-left-color: #eab308;
}

/* --- YENİ: Slayd 6 & 8 Üçün Xüsusi Image Grid CSS --- */
.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    height: 100%;
    width: 100%;
}

.gallery-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    height: 100%;
    perspective: 1000px;
}

.gallery-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    height: 100%;
    perspective: 1000px;
}

.photo-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    height: 100%;
    width: 100%;
}

.photo-frame:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 20;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.photo-frame:hover img {
    transform: scale(1.1);
}

.photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: white;
    padding: 8px;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.photo-frame:hover .photo-label {
    transform: translateY(0);
}

.info-bullet {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.info-bullet:hover {
    background: white;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.glass-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: transform 0.3s;
}

.glass-stat-card:hover {
    transform: translateY(-5px);
}

/* --- Loading State --- */
body.js-loading #app {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

body.js-loading #canvas-container,
body.js-loading .orb {
    opacity: 0;
}

/* --- Loader Styles --- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

body.js-loading .loader-container {
    opacity: 1;
    visibility: visible;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Case Card Styles --- */
.case-card {
    background: var(--case-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--case-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: var(--case-text);
    overflow: hidden;
}

.case-header-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

/* --- Timeline Styles --- */
.timeline-container {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #1e293b;
    border: 2px solid var(--case-muted);
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
}

.timeline-item.active::before {
    background: var(--case-accent);
    border-color: var(--case-accent);
    box-shadow: 0 0 15px var(--case-accent);
}

.timeline-item.resolved::before {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    transition: transform 0.3s;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.impact-quote {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    border-left: 4px solid var(--case-accent);
    padding-left: 1.5rem;
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-top: 2rem;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

/* --- Status Pills --- */
.status-pill {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.status-pill.alert {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.status-pill.action {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.status-pill.legal {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

/* --- Gallery Card Design (Premium UI/UX - Portrait Optimized) --- */

/* Base Gallery Grid */
.gallery-grid-premium {
    display: grid;
    gap: 1.25rem;
    padding: 0;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

/* Slides 10 & 11: Premium 3x2 Grid Layout */
#slide-10 .gallery-grid-premium,
#slide-11 .gallery-grid-premium {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Responsive: 2 columns on tablets */
@media (max-width: 1024px) {

    #slide-10 .gallery-grid-premium,
    #slide-11 .gallery-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 640px) {

    #slide-10 .gallery-grid-premium,
    #slide-11 .gallery-grid-premium {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

/* Slides 10 & 11: Card aspect ratio for portrait images */
#slide-10 .gallery-card,
#slide-11 .gallery-card {
    aspect-ratio: 4/3;
}

/* Slides 10 & 11: Use cover for professional appearance */
#slide-10 .gallery-card img,
#slide-11 .gallery-card img {
    object-fit: cover !important;
    background: none;
}

/* Slide 9: 2 Horizontal Images -> 2 Columns, 1 Row (Full Width) */
#slide-9 .gallery-grid-premium {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    width: 100%;
    max-width: 100%;
}

#slide-9 .gallery-card {
    aspect-ratio: 4/3;
}

/* Base Gallery Card Styles - Premium Glassmorphism */
.gallery-card {
    /* Glassmorphism - Refined */
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;

    /* Layout & Spacing - FLUSH DESIGN */
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    height: 100%;

    /* Depth & Shadow */
    box-shadow:
        0 4px 24px -1px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;

    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 40px -5px rgba(0, 0, 0, 0.1),
        0 10px 20px -5px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.8);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* Legacy Cleanup */
#slide-9 .photo-frame {
    display: none;
}
