@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* 2026 Palette: Deep Cosmic Blue + Electric Accents */
    --bg-dark: #020617;
    --primary: #4f46e5; /* Electric Indigo */
    --primary-glow: #818cf8;
    --secondary: #0ea5e9; /* Sky Blue */
    --accent: #f59e0b; /* Amber/Orange for warmth */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --surface: rgba(30, 41, 59, 0.7); /* Glassy dark surface */
    --surface-light: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);
    
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
    
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--surface);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.text-center { text-align: center; }
.text-justify { text-align: justify; }

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-glow);
    text-shadow: 0 0 8px rgba(129, 140, 248, 0.5);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}

/* Typography */
h1, h2, h3, h4 {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 {
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: -15px;
    margin-bottom: 10px;
    opacity: 0.9;
    letter-spacing: 1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.nav-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .top-nav {
        padding: 12px 75px 12px 15px; /* Added right padding for chat widget */
        flex-direction: row;
        justify-content: space-between;
        align-items: center; /* Center items vertically */
        gap: 8px;
    }
    .top-nav .btn-small {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    .lang-switcher {
        padding: 4px 8px;
    }
    .lang-link {
        padding: 2px 6px;
        font-size: 0.8rem;
    }
}

.lang-switcher {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: flex;
    gap: 8px;
}

.lang-link {
    color: var(--text-muted);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-link.active, .lang-link:hover {
    background: var(--primary);
    color: #fff;
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #3730a3 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
    opacity: 1; /* override default a:hover */
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-purple-border {
    border: 2px solid #a855f7 !important;
}

.btn-cta {
    background: linear-gradient(135deg, var(--accent) 0%, #ea580c 100%);
    color: white;
    width: 100%;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
    color: white;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Abstract Hero Decoration */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2), transparent 70%);
    filter: blur(80px);
    z-index: 0;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-image {
    max-width: 500px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
    border-radius: 0; /* Assuming it's a PNG cutout based on filename */
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

/* Cards */
.card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: clamp(24px, 5vw, 60px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 32px 80px rgba(79, 70, 229, 0.15);
}

.job-card {
    border-left: 4px solid var(--primary);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.job-icon {
    width: 64px;
    height: 64px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.job-card ul {
    list-style: none;
    margin: 2rem 0;
}

.job-card li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-muted);
}

.job-card li::before {
    content: "→";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.highlight {
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Recruiters */
.recruiters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.recruiter {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    transition: var(--transition);
}

.recruiter:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Galleries */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.job-card .grid-gallery img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.grid-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: var(--transition);
    cursor: pointer;
}

.grid-gallery img:hover {
    transform: scale(1.03);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.video-container {
    padding-bottom: 56.25%;
    position: relative;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* Dialogs */
dialog {
    background: #1e293b;
    color: var(--text-main);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    margin: auto;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.dialog-header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    position: sticky;
    top: 0;
    z-index: 100;
}

@media (max-width: 600px) {
    .dialog-header {
        padding: 10px 15px;
    }
}

.dialog-content {
    padding: 30px 40px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

@media (max-width: 600px) {
    .dialog-content {
        padding: 20px 15px;
    }
}

.dialog-content h2 {
    margin-top: 10px;
    margin-bottom: 25px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.dialog-content h2 span {
    background: linear-gradient(135deg, #fff 0%, var(--primary-glow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Details/Summary */
details {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-light);
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
}

details[open] {
    background: rgba(255,255,255,0.06);
}

summary {
    font-weight: 700;
    cursor: pointer;
    color: var(--secondary);
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: '+';
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--text-muted);
}

details[open] summary::after {
    content: '-';
}

/* Footer */
footer {
    background: #0f172a;
    border-top: 1px solid var(--border-light);
    padding: 80px 0 40px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.contact-box {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.tg-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    transition: var(--transition);
}

.tg-fab:hover {
    transform: scale(1.1) rotate(5deg);
}

.tg-fab img {
    width: 64px;
    border-radius: 50%;
}


/* Mobile adjustments */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 120px; /* Space for bottom dock */
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .grid-gallery {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 25px;
    }
}

/* Game Overlay & Teaser */
#career-game-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#career-game-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.game-container {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.3);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    text-align: center;
    color: white;
}

.game-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.game-close-btn:hover {
    color: white;
}

.game-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-text {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.game-illustration {
    font-size: 4rem;
    margin: 20px 0;
    animation: float 4s ease-in-out infinite;
}

.game-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-option {
    text-align: left;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.2s;
}

.btn-option:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: #818cf8;
    transform: translateX(5px);
}

.game-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.game-result-card {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
}

.result-name {
    font-size: 1.5rem;
    color: #818cf8;
    margin-bottom: 10px;
}

.result-icon {
    font-size: 3rem;
}

.game-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    font-family: inherit;
}

.game-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Floating Teaser Button */
.game-teaser-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s;
}

.game-teaser-btn:hover {
    transform: scale(1.05) translateY(-2px);
}

.teaser-icon {
    font-size: 1.5rem;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.pulse-animation {
    animation: pulse-animation 2s infinite;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    /* Unified Bottom Dock Design */
    
    /* Game Button (Left/Center part) */
    .game-teaser-btn {
        bottom: 20px;
        left: 20px;
        /* Width calculation: 100% - (Left Margin 20px + Right Margin 20px + FAB Width 64px + Gap 16px) = 120px */
        width: calc(100% - 120px); 
        transform: none;
        border-radius: 16px;
        justify-content: center;
        padding: 14px 20px;
        
        /* Glass styling match */
        background: rgba(30, 41, 59, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    
    .game-teaser-btn:hover {
        transform: translateY(-2px);
        background: rgba(30, 41, 59, 0.95);
    }

    /* Telegram Button (Right part) */
    .tg-fab {
        bottom: 20px;
        right: 20px;
        width: 64px;
        height: 64px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        
        /* Glass styling match */
        background: rgba(30, 41, 59, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        transition: transform 0.2s;
    }
    
    .tg-fab:hover {
        transform: translateY(-2px);
        background: rgba(30, 41, 59, 0.95);
    }
    
    .tg-fab img {
        width: 32px;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }
    
    .tg-fab {
        width: 50px !important;
        height: 50px !important;
    }

    .game-container {
        padding: 25px;
        width: 90%;
    }
}


/* Language Selector Modal */
.lang-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 2000; /* Higher than game overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.lang-modal-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 50px rgba(79, 70, 229, 0.5);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.lang-modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    line-height: 1.4;
}

.lang-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lang-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.02);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Success Modal Specific Styles */
.success-dialog {
    max-width: 1000px !important;
    width: 95% !important;
    border-radius: 32px !important;
    background: transparent !important; /* Base is transparent to see pseudo-bg and stars */
    border: 1px solid rgba(255,255,255,0.1) !important;
    overflow: hidden;
    position: relative;
}

.success-dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #020617;
    z-index: -2; /* Deepest layer */
}

.success-modal-content {
    background: transparent;
    color: #f8fafc;
    position: relative;
    z-index: 5; /* Above stars */
    padding: 0 !important;
    height: 80vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.success-modal-content::-webkit-scrollbar {
    width: 6px;
}

.success-hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 60px 20px;
    z-index: 10;
}

.success-hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.success-hero h1 span {
    background: linear-gradient(to bottom, #fff 30%, #64748b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-hero p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    max-width: 600px;
    color: #94a3b8;
    margin: 0 auto;
}

.success-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 60px;
    position: relative;
    z-index: 5;
    overflow-x: hidden;
}

.success-section {
    margin-bottom: 80px;
    position: relative;
}

.success-section h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    font-weight: 700;
}

.success-section h2 span {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-separator {
    height: 10vh; /* Reduced height, no image */
    border-radius: 24px;
    margin: 40px 0;
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-parallax {
    background-image: url('images/aag_parallax_bg.png'); /* Updated path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 140%; /* More height for scroll room */
    width: 100%;
    position: absolute;
    top: -20%; /* Offset for parallax */
    left: 0;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    filter: brightness(0.7) contrast(1.1); /* Enhance depth */
}


/* Ensure text is above background */
.success-hero, .success-container {
    position: relative;
    z-index: 10;
}


.record-row {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
    font-weight: 600;
}

/* Table Enhancements */
.stats-table-container {
    overflow-x: auto;
    margin-top: 40px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-table-container table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px; /* Ensure columns don't crush on desktop */
}

@media (max-width: 600px) {
    .stats-table-container table {
        min-width: 100%;
        font-size: 0.85rem;
    }
}

.stats-table-container th, 
.stats-table-container td {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    .stats-table-container th, 
    .stats-table-container td {
        padding: 12px 10px;
    }
}

.stats-table-container th {
    background: rgba(79, 70, 229, 0.1);
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stats-table-container tr:last-child td {
    border-bottom: none;
}

.stats-table-container tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 480px) {
    .glass-card {
        padding: 20px 12px;
        border-radius: 20px;
    }
    
    .success-container {
        padding: 0 10px 40px !important;
    }
    
    .stats-table-container {
        margin-top: 20px;
        border-radius: 12px;
    }
    
    .stats-table-container th, 
    .stats-table-container td {
        padding: 10px 6px !important;
        font-size: 0.7rem !important;
    }

    .stats-table-container th {
        letter-spacing: 0.5px;
    }

    /* Shorten headers via CSS */
    .stats-table-container th span.long { display: none; }
    .stats-table-container th span.short { display: inline; }
}

@media (min-width: 481px) {
    .stats-table-container th span.short { display: none; }
}


.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.metric-card {
    padding: 40px 20px;
    text-align: center;
}

.metric-value {
    font-size: 3rem;
    font-weight: 800;
    color: #f59e0b;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 1rem;
    color: #94a3b8;
}

.trend-item {
    margin-bottom: 24px;
    padding: 24px;
    border-left: 3px solid #4f46e5;
    background: rgba(255,255,255,0.02);
    border-radius: 0 16px 16px 0;
}

.footer-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to top, rgba(79, 70, 229, 0.1) 0%, transparent 100%);
    border-radius: 24px;
}

/* Purple Parallax Stars */
.stars-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Above hero-parallax (0) but below content (5) */
    overflow: hidden;
}

.star-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
}

.layer-1 {
    background-image: 
        radial-gradient(3px 3px at 20px 30px, #a855f7, transparent),
        radial-gradient(2px 2px at 80px 140px, #d8b4fe, transparent),
        radial-gradient(2.5px 2.5px at 150px 50px, #8b5cf6, transparent),
        radial-gradient(3px 3px at 220px 190px, #a855f7, transparent),
        radial-gradient(2px 2px at 280px 100px, #d8b4fe, transparent),
        radial-gradient(2.5px 2.5px at 350px 250px, #8b5cf6, transparent),
        radial-gradient(3px 3px at 420px 40px, #a855f7, transparent),
        radial-gradient(2px 2px at 480px 300px, #d8b4fe, transparent);
    background-size: 400px 400px;
    opacity: 0.8;
}

.layer-2 {
    background-image: 
        radial-gradient(5px 5px at 40px 80px, #a855f7, transparent),
        radial-gradient(4px 4px at 120px 280px, #d8b4fe, transparent),
        radial-gradient(6px 6px at 200px 150px, #8b5cf6, transparent),
        radial-gradient(5px 5px at 300px 350px, #a855f7, transparent),
        radial-gradient(4px 4px at 400px 100px, #d8b4fe, transparent),
        radial-gradient(6px 6px at 500px 450px, #8b5cf6, transparent);
    background-size: 500px 500px;
    opacity: 0.6;
    filter: blur(0.5px);
}

.layer-3 {
    background-image: 
        radial-gradient(12px 12px at 100px 200px, #a855f7, transparent),
        radial-gradient(10px 10px at 300px 500px, #d8b4fe, transparent),
        radial-gradient(11px 11px at 500px 150px, #8b5cf6, transparent);
    background-size: 700px 700px;
    opacity: 0.4;
    filter: blur(1.5px);
}


/* Aisha Tips Carousel */
.aisha-carousel-section {
    margin: 80px 0;
    text-align: center;
}

.aisha-carousel-container {
    height: 400px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 60px 60px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(79, 70, 229, 0.1);
}

.aisha-carousel-container::before {
    content: "💡";
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 2.5rem;
    opacity: 0.3;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    z-index: 5;
}

.aisha-tip-list {
    list-style: none;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0;
    margin: 0;
}

.aisha-tip-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(20px);
}

.aisha-tip-item.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.aisha-tip-content {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--text-main);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* Progress Bar */
.aisha-carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.aisha-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.1s linear;
}

/* Navigation Buttons */
.aisha-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
}

.aisha-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary-glow);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.aisha-prev-btn { left: 15px; }
.aisha-next-btn { right: 15px; }

@media (max-width: 768px) {
    .aisha-carousel-container {
        height: 500px;
        padding: 40px 15px;
    }
    .aisha-tip-content {
        font-size: 1.1rem;
    }
    .aisha-carousel-container::before {
        font-size: 1.8rem;
        top: 15px;
        left: 15px;
    }
    .aisha-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    .aisha-prev-btn { left: 5px; }
    .aisha-next-btn { right: 5px; }
}
