/* ==========================================
   CSS DESIGN SYSTEM & THEME TOKENS
   ========================================== */

:root {
    /* Color Palette - Dark Mode (Default) */
    --bg-base: #0a0d14; /* Solid sleek dark background */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Prominent Solid Glass Card (Dark Mode) */
    --card-bg: #141a29;
    --card-border: rgba(255, 255, 255, 0.14);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.7),
                   0 0 0 1px rgba(255, 255, 255, 0.08);
    
    --control-bg: #1c2436;
    --control-border: rgba(255, 255, 255, 0.15);
    --control-hover: #263147;
    
    --badge-bg: rgba(99, 102, 241, 0.18);
    --badge-border: rgba(99, 102, 241, 0.4);
    --badge-text: #a5b4fc;
    --badge-pulse: #6366f1;

    --gradient-title: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #818cf8 100%);
    --gif-bg: #111622;
}

[data-theme="light"] {
    /* Color Palette - Light Mode */
    --bg-base: #e2e8f0; /* Solid light slate background */
    --text-main: #0f172a;
    --text-muted: #475569;
    
    /* Prominent Solid Glass Card (Light Mode) */
    --card-bg: #ffffff;
    --card-border: #cbd5e1;
    --card-shadow: 0 20px 45px rgba(15, 23, 42, 0.12),
                   0 0 0 1px rgba(0, 0, 0, 0.05);
    
    --control-bg: #ffffff;
    --control-border: #cbd5e1;
    --control-hover: #f1f5f9;
    
    --badge-bg: rgba(99, 102, 241, 0.1);
    --badge-border: rgba(99, 102, 241, 0.3);
    --badge-text: #4338ca;
    --badge-pulse: #4f46e5;

    --gradient-title: linear-gradient(135deg, #0f172a 0%, #334155 50%, #4f46e5 100%);
    --gif-bg: #f8fafc;
}

/* ==========================================
   RESET & GLOBAL STYLES
   ========================================== */

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

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Strict no-scroll constraint */
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
}

/* ==========================================
   TOP CONTROLS (THEME & LANGUAGE)
   ========================================== */

.top-controls {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--control-bg);
    border: 1px solid var(--control-border);
    border-radius: 30px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.control-btn:hover {
    background: var(--control-hover);
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.5);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.control-btn:hover #themeIcon {
    transform: rotate(45deg);
}

.lang-text {
    letter-spacing: 0.5px;
}

/* ==========================================
   VIEWPORT WRAPPER & PROMINENT CENTERED CARD
   ========================================== */

.viewport-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.glass-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 44px 38px 36px 38px;
    text-align: center;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================
   STATUS BADGE
   ========================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    border-radius: 20px;
    color: var(--badge-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--badge-pulse);
    box-shadow: 0 0 0 0 var(--badge-pulse);
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* ==========================================
   TITLES & TEXT
   ========================================== */

.main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}

.gradient-text {
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 420px;
    margin-bottom: 24px;
    font-weight: 400;
}

/* ==========================================
   CUSTOM GIF WRAPPER & TRANSPARENT BLENDING
   ========================================== */

.gif-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.gif-container {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.custom-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.gif-container:hover .custom-gif {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 8px 18px rgba(99, 102, 241, 0.35));
}

/* ==========================================
   SOCIAL ICONS
   ========================================== */

.social-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--control-bg);
    border: 1px solid var(--control-border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-icon:hover {
    color: var(--text-main);
    background: var(--badge-bg);
    border-color: var(--badge-border);
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE LAYOUT ADJUSTMENTS (NO OVERFLOW)
   ========================================== */

@media (max-height: 720px) {
    .glass-card {
        padding: 30px 28px 24px 28px;
        max-width: 460px;
    }
    .status-badge {
        margin-bottom: 12px;
        padding: 4px 12px;
        font-size: 0.68rem;
    }
    .main-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .subtitle {
        font-size: 0.88rem;
        margin-bottom: 16px;
    }
    .gif-container {
        width: 110px;
        height: 110px;
        border-radius: 16px;
    }
    .gif-wrapper {
        margin-bottom: 16px;
    }
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .top-controls {
        top: 16px;
        right: 16px;
    }
    .glass-card {
        padding: 32px 22px 24px 22px;
        border-radius: 24px;
    }
    .main-title {
        font-size: 1.85rem;
    }
    .subtitle {
        font-size: 0.85rem;
    }
    .gif-container {
        width: 115px;
        height: 115px;
    }
}
