/* ======================================== */
/* CENTRALIZED DESIGN TOKENS & GLOBAL STYLES */
/* ======================================== */

/* Design Tokens */
:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #00cec9 0%, #0984e3 30%, #00b894 60%, #55efc4 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #ffa07a 100%);
    --water-gradient: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
    --accent-gradient: linear-gradient(135deg, #00cec9 0%, #0984e3 100%);
    --warning-gradient: linear-gradient(135deg, #d63031 0%, #ff7675 100%);
    --success-gradient: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
    
    /* Backgrounds */
    --bg-dark: rgba(15, 12, 41, 0.95);
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-overlay: rgba(255, 255, 255, 0.05);
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.5);
    
    /* Borders */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(0, 184, 148, 0.3);
    
    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
    --font-size-xs: 0.85rem;
    --font-size-sm: 0.9rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.3rem;
    --font-size-2xl: 1.8rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3.5rem;
    --font-size-5xl: 4rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-xl: 30px;
    --radius-full: 50px;
    --radius-circle: 50%;
    
    /* Shadows */
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 15px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.4);
    --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    padding: var(--spacing-md);
    overflow-x: hidden;
    color: var(--text-white);
}

/* Background Particles */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; }
.particle:nth-child(2) { left: 15%; animation-delay: 2s; }
.particle:nth-child(3) { left: 25%; animation-delay: 4s; }
.particle:nth-child(4) { left: 35%; animation-delay: 1s; }
.particle:nth-child(5) { left: 45%; animation-delay: 3s; }
.particle:nth-child(6) { left: 55%; animation-delay: 5s; }
.particle:nth-child(7) { left: 65%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 75%; animation-delay: 4.5s; }
.particle:nth-child(9) { left: 85%; animation-delay: 1.5s; }
.particle:nth-child(10) { left: 95%; animation-delay: 3.5s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    color: var(--text-white);
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.6));
    border-radius: 50%;
}

.title-group {
    position: relative;
}

.main-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-5xl);
    font-weight: 900;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    text-shadow: none;
    position: relative;
    letter-spacing: -1px;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: var(--secondary-gradient);
    border-radius: 3px;
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
        width: 150px;
    }
    50% {
        opacity: 1;
        width: 220px;
    }
}

.subtitle {
    font-size: var(--font-size-xl);
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 1.75rem;
}

/* Section Title */
.section-title {
    color: var(--text-white);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-3xl);
    font-family: var(--font-primary);
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Files Grid */
.files-section {
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

/* File Card */
.file-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.file-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.file-card:hover::before {
    left: 100%;
}

.file-icon {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-md);
    display: block;
    animation: bounce 2s infinite;
}

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

.file-card h3 {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    font-size: 1.8rem;
    font-family: var(--font-primary);
    font-weight: 700;
}

.file-card p {
    color: var(--text-muted);
    font-size: var(--font-size-lg);
    line-height: 1.6;
}

/* Team Button */
.team-button {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 25px 40px;
    font-size: 1.3rem;
    border-radius: 15px;
    cursor: pointer;
    width: 100%;
    transition: var(--transition-bounce);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
    font-family: var(--font-secondary);
    font-weight: 400;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.team-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.team-button:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6), 0 10px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%);
    border-color: rgba(102, 126, 234, 0.6);
}

.team-button:hover::before {
    left: 100%;
}

.team-button:active {
    transform: scale(0.98);
}

.team-button strong {
    color: #ffd700;
    font-weight: 700;
}

/* Team Modal */
.team-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.team-modal.active {
    display: flex;
}

.team-modal-content {
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.team-modal-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-light);
}

.team-modal-header h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--spacing-xs);
}

.team-modal-header p {
    color: var(--text-muted);
    font-size: var(--font-size-base);
}

.team-modal-section {
    margin-bottom: var(--spacing-md);
}

.team-modal-section h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.team-modal-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.team-modal-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.team-modal-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin-bottom: 8px;
}

.team-modal-info p:last-child {
    margin-bottom: 0;
}

.team-modal-info strong {
    color: #ffd700;
    font-weight: 600;
}

.team-modal-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
}

.team-modal-member {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    position: relative;
}

.team-modal-member:hover {
    transform: translateY(-5px);
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.team-modal-member-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    display: block;
    position: relative;
    line-height: 1;
}

.team-modal-member[data-has-tassel="true"] .team-modal-member-icon::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    background: #1a1a1a;
    box-shadow: 
        -12px -1px 0 0 #1a1a1a,
        12px -1px 0 0 #1a1a1a,
        0 3px 0 0 #1a1a1a,
        0 6px 3px rgba(0,0,0,0.4);
    z-index: 5;
}

.team-modal-member[data-has-tassel="true"] .team-modal-member-icon::after {
    content: '';
    position: absolute;
    top: 3px;
    right: calc(50% - 10px);
    width: 2px;
    height: 16px;
    background: linear-gradient(180deg, #ffd700, #b8860b);
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
    z-index: 6;
}

.team-modal-member-name {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
}

.team-modal-supervisor {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.supervisor-figure {
    position: relative;
    font-size: 3rem;
    margin-bottom: var(--spacing-xs);
}

.supervisor-figure::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 6px;
    background: linear-gradient(90deg, #ffd700, #b8860b, #ffd700);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.supervisor-figure::before {
    content: '🏅';
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 1.2rem;
}

.supervisor-name {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 700;
}

.supervisor-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.team-modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--text-white);
    font-size: 1.5rem;
    line-height: 1;
}

.team-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-dim);
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-md);
    font-size: var(--font-size-sm);
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Language Selector (custom UI) */
.language-selector {
    position: fixed;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    z-index: 2000;
    font-family: var(--font-secondary);
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-white);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(212, 255, 0, 0.5);
}

.language-btn .globe { font-size: 1.2rem; }

.language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    max-height: 400px;
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 255, 0, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.language-dropdown.active { 
    display: block; 
    animation: fadeIn 0.3s ease; 
}

.language-search { 
    padding: var(--spacing-sm); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.language-search input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-normal);
}

.language-search input::placeholder { color: var(--text-muted); }
.language-search input:focus { border-color: rgba(212, 255, 0, 0.5); }

.language-list { 
    max-height: 320px; 
    overflow-y: auto; 
    padding: 8px; 
}

.language-list::-webkit-scrollbar { width: 6px; }
.language-list::-webkit-scrollbar-track { background: transparent; }
.language-list::-webkit-scrollbar-thumb { 
    background: rgba(212, 255, 0, 0.3); 
    border-radius: 3px; 
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.language-option:hover { 
    background: rgba(212, 255, 0, 0.15); 
}

.language-option.selected {
    background: rgba(212, 255, 0, 0.2);
    border: 1px solid rgba(212, 255, 0, 0.3);
}

.language-option .flag { 
    font-size: 1.3rem; 
    width: 28px; 
    text-align: center; 
}

.language-option .lang-name { 
    color: var(--text-white); 
    font-size: 0.9rem; 
}

.no-results {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Quiz Card */
#quiz-card {
    background: var(--bg-overlay);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 5px;
}

/* Quiz Options */
.options-grid {
    display: grid;
    gap: var(--spacing-sm);
}

button.opt-btn {
    padding: 18px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-overlay);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition-bounce);
    color: var(--text-white);
    outline: none;
    backdrop-filter: blur(10px);
}

button.opt-btn:hover:not(:disabled) {
    border-color: var(--border-accent);
    background: rgba(0, 184, 148, 0.15);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.3);
}

button.correct {
    background: var(--success-gradient) !important;
    color: var(--text-white) !important;
    border-color: #00b894 !important;
    box-shadow: 0 0 30px rgba(0, 184, 148, 0.5);
}

button.wrong {
    background: var(--warning-gradient) !important;
    color: var(--text-white) !important;
    border-color: #d63031 !important;
    box-shadow: 0 0 30px rgba(214, 48, 49, 0.5);
}

#result-area {
    display: none;
}

.score-circle {
    font-size: 4rem;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: var(--spacing-md) 0;
    font-family: var(--font-primary);
}

/* Buttons */
.reload-btn, .back-btn {
    margin-top: var(--spacing-md);
    padding: 18px 40px;
    background: var(--accent-gradient);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-bounce);
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.reload-btn:hover, .back-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 184, 148, 0.5);
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.back-btn:hover::before {
    left: 100%;
}

.back-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Content Header */
.content-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.content-icon {
    font-size: 3.5rem;
    animation: bounce 2s infinite;
}

.content-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    .subtitle { font-size: 1rem; letter-spacing: 2px; }
    
    .container { padding: var(--spacing-md); }
    
    .content-title { font-size: 1.8rem; }
    
    .logo-wrapper { width: 140px; height: 140px; }
    
    #quiz-card { padding: var(--spacing-lg) var(--spacing-md); }
    
    h2 { font-size: 1.2rem; }
    
    button.opt-btn { padding: 15px 18px; font-size: 1rem; }
    
    .back-btn { padding: 15px 30px; font-size: 1rem; }
    
    .files-grid { grid-template-columns: 1fr; }
    
    .section-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .main-title { font-size: 2rem; }
    
    .content-header { flex-direction: column; text-align: center; }
    
    .content-icon { font-size: 2.5rem; }
    
    .container { padding: var(--spacing-sm); }
    
    #quiz-card { padding: var(--spacing-md) var(--spacing-sm); }
    
    h2 { 
        font-size: 1.1rem; 
        min-height: 3.5rem; 
    }
    
    button.opt-btn { 
        padding: 14px 16px; 
        font-size: 0.95rem; 
    }
    
    .team-button { 
        padding: 20px 30px; 
        font-size: 1.1rem; 
    }
    
    .language-dropdown { width: 280px; }
}

/* ======================================== */
/* GOOGLE TRANSLATE WIDGET CUSTOMIZATION */
/* ======================================== */

/* ======================================== */
/* GOOGLE TRANSLATE WIDGET */
/* ======================================== */

/* Google Translate element - positioned where original button was */
#google_translate_element {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    font-family: 'Inter', sans-serif;
}

/* Clean dropdown styling */
.goog-te-gadget {
    font-family: 'Inter', sans-serif !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 25px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.goog-te-gadget:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(0, 184, 216, 0.5) !important;
}

.goog-te-gadget-simple {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.goog-te-combo {
    background: rgba(15, 12, 41, 0.95) !important;
    color: white !important;
    border: 1px solid rgba(0, 184, 216, 0.5) !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    outline: none !important;
    cursor: pointer !important;
    min-width: 100px !important;
    height: 32px !important;
    transition: all 0.3s ease !important;
}

.goog-te-combo:hover {
    border-color: rgba(0, 184, 216, 0.8) !important;
}

.goog-te-menu-value {
    color: white !important;
    font-size: 0.9rem !important;
}

.goog-te-menu-value span:first-child {
    display: none !important;
}

.goog-te-menu-frame {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.goog-te-menu-item {
    font-family: 'Inter', sans-serif !important;
    color: white !important;
    padding: 10px 15px !important;
    transition: background 0.2s ease !important;
}

.goog-te-menu-item:hover {
    background: rgba(0, 184, 216, 0.3) !important;
}

.goog-te-menu-item img {
    margin-right: 10px !important;
    border-radius: 3px !important;
}

/* Mobile positioning */
@media (max-width: 768px) {
    #google_translate_element {
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .goog-te-combo {
        min-width: 80px !important;
        font-size: 0.8rem !important;
    }
}