/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-primary: 0 10px 25px rgba(99, 102, 241, 0.3);
    --shadow-secondary: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.nav-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-numbers {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-numbers .number {
    position: absolute;
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-numbers .number:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-numbers .number:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.floating-numbers .number:nth-child(3) { top: 40%; left: 5%; animation-delay: 2s; }
.floating-numbers .number:nth-child(4) { top: 60%; right: 10%; animation-delay: 3s; }
.floating-numbers .number:nth-child(5) { top: 80%; left: 20%; animation-delay: 4s; }
.floating-numbers .number:nth-child(6) { top: 15%; left: 50%; animation-delay: 5s; }
.floating-numbers .number:nth-child(7) { top: 70%; right: 30%; animation-delay: 0.5s; }
.floating-numbers .number:nth-child(8) { top: 30%; left: 80%; animation-delay: 1.5s; }
.floating-numbers .number:nth-child(9) { top: 50%; left: 30%; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-main {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.title-sub {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: -0.5rem;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
    to { text-shadow: 0 0 30px rgba(99, 102, 241, 0.8), 0 0 40px rgba(99, 102, 241, 0.3); }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--darker-bg);
}

.section-title {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-secondary);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Game Preview Section */
.game-preview {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.preview-text h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.rules-list {
    list-style: none;
    margin-bottom: 2rem;
}

.rules-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.rules-list i {
    color: var(--success-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.mini-sudoku {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-secondary);
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.mini-cell {
    background: var(--dark-bg);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.2rem;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: var(--darker-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.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 {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--darker-bg);
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--error-color);
    color: white;
}

.game-container {
    padding: 2rem;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.difficulty-selector label {
    color: var(--text-primary);
    font-weight: 500;
}

.difficulty-selector select {
    background: var(--dark-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.game-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-game {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-game:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.sudoku-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.sudoku-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 2px;
    background: var(--border-color);
    border: 3px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    max-width: 500px;
    width: 100%;
}

.sudoku-cell {
    aspect-ratio: 1;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sudoku-cell:hover {
    background: var(--card-bg);
}

.sudoku-cell.selected {
    background: var(--primary-color);
    color: white;
}

.sudoku-cell.given {
    background: var(--darker-bg);
    color: var(--accent-color);
    cursor: default;
}

.sudoku-cell.error {
    background: var(--error-color);
    color: white;
}

.sudoku-cell.correct {
    background: var(--success-color);
    color: white;
}

.sudoku-cell:nth-child(3n) {
    border-right: 3px solid var(--primary-color);
}

.sudoku-cell:nth-child(n+19):nth-child(-n+27),
.sudoku-cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom: 3px solid var(--primary-color);
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-secondary);
}

.game-info div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.game-info i {
    color: var(--primary-color);
}

/* Page-specific styles */
.page-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    text-align: center;
}

.page-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 2rem 0 1rem;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-list i {
    color: var(--success-color);
    margin-right: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-secondary);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.team-section {
    padding: 6rem 0;
    background: var(--darker-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-secondary);
    border-color: var(--primary-color);
}

.member-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.team-member h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-secondary);
    line-height: 1.6;
}

.history-section {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 0;
    border: 4px solid var(--dark-bg);
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-date {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.values-section {
    padding: 6rem 0;
    background: var(--darker-bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-secondary);
    border-color: var(--primary-color);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.value-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-item::before {
        left: 10px !important;
        right: auto !important;
    }
}

/* Contact page styles */
.contact-content {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    gap: 2rem;
}

.contact-method {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-secondary);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.contact-details h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: transparent;
}

.email-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.contact-sidebar {
    display: grid;
    gap: 2rem;
}

.response-time {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.response-time h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.time-item i {
    color: var(--accent-color);
    width: 20px;
}

.faq-preview {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.faq-preview h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.additional-info {
    padding: 6rem 0;
    background: var(--darker-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-secondary);
    border-color: var(--primary-color);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.info-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Contact page responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
}

/* Privacy Policy page styles */
.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

.privacy-content {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.privacy-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.privacy-main {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.privacy-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.privacy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.privacy-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.privacy-section h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--accent-color);
    margin: 2rem 0 1rem;
}

.privacy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.privacy-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
}

.privacy-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.usage-table {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.usage-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.usage-purpose {
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
}

.usage-description {
    color: var(--text-secondary);
}

.ccpa-table {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.ccpa-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.ccpa-category {
    font-weight: 600;
    color: var(--accent-color);
    font-family: 'Orbitron', monospace;
}

.ccpa-description {
    color: var(--text-secondary);
}

.contact-info {
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-info strong {
    color: var(--text-primary);
}

.privacy-sidebar {
    display: grid;
    gap: 2rem;
}

.sidebar-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.sidebar-section h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.nav-links {
    list-style: none;
    padding: 0;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.rights-summary {
    display: grid;
    gap: 1rem;
}

.right-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.right-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.right-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.right-item span {
    color: var(--text-secondary);
    font-weight: 500;
}

.protection-badges {
    display: grid;
    gap: 1rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.badge:hover {
    border-color: var(--success-color);
    transform: translateY(-2px);
}

.badge i {
    color: var(--success-color);
    font-size: 1.2rem;
    width: 20px;
}

.badge span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Privacy page responsive */
@media (max-width: 768px) {
    .privacy-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .privacy-main {
        padding: 2rem;
    }
    
    .usage-item,
    .ccpa-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .usage-purpose,
    .ccpa-category {
        font-size: 0.9rem;
    }
}

/* Terms of Service page styles */
.terms-content {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.terms-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.terms-main {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.terms-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.terms-section h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--accent-color);
    margin: 2rem 0 1rem;
}

.terms-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.terms-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
}

.terms-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.prohibited-uses {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.prohibited-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--error-color);
}

.prohibited-item i {
    color: var(--error-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.prohibited-item span {
    color: var(--text-secondary);
    line-height: 1.6;
}

.terms-sidebar {
    display: grid;
    gap: 2rem;
}

.key-points {
    display: grid;
    gap: 1rem;
}

.point-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.point-item:hover {
    border-color: var(--success-color);
    transform: translateX(5px);
}

.point-item i {
    color: var(--success-color);
    font-size: 1.2rem;
    width: 20px;
}

.point-item span {
    color: var(--text-secondary);
    font-weight: 500;
}

.related-docs {
    display: grid;
    gap: 1rem;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.doc-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

.doc-link i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.doc-link span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Terms page responsive */
@media (max-width: 768px) {
    .terms-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .terms-main {
        padding: 2rem;
    }
    
    .prohibited-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Game page styles */
.game-header {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    text-align: center;
}

.game-title h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.game-title p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.game-content {
    padding: 3rem 0;
    background: var(--dark-bg);
    min-height: calc(100vh - 200px);
}

.game-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
}

.game-controls-panel {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 2rem;
}

.control-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.control-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.control-section h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.difficulty-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.difficulty-selector label {
    color: var(--text-secondary);
    font-weight: 500;
}

.difficulty-selector select {
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.difficulty-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.game-buttons {
    display: grid;
    gap: 1rem;
}

.btn-game {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-game.primary {
    background: var(--primary-color);
    color: white;
}

.btn-game.primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-game.secondary {
    background: var(--success-color);
    color: white;
}

.btn-game.secondary:hover {
    background: #00cc66;
    transform: translateY(-2px);
    box-shadow: var(--shadow-success);
}

.btn-game.warning {
    background: var(--warning-color);
    color: white;
}

.btn-game.warning:hover {
    background: #ffb800;
    transform: translateY(-2px);
    box-shadow: var(--shadow-warning);
}

.btn-game.danger {
    background: var(--error-color);
    color: white;
}

.btn-game.danger:hover {
    background: #ff4444;
    transform: translateY(-2px);
    box-shadow: var(--shadow-error);
}

.game-stats {
    display: grid;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
}

.game-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-rules li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.game-rules li:last-child {
    border-bottom: none;
}

.game-rules li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.game-board-panel {
    display: grid;
    gap: 2rem;
}

.sudoku-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sudoku-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 2px;
    background: var(--darker-bg);
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    padding: 10px;
    max-width: 500px;
    width: 100%;
    aspect-ratio: 1;
}

.sudoku-cell {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sudoku-cell:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.sudoku-cell.selected {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.sudoku-cell.given {
    background: var(--darker-bg);
    color: var(--primary-color);
    font-weight: 900;
    cursor: default;
}

.sudoku-cell.given:hover {
    background: var(--darker-bg);
    transform: none;
}

.sudoku-cell.error {
    background: var(--error-color);
    color: white;
    animation: shake 0.5s ease-in-out;
}

.sudoku-cell.correct {
    background: var(--success-color);
    color: white;
}

/* 3x3 box borders */
.sudoku-cell:nth-child(3n) {
    border-right: 2px solid var(--primary-color);
}

.sudoku-cell:nth-child(n+19):nth-child(-n+27),
.sudoku-cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom: 2px solid var(--primary-color);
}

.number-pad {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.number-pad h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.number-pad-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
}

.number-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.number-btn {
    aspect-ratio: 1;
    border: none;
    border-radius: 10px;
    background: var(--darker-bg);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.number-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.number-btn.clear {
    background: var(--error-color);
    color: white;
}

.number-btn.clear:hover {
    background: #ff4444;
    transform: translateY(-2px);
    box-shadow: var(--shadow-error);
}

.number-btn.highlighted {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.game-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-primary);
    z-index: 1000;
    display: none;
    min-width: 300px;
    text-align: center;
}

.game-message.show {
    display: block;
    animation: fadeInScale 0.3s ease-out;
}

.message-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

#messageText {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.close-message {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-message:hover {
    background: var(--error-color);
    color: white;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Game page responsive */
@media (max-width: 1024px) {
    .game-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .game-controls-panel {
        position: static;
        order: 2;
    }
    
    .game-board-panel {
        order: 1;
    }
}

@media (max-width: 768px) {
    .game-title h1 {
        font-size: 2rem;
    }
    
    .game-controls-panel,
    .sudoku-container,
    .number-pad {
        padding: 1.5rem;
    }
    
    .sudoku-grid {
        max-width: 350px;
    }
    
    .sudoku-cell {
        font-size: 1.2rem;
    }
    
    .number-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .number-btn {
        font-size: 1.2rem;
    }
}
    .nav-buttons {
        gap: 0.5rem;
    }

    .nav-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .preview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .game-buttons {
        justify-content: center;
    }

    .sudoku-grid {
        max-width: 350px;
    }

    .sudoku-cell {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .title-main {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .sudoku-grid {
        max-width: 300px;
    }

    .sudoku-cell {
        font-size: 1rem;
    }
}
