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

:root {
    --primary-color: #00ffff;
    --secondary-color: #ff00ff;
    --accent-color: #ffff00;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #d0d0d0;
    --border-color: rgba(0, 255, 255, 0.3);
    --glow-primary: 0 0 20px rgba(0, 255, 255, 0.5);
    --glow-secondary: 0 0 20px rgba(255, 0, 255, 0.5);
    --glow-accent: 0 0 20px rgba(255, 255, 0, 0.5);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
.accent {
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
}

/* Pixel Art Character */
.pixel-art-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
}

.pixel-character {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 40%, var(--primary-color) 40%, var(--primary-color) 60%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, var(--secondary-color) 40%, var(--secondary-color) 60%, transparent 60%);
    background-size: 20px 20px;
    animation: pixel-walk 2s steps(4) infinite;
    image-rendering: pixelated;
}

@keyframes pixel-walk {
    0%, 100% { transform: translateX(0) scale(1); }
    25% { transform: translateX(5px) scale(1.1); }
    50% { transform: translateX(0) scale(1); }
    75% { transform: translateX(-5px) scale(0.9); }
}

/* Micro Copy */
.micro-copy {
    font-size: 1rem;
    color: #e0e0e0;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(0, 255, 255, 0.15);
    border-left: 3px solid var(--primary-color);
    border-radius: 5px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .micro-copy {
        font-size: 0.85rem;
        padding: 0.4rem;
        margin-bottom: 0.75rem;
        line-height: 1.25;
    }
}

@media (max-width: 480px) {
    .micro-copy {
        font-size: 0.8rem;
        padding: 0.35rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
}

/* Slider Styles */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.slider-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    text-shadow: var(--glow-primary);
}

.slider-input {
    width: 100%;
    height: 8px;
    background: var(--darker-bg);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--glow-primary);
}

.slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--glow-primary);
}

.slider-number-input {
    width: 100%;
    padding: 0.5rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
}

/* Multiple Choice Styles */
.option-container {
    display: flex;
    align-items: center;
    margin: 0.4rem 0;
    padding: 0.4rem 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.option-container:hover {
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
}

.option-checkbox,
.option-radio {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.option-label {
    flex: 1;
    cursor: pointer;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.other-input-container {
    margin: 0.5rem 0;
    padding: 0.5rem 0.5rem 0.75rem 0.5rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.other-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--darker-bg);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 400;
    margin-top: 0.5rem;
    min-height: 56px;
    line-height: 1.4;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.25);
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.other-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    outline: none;
}

/* Decision Maker Fields */
.decision-maker-container {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
}

.decision-maker-input {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.decision-maker-input:focus {
    border-color: var(--secondary-color);
    box-shadow: var(--glow-secondary);
    outline: none;
}

/* CTA Styles */
.cta-container {
    margin: 1rem 0;
    padding: 0;
    background: transparent;
    border: none;
    text-align: center;
    flex-shrink: 0;
}

.cta-container h3 {
    color: #00ffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

.cta-container p {
    color: #00ffff;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.cta-button {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #00ffff;
    padding: 12px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: #00ffff !important;
    box-shadow: 
        0 0 0 1px #008080,
        0 2px 0 #000,
        0 4px 0 #808080,
        0 0 10px rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
    animation: neonGlow 3s ease-in-out infinite;
    border-radius: 0;
    flex-shrink: 0;
}

.cta-button:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 1px #008080,
        0 4px 0 #000,
        0 6px 0 #808080,
        0 0 20px rgba(0, 255, 255, 0.6);
    text-shadow: 0 0 10px rgba(0, 255, 255, 1);
    animation: none;
}

/* Results Screen Styles */
#resultsDetails {
    color: var(--primary-color);
    font-weight: 500;
}

#resultsDetails .result-item {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

#resultsDetails .result-label {
    color: var(--primary-color);
    font-weight: 600;
}

#resultsDetails .result-value {
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
}

/* Score Display */
.score-display {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    min-width: 150px;
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.score-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
}

/* Loading Screen - Black Background */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.welcome-text {
    text-align: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.6rem;
    color: #FFFFFF;
    text-shadow: 0 0 10px #FFFFFF;
}

.welcome-text .typing-text {
    color: #FFFFFF;
}

.welcome-text .cursor {
    color: #FFFFFF;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Main Content */
.main-content {
    min-height: 100vh;
    position: relative;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.nav-stats {
    display: flex;
    gap: 2rem;
}

.nav-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.nav-stats .stat-item i {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    animation: title-glow 2s ease-in-out infinite alternate;
}

@keyframes title-glow {
    0% { text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
    100% { text-shadow: 0 0 30px rgba(0, 255, 255, 0.8); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: var(--glow-primary);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cyber-circle {
    position: relative;
    width: 300px;
    height: 300px;
}

.circle-ring {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.circle-ring:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.circle-ring:nth-child(2) {
    width: 250px;
    height: 250px;
    top: 25px;
    left: 25px;
    animation-delay: -3s;
    border-color: var(--secondary-color);
}

.circle-ring:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 0;
    left: 0;
    animation-delay: -6s;
    border-color: var(--accent-color);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Quiz Section */
.quiz-section {
    background: var(--darker-bg);
    min-height: 100vh;
    padding: 120px 0 100px;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-primary);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.quiz-info {
    flex: 1;
}

.question-counter {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: var(--glow-primary);
}

.quiz-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.stat-item i {
    color: var(--primary-color);
}

.question-container {
    margin-bottom: 2rem;
}

.question-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.9rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.4;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 255, 255, 0.3);
    letter-spacing: 0.3px;
}

.options-container {
    display: grid;
    gap: 1rem;
}

.option-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.option-btn:hover {
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.option-btn.selected {
    background: linear-gradient(135deg, #0080ff 0%, #004080 100%);
    color: #ffffff !important;
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 1);
}

.option-btn.correct {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.option-btn.incorrect {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.quiz-controls {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Question Label (first page) */
.question-label {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 255, 255, 0.4);
    letter-spacing: 0.3px;
}

/* Text Input Fields */
.text-input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.text-input-field {
    background: #1a1a1a;
    border: 2px solid #00ffff;
    border-radius: 0;
    padding: 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    color: #ffffff !important;
    font-weight: 500;
    outline: none;
    box-shadow: 
        inset 2px 2px 0 rgba(0,0,0,0.3),
        0 0 10px rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.text-input-field:focus {
    border-color: #00ffff;
    box-shadow: 
        inset 2px 2px 0 rgba(0,0,0,0.3), 
        0 0 20px rgba(0, 255, 255, 0.8),
        0 0 30px rgba(0, 255, 255, 0.4);
}

.text-input-field::placeholder {
    color: #008080 !important;
    font-size: 0.8rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
}



/* Quiz Results */
.quiz-results {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
}

.results-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.final-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.score-number {
    font-family: 'Press Start 2P', monospace;
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
    line-height: 1;
}

.score-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.results-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.result-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-accent {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: var(--dark-bg);
    box-shadow: var(--glow-accent);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.8);
}

/* Leaderboard Section */
.leaderboard-section {
    background: var(--dark-bg);
    padding: 100px 0;
}

.leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-table {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px;
    background: rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.header-item {
    padding: 1rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: var(--primary-color);
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.header-item:last-child {
    border-right: none;
}

.table-body {
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-entry {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    background: rgba(0, 255, 255, 0.05);
}

.leaderboard-entry:last-child {
    border-bottom: none;
}

.entry-item {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid var(--border-color);
    font-family: 'Poppins', sans-serif;
}

.entry-item:last-child {
    border-right: none;
}

.entry-position {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.entry-name {
    color: var(--text-primary);
    font-weight: 600;
}

.entry-score {
    font-family: 'Press Start 2P', monospace;
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
}

.entry-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Quiz Dialog Box - 90s Style */
.quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.dialog-box {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    border: 3px solid #00ffff;
    border-radius: 0;
    box-shadow: 
        0 0 0 2px #008080,
        0 0 0 4px #000,
        0 0 20px rgba(0, 255, 255, 0.4),
        0 0 40px rgba(0, 255, 255, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    overflow: hidden;
    font-family: 'Press Start 2P', monospace;
    animation: dialogSlideIn 0.4s ease;
    display: flex;
    flex-direction: column;
}

@keyframes dialogSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.dialog-header {
    background: linear-gradient(90deg, #000080 0%, #0000a0 100%);
    color: #00ffff;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00ffff;
    font-size: 0.7rem;
    text-shadow: 0 0 10px #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.dialog-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dialog-icon {
    font-size: 1rem;
}

.dialog-controls {
    display: flex;
    gap: 4px;
}

.control-btn {
    width: 16px;
    height: 16px;
    background: #c0c0c0;
    border: 1px solid #000;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: #e0e0e0;
    color: #000000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.control-btn.close:hover {
    background: #ff0000;
    color: #ffffff !important;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

.dialog-content {
    padding: 20px;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #00ffff;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.dialog-screen {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    position: relative;
}

.dialog-message {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #00ffff !important;
    min-height: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    flex-shrink: 0;
}

.typing-text {
    display: inline;
    color: #00ffff !important;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #00ffff !important;
    animation: blink 1s infinite;
    margin-left: 2px;
    box-shadow: 0 0 10px #00ffff;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes neonGlow {
    0%, 100% {
        box-shadow: 
            0 0 0 1px #008080,
            0 2px 0 #000,
            0 4px 0 #808080,
            0 0 10px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 1px #008080,
            0 2px 0 #000,
            0 4px 0 #808080,
            0 0 20px rgba(0, 255, 255, 0.6),
            0 0 30px rgba(0, 255, 255, 0.4);
    }
}

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

.dialog-btn {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #00ffff;
    padding: 15px 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: #00ffff !important;
    box-shadow: 
        0 0 0 1px #008080,
        0 2px 0 #000,
        0 4px 0 #808080,
        0 0 10px rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
    animation: neonGlow 3s ease-in-out infinite;
}

.dialog-btn:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 1px #008080,
        0 4px 0 #000,
        0 6px 0 #808080,
        0 0 20px rgba(0, 255, 255, 0.6);
    text-shadow: 0 0 10px rgba(0, 255, 255, 1);
    animation: none;
}

.dialog-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 0 0 #000,
        0 2px 0 #808080;
}

.dialog-btn:disabled {
    background: #808080;
    color: #c0c0c0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Quiz Specific Styles */

.question-container {
    margin-bottom: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.question-text {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 10px;
    min-height: 30px;
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 255, 255, 0.7);
    flex-shrink: 0;
    display: block;
    visibility: visible;
    opacity: 1;
    letter-spacing: 0.3px;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 0 5px 20px 5px;
    visibility: visible;
    opacity: 1;
    position: relative;
}

.option-btn {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #00ffff;
    padding: 10px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: #ffffff !important;
    box-shadow: 
        0 0 0 1px #008080,
        0 2px 0 #000,
        0 4px 0 #808080,
        0 0 10px rgba(0, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 255, 255, 0.9);
    animation: neonGlow 3s ease-in-out infinite;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.option-btn:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 1px #008080,
        0 4px 0 #000,
        0 6px 0 #808080,
        0 0 20px rgba(0, 255, 255, 0.6);
    text-shadow: 0 0 10px rgba(0, 255, 255, 1);
    animation: none;
}

.option-btn.selected {
    background: linear-gradient(135deg, #0080ff 0%, #004080 100%);
    color: #ffffff !important;
    box-shadow: 
        0 0 0 1px #008080,
        0 2px 0 #000,
        0 4px 0 #008000,
        0 0 15px rgba(0, 255, 255, 0.8);
    text-shadow: 0 0 8px rgba(255, 255, 255, 1);
}

.option-btn.correct {
    background: linear-gradient(135deg, #00ff00 0%, #00a000 100%);
    color: #000;
    box-shadow: 
        0 2px 0 #000,
        0 4px 0 #008000;
}

.option-btn.incorrect {
    background: linear-gradient(135deg, #ff0000 0%, #a00000 100%);
    color: #fff;
    box-shadow: 
        0 2px 0 #000,
        0 4px 0 #800000;
}

.quiz-controls {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    flex-shrink: 0;
    padding: 10px 0 5px 0;
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

/* Results Styles */
.results-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
    padding: 10px 10px 20px 10px;
    background: transparent;
    border: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.result-label {
    color: #000 !important;
    font-weight: bold;
    font-size: 1.1rem;
}

.result-value {
    color: var(--primary-color);
    font-weight: bold;
}

/* Leaderboard Styles */
.leaderboard-content {
    margin: 20px 0;
}

.leaderboard-table {
    border: 2px solid #000;
    background: #fff;
}

.table-header {
    display: grid;
    grid-template-columns: 50px 1fr 100px;
    background: #000080;
    color: white;
    font-size: 1rem;
    padding: 12px;
}

.header-item {
    text-align: center;
    font-weight: bold;
}

.table-body {
    max-height: 200px;
    overflow-y: auto;
}

.leaderboard-entry {
    display: grid;
    grid-template-columns: 50px 1fr 100px;
    border-bottom: 1px solid #000;
    font-size: 1rem;
    padding: 12px;
}

.leaderboard-entry:hover {
    background: #f0f0f0;
}

.leaderboard-entry:last-child {
    border-bottom: none;
}

.entry-item {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-position {
    font-weight: bold;
    color: #000080;
}

.entry-name {
    color: #000 !important;
    font-weight: bold;
}

.entry-score {
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* General Layout */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 10px 15px;
    }
    
    .nav-logo .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-stats {
        gap: 15px;
    }
    
    .nav-stats .stat-item {
        font-size: 0.8rem;
    }
    
    /* Loading Screen */
    .welcome-text {
        font-size: 1.5rem;
        padding: 0 20px;
    }
    
    /* Dialog Box */
    .dialog-box {
        width: 100%;
        height: 100%;
        margin: 0;
        max-height: none;
    }
    
    .dialog-header {
        padding: 10px 15px;
    }
    
    .dialog-title {
        font-size: 1rem;
    }
    
    .dialog-content {
        padding: 15px;
        flex: 1;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .dialog-message {
        font-size: 0.9rem;
        line-height: 1.3;
        min-height: 30px;
    }
    
    .typing-text {
        font-size: 1rem;
    }
    
    .cursor {
        width: 6px;
        height: 14px;
    }
    
    /* Buttons */
    .dialog-btn {
        font-size: 1rem;
        padding: 12px 18px;
        margin: 5px 0;
    }
    
    .dialog-options {
        gap: 10px;
    }
    
    /* Quiz Elements */
    
    .question-text {
        font-size: 1.1rem;
        line-height: 1.2;
        min-height: 25px;
    }
    
    .question-options {
        gap: 4px;
        padding: 0 3px 20px 3px;
    }
    
    .option-btn {
        font-size: 0.85rem;
        padding: 6px 10px;
        margin: 2px 0;
        min-height: 36px;
        line-height: 1.2;
    }
    
    /* Multiple Choice Options (Checkboxes/Radio) */
    .option-container {
        margin: 0.25rem 0;
        padding: 0.35rem 0.5rem;
        border-radius: 6px;
    }
    
    .option-label {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .option-checkbox,
    .option-radio {
        margin-right: 0.5rem;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
    
    /* Text Input */
    .text-input-field {
        font-size: 1.05rem;
        padding: 12px;
        margin: 5px 0;
    }
    
    /* Quiz Controls */
    .quiz-controls {
        gap: 10px;
        margin-top: 15px;
        padding: 10px 0 5px 0;
        background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
        border-top: 1px solid rgba(0, 255, 255, 0.2);
    }
    
    /* Results */
    .results-details {
        gap: 10px;
        margin: 15px 0;
        padding: 10px;
    }
    
    .result-item {
        font-size: 0.9rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .result-label {
        font-size: 0.9rem;
    }
    
    .result-value {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* General Layout */
    .container {
        padding: 0 10px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 8px 10px;
    }
    
    .nav-logo .logo-text {
        font-size: 1rem;
    }
    
    .nav-stats {
        gap: 10px;
    }
    
    .nav-stats .stat-item {
        font-size: 0.7rem;
    }
    
    /* Loading Screen */
    .welcome-text {
        font-size: 1.2rem;
        padding: 0 15px;
    }
    
    /* Dialog Box */
    .dialog-box {
        width: 100%;
        height: 100%;
        margin: 0;
        max-height: none;
    }
    
    .dialog-header {
        padding: 8px 10px;
    }
    
    .dialog-title {
        font-size: 0.9rem;
    }
    
    .dialog-content {
        padding: 10px;
        flex: 1;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .dialog-message {
        font-size: 0.8rem;
        line-height: 1.2;
        min-height: 25px;
    }
    
    .typing-text {
        font-size: 0.9rem;
    }
    
    .cursor {
        width: 5px;
        height: 12px;
    }
    
    /* Buttons */
    .dialog-btn {
        font-size: 0.95rem;
        padding: 10px 15px;
        margin: 3px 0;
    }
    
    .dialog-options {
        gap: 8px;
    }
    
    /* Quiz Elements */
    
    .question-text {
        font-size: 1rem;
        line-height: 1.1;
        min-height: 20px;
    }
    
    .question-options {
        gap: 3px;
        padding: 0 2px 20px 2px;
    }
    
    .option-btn {
        font-size: 0.7rem;
        padding: 4px 8px;
        margin: 1px 0;
        min-height: 32px;
        line-height: 1.1;
    }
    
    /* Multiple Choice Options (Checkboxes/Radio) */
    .option-container {
        margin: 0.2rem 0;
        padding: 0.3rem 0.4rem;
        border-radius: 5px;
    }
    
    .option-label {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .option-checkbox,
    .option-radio {
        margin-right: 0.4rem;
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
    
    /* Text Input */
    .text-input-field {
        font-size: 0.8rem;
        padding: 10px;
        margin: 3px 0;
    }
    
    /* Quiz Controls */
    .quiz-controls {
        gap: 8px;
        margin-top: 10px;
        padding: 10px 0 5px 0;
        background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
        border-top: 1px solid rgba(0, 255, 255, 0.2);
    }
    
    /* Results */
    .results-details {
        gap: 8px;
        margin: 10px 0;
        padding: 8px;
    }
    
    .result-item {
        font-size: 0.8rem;
        gap: 3px;
    }
    
    .result-label {
        font-size: 0.8rem;
    }
    
    .result-value {
        font-size: 0.8rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .dialog-box {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .dialog-content {
        padding: 5px;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    
    .question-text {
        font-size: 0.95rem;
        line-height: 1.0;
        min-height: 15px;
        margin-bottom: 5px;
    }
    
    .question-options {
        gap: 2px;
        padding: 0 1px 20px 1px;
    }
    
    .option-btn {
        font-size: 0.6rem;
        padding: 3px 6px;
        margin: 0;
        min-height: 28px;
        line-height: 1.0;
    }
    
    /* Multiple Choice Options (Checkboxes/Radio) */
    .option-container {
        margin: 0.15rem 0;
        padding: 0.25rem 0.35rem;
        border-radius: 4px;
    }
    
    .option-label {
        font-size: 0.8rem;
        line-height: 1.15;
    }
    
    .option-checkbox,
    .option-radio {
        margin-right: 0.3rem;
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }
    
    .quiz-controls {
        margin-top: 5px;
        padding: 10px 0 5px 0;
        background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
        border-top: 1px solid rgba(0, 255, 255, 0.2);
    }
    
    .dialog-message {
        font-size: 0.7rem;
        line-height: 1.0;
        min-height: 15px;
    }
    
    .typing-text {
        font-size: 0.7rem;
    }
    
    .dialog-btn {
        font-size: 0.6rem;
        padding: 6px 10px;
    }
    
    .text-input-field {
        font-size: 0.6rem;
        padding: 6px;
    }
    
    .welcome-text {
        font-size: 1rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .dialog-box {
        width: 100%;
        height: 100%;
        max-height: none;
    }
    
    .dialog-content {
        flex: 1;
        max-height: none;
    }
    
    .welcome-text {
        font-size: 1.3rem;
    }
    
    .quiz-info {
        flex-direction: row;
        align-items: center;
    }
    
    .quiz-stats {
        justify-content: flex-end;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .dialog-btn,
    .option-btn,
    .text-input-field {
        border-width: 1px;
    }
    
    .progress-bar {
        border-width: 1px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .dialog-btn,
    .option-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .text-input-field {
        min-height: 44px;
    }
    
    .control-btn {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-primary);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Services Section */
.services {
    background: var(--dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

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

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature {
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

/* Contact Section */
.contact {
    background: var(--darker-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    box-shadow: var(--glow-primary);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 40px;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo .logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: block;
}

.footer-logo p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--glow-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .top-gear-style {
        min-width: 250px;
        padding: 2rem 1.5rem;
    }

    .game-title {
        font-size: 2rem;
    }

    .loading-text {
        font-size: 0.9rem;
    }

    .cyber-circle {
        width: 200px;
        height: 200px;
    }

    .circle-ring:nth-child(1) {
        width: 120px;
        height: 120px;
        top: 40px;
        left: 40px;
    }

    .circle-ring:nth-child(2) {
        width: 150px;
        height: 150px;
        top: 25px;
        left: 25px;
    }

    .circle-ring:nth-child(3) {
        width: 200px;
        height: 200px;
        top: 0;
        left: 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .section-title {
        font-size: 1.8rem;
    }

    .top-gear-style {
        min-width: 200px;
        padding: 1.5rem 1rem;
    }

    .game-title {
        font-size: 1.5rem;
    }

    .loading-text {
        font-size: 0.8rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Video Question Container */
.video-question-container {
    width: 100%;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-question-container video {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 70vh; /* Use 70% of viewport height for better screen usage */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    object-fit: contain; /* Maintain video's natural aspect ratio */
    background: #000000;
    display: block;
    /* Prevent fullscreen */
    position: relative;
    z-index: 1;
}

/* Hide fullscreen button in video controls */
.video-question-container video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

.video-question-container video::-moz-media-controls-fullscreen-button {
    display: none !important;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-play-overlay:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.video-play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #00ffff;
    background-color: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    font-size: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    padding-left: 8px;
    backdrop-filter: blur(5px);
}

.video-play-button:hover {
    background-color: rgba(0, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.8);
}

/* Video responsive adjustments */
@media (max-width: 768px) {
    .video-question-container {
        padding: 0.5rem;
        margin: 1rem 0;
    }
    
    .video-question-container video {
        max-width: 100%;
        border-radius: 8px;
    }
    
    .video-play-button {
        width: 70px;
        height: 70px;
        font-size: 35px;
        padding-left: 6px;
    }
    
    .video-play-overlay {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .video-question-container {
        padding: 0.25rem;
        margin: 0.75rem 0;
    }
    
    .video-question-container video {
        border-radius: 6px;
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.25);
    }
    
    .video-play-button {
        width: 60px;
        height: 60px;
        font-size: 30px;
        padding-left: 5px;
        border-width: 2px;
    }
    
    .video-play-overlay {
        border-radius: 6px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Scheduling Page Styles */
.scheduling-container {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    padding-bottom: 20px;
}

.schedule-button {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
    min-height: 50px !important;
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.3);
    touch-action: manipulation;
}

/* Mobile Responsive Styles for Scheduling */
@media (max-width: 768px) {
    .scheduling-container {
        padding: 20px 15px !important;
    }
    
    .schedule-button {
        padding: 18px 20px !important;
        font-size: 0.95rem !important;
        min-height: 55px !important;
        width: 100% !important;
        margin: 15px 0 !important;
        word-wrap: break-word;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .scheduling-container {
        padding: 15px 10px !important;
    }
    
    .schedule-button {
        padding: 16px 15px !important;
        font-size: 0.9rem !important;
        min-height: 50px !important;
        width: 100% !important;
        margin: 10px 0 !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 360px) {
    .schedule-button {
        padding: 14px 12px !important;
        font-size: 0.85rem !important;
        min-height: 48px !important;
    }
}

/* Ensure question-options has proper spacing for scroll */
.question-options {
    padding-bottom: 20px !important;
}

.scheduling-container h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Calendar Page Styles */
.calendar-container {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    padding-bottom: 20px;
}

.date-selector-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.schedule-date-input {
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.3);
    touch-action: manipulation;
}

/* Mobile Responsive Styles for Calendar */
@media (max-width: 768px) {
    .calendar-container {
        padding: 15px !important;
    }
    
    .calendar-container h2 {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }
    
    .date-selector-container {
        gap: 8px;
    }
    
    .date-selector-container label {
        font-size: 0.95rem !important;
    }
    
    .schedule-date-input {
        padding: 12px !important;
        font-size: 0.95rem !important;
        min-height: 50px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        padding: 12px 10px !important;
    }
    
    .calendar-container h2 {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }
    
    .date-selector-container {
        gap: 6px;
    }
    
    .date-selector-container label {
        font-size: 0.9rem !important;
    }
    
    .schedule-date-input {
        padding: 10px !important;
        font-size: 0.9rem !important;
        min-height: 48px !important;
        max-width: 100% !important;
    }
} 