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

:root {
    --bashkir-green: #00E676; /* Vibrant Green */
    --bashkir-blue: #2979FF;  /* Vibrant Blue */
    --t2-black: #1F1F1F;      /* T2 Dark Background */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #FFFFFF;
    --text-secondary: #B0BEC5;
    --card-bg: rgba(30, 30, 30, 0.6);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0a0a0a;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background Abstract Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: floatShape 20s infinite alternate;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--bashkir-green);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--bashkir-blue);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

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

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none; /* Ensure no underline */
    cursor: default; /* Ensure no pointer cursor if not clickable */
}

.divider {
    color: var(--bashkir-green);
    margin: 0 15px;
    font-size: 24px;
    font-weight: 300;
}

.sub-logo {
    font-weight: 300;
    font-size: 18px;
    color: var(--text-secondary);
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s;
    font-weight: 500;
}

.nav a:hover {
    color: var(--bashkir-green);
}

/* Language Switcher */
.lang-switch-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    transition: all 0.3s;
}

.lang-switch-btn:hover {
    background: var(--bashkir-green);
    color: black;
    border-color: var(--bashkir-green);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

.lang-icon {
    font-size: 1.2rem;
}

/* Logo Animation */
@keyframes logoFloat {
    0% { transform: translateY(0); filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3)); }
    50% { transform: translateY(-5px); filter: drop-shadow(0 15px 35px rgba(0,0,0,0.4)); }
    100% { transform: translateY(0); filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3)); }
}

.brand-logo-img-large {
    height: 120px;
    width: auto;
    margin-bottom: 30px;
    display: inline-block;
    animation: logoFloat 4s ease-in-out infinite; /* Subtle floating animation */
}

.brand-logo-img-small {
    height: 32px;
    width: auto;
    display: block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.logo:hover .brand-logo-img-small {
    transform: scale(1.1) rotate(5deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--bashkir-green);
    text-shadow: 0 0 30px rgba(0, 230, 118, 0.5);
    display: inline-block;
    transition: all 0.3s;
}

.hero-content h1 span:hover {
    transform: scale(1.05);
    text-shadow: 0 0 50px rgba(0, 230, 118, 0.8);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll Arrow */
.scroll-arrow {
    margin-top: 50px;
    cursor: pointer;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.scroll-arrow:hover {
    opacity: 1;
    background: rgba(0, 230, 118, 0.1);
    border-color: var(--bashkir-green);
    transform: translateY(5px);
}

.scroll-arrow svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 5px var(--bashkir-green));
}

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

@keyframes fillText {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Story Card (About Section) */
.story-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: fadeInUp 0.5s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--bashkir-blue), var(--bashkir-green));
}

.story-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

.story-content {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.story-content p {
    margin-bottom: 20px;
}

.story-content strong {
    color: var(--bashkir-green);
    font-size: 1.2rem;
}

/* Locked State */
.locked-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: slideIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

.locked-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.4));
    animation: float 3s ease-in-out infinite;
}

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

.locked-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.locked-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.action-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--bashkir-green);
    color: black;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.3);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 230, 118, 0.5);
    background: white;
}

/* Section Titles - Ensure Centering */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: block; /* Changed from inline-block for better centering */
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--bashkir-green);
    margin: 15px auto 0; /* Auto margins center the line */
    border-radius: 2px;
}

/* Dictionary Section */
.dictionary-section {
    padding: 100px 0;
}

.learning-header {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid var(--glass-border);
}

.progress-wrapper {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--bashkir-green);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    border-radius: 30px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-weight: 600;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--bashkir-green);
    color: black;
    border-color: var(--bashkir-green);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

/* Grid & Cards */
.dictionary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.word-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.word-card:hover {
    transform: translateY(-5px);
    border-color: var(--bashkir-green);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.word-card.learned {
    border-color: var(--bashkir-green);
    background: rgba(0, 230, 118, 0.05);
}

.bashkir-word {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--bashkir-green);
}

.word-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.word-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Alphabet Grid */
.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.letter-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.letter-card:hover {
    transform: translateY(-5px);
    border-color: var(--bashkir-green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.letter-card.learned {
    border-color: var(--bashkir-green);
    background: rgba(0, 230, 118, 0.05);
}

.letter-symbol {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bashkir-green);
    margin-bottom: 10px;
}

.letter-sound {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Map Section */
.culture-section {
    padding: 100px 0;
    text-align: center;
}

.map-container {
    height: 500px;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    background: #f5f5f5; /* Light background as requested */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
}

.map-label {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(20, 20, 20, 0.95);
    color: white;
    padding: 0;
    border-radius: 20px;
    width: 320px;
    max-width: 90%; /* Mobile safe */
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1000;
    font-size: 1rem;
    line-height: 1.5;
    display: none;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideUp 0.3s ease-out;
}

.map-label img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.map-label-content {
    padding: 20px;
}

.map-label strong {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 8px;
    color: var(--bashkir-green);
}

.map-label p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.map-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.map-btn-read, .map-btn-photo {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.map-btn-read:hover, .map-btn-photo:hover {
    background: var(--bashkir-green);
    color: black;
    border-color: var(--bashkir-green);
}

.map-label small {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: 0.75rem;
    text-align: center;
}

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

.tour-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--bashkir-green);
    color: black;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.tour-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.map-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.map-nav-arrow:hover {
    background: var(--bashkir-green);
    color: black;
    border-color: var(--bashkir-green);
}

.map-nav-arrow.left { left: 20px; }
.map-nav-arrow.right { right: 20px; }

/* Coverage Filters */
.coverage-filters {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.filters-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
    border-bottom: 2px solid var(--bashkir-green);
    padding-bottom: 5px;
}

.coverage-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}

.coverage-filters input[type="checkbox"] {
    accent-color: var(--bashkir-green);
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Game Center */
.game-center-wrapper {
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.game-menu-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
}

.game-menu-header p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.game-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--bashkir-green);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.game-card:hover .game-icon {
    transform: scale(1.2) rotate(10deg);
}

.game-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
}

.game-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Active Game / Quiz Styles */
.test-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

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

.test-score-badge {
    background: var(--t2-black);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: var(--bashkir-green);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.test-question-box {
    text-align: center;
    margin-bottom: 40px;
}

.test-label {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.test-word {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.test-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .test-options-grid {
        grid-template-columns: 1fr;
    }
}

.test-option-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.test-option-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    border-color: var(--t2-pink);
}

.test-option-btn.correct {
    background: rgba(0, 230, 118, 0.2) !important;
    border-color: var(--bashkir-green) !important;
    color: var(--bashkir-green) !important;
}

.test-option-btn.wrong {
    background: rgba(255, 59, 48, 0.2) !important;
    border-color: #ff3b30 !important;
    color: #ff3b30 !important;
    opacity: 0.7;
}

.audio-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--t2-pink);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(226, 26, 172, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.audio-play-btn:hover {
    transform: scale(1.1);
}

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

/* Memory Game */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .memory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.memory-card {
    background: transparent;
    aspect-ratio: 3/4;
    perspective: 1000px;
    cursor: pointer;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-front, .memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.memory-card-front {
    background: linear-gradient(135deg, var(--t2-black), #2a2a2a);
    border: 2px solid var(--t2-pink);
    color: var(--t2-pink);
    font-size: 2rem;
    font-weight: bold;
}

.memory-card-back {
    background: white;
    color: var(--t2-black);
    transform: rotateY(180deg);
    font-weight: bold;
    border: 2px solid var(--bashkir-green);
}

.memory-card.matched .memory-card-inner {
    opacity: 0.5;
    transform: rotateY(180deg) scale(0.95);
}

/* Locked State */
.locked-card {
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 50px 20px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.locked-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.locked-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.locked-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.action-btn {
    background: var(--t2-pink);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(226, 26, 172, 0.4);
}

.test-final-score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bashkir-green);
    margin-bottom: 20px;
}

/* Recommendations Section */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.rec-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.rec-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border-color: var(--bashkir-green);
}

.rec-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.rec-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.2);
}

.rec-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rec-content h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.rec-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.rec-btn {
    background: transparent;
    border: 1px solid var(--t2-pink);
    color: var(--t2-pink);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
    font-weight: 600;
}

.rec-btn:hover {
    background: var(--t2-pink);
    color: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 0;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Header & Nav */
    .header {
        padding: 15px 0;
        background: rgba(10, 10, 10, 0.95); /* More solid for readability */
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        margin-bottom: 5px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav a {
        margin-left: 0;
        margin: 0 10px;
        font-size: 0.9rem;
    }

    .lang-switch-btn {
        margin-left: 10px;
        padding: 6px 12px;
    }

    /* Hero Section */
    .hero {
        padding-top: 140px; /* More space for stacked header */
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .brand-logo-img-large {
        height: 80px;
        margin-bottom: 20px;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    /* General Layout */
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    /* Grids */
    .dictionary-grid,
    .recommendations-grid,
    .game-modes-grid {
        grid-template-columns: 1fr; /* Force single column on mobile */
        gap: 20px;
    }
    
    .map-container {
        height: 350px;
    }
    
    /* Test/Game Specifics */
    .test-card, .locked-card {
        padding: 20px;
    }
    
    .test-word {
        font-size: 2rem;
    }
    
    .memory-grid {
        gap: 10px;
    }
    
    .memory-card-front {
        font-size: 1.5rem;
    }
    
    .story-card {
        padding: 30px;
    }

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

/* Welcome Modal */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.welcome-modal.active {
    opacity: 1;
    visibility: visible;
}

.welcome-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.welcome-modal.active .welcome-content {
    transform: translateY(0);
}

.welcome-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--bashkir-blue), var(--bashkir-green));
}

.welcome-logo {
    height: 60px;
    margin-bottom: 20px;
}

.welcome-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.welcome-body p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.welcome-features {
    text-align: left;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--glass-border);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    color: white;
    margin-bottom: 5px;
    font-size: 1rem;
}

.feature-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.welcome-btn {
    background: var(--bashkir-green);
    color: black;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.3);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 230, 118, 0.5);
    background: white;
}

/* Mobile Responsiveness for Welcome Modal */
@media (max-width: 768px) {
    .welcome-content {
        padding: 30px 20px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto; /* Handle small screens/landscape */
    }

    .welcome-logo {
        height: 50px;
        margin-bottom: 15px;
    }

    .welcome-header h2 {
        font-size: 1.5rem;
    }

    .welcome-body p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .welcome-features {
        padding: 15px;
        margin-bottom: 20px;
    }

    .feature-item {
        gap: 12px;
        margin-bottom: 15px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .feature-text strong {
        font-size: 0.95rem;
    }

    .feature-text p {
        font-size: 0.85rem;
    }

    .welcome-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
    }
}

