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

:root {
    --primary-color: #ff8c00;
    --secondary-color: #ff6b35;
    --accent-color: #ffb347;
    --bg-dark: #1a1a1a;
    --bg-darker: #0f0f0f;
    --bg-light: #2a2a2a;
    --bg-panel: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #9a9a9a;
    --text-accent: #ff8c00;
    --border-color: #4a4a4a;
    --border-accent: #ff8c00;
    --shadow-color: rgba(0, 0, 0, 0.6);
    --shadow-orange: 0 2px 8px rgba(255, 140, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #ff8c00 0%, #ff6b35 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --gradient-accent: linear-gradient(135deg, #ffb347 0%, #ff8c00 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Account for fixed navbar */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
}

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

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 30px var(--shadow-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.brand-text {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

.brand-text:hover {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
    transform: translateY(-1px);
}

.brand-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-orange);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 140, 0, 0.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-text {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 30px var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.hero-stats.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat {
    text-align: center;
    transition: transform 0.3s ease;
    padding: 1rem;
}


.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 140, 0, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Maps Section */
.maps-section {
    padding: 5rem 0;
    background: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.map-card {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
}

.map-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.map-card.featured {
    grid-column: span 2;
}

.map-card.featured .map-preview {
    height: 300px;
}

.map-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.map-card:hover .map-image {
    transform: scale(1.1);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-card:hover .map-overlay {
    opacity: 1;
}

.map-info {
    text-align: center;
    color: var(--text-primary);
    padding: 1rem;
}

.map-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.map-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.map-stats .stat {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-orange);
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 140, 0, 0.5);
}

.map-details {
    padding: 1.5rem;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.map-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.map-difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-difficulty.easy {
    background: rgba(108, 207, 127, 0.2);
    color: #6bcf7f;
}

.map-difficulty.medium {
    background: rgba(255, 217, 61, 0.2);
    color: #ffd93d;
}

.map-difficulty.hard {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.map-difficulty.extreme {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.map-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

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

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--bg-dark);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

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

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

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    text-align: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-bottom: 20px;
}

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

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

.footer-links a:hover {
    color: var(--primary-color);
}

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

.social-link {
  border-radius: 15px;
  background: #73ad2100;
  padding: 10px;


    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

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

/* Responsive Design */

/* Tablet and small laptop styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0.875rem 1.5rem;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .maps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile landscape and tablet portrait */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        border-left: 1px solid var(--border-color);
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        width: 100%;
    }
    
    .nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .hero-section {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        text-align: center;
        justify-content: center;
        flex: 1;
    }
    
    .hero-title {
        font-size: 2.75rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin: 1.5rem 0;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        margin: 2.5rem 0;
    }
    
    .stat {
        flex: 1;
        min-width: 80px;
        max-width: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 320px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .section-header {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .maps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .map-card.featured {
        grid-column: span 1;
    }
    
    .map-card {
        margin: 0;
        border-radius: 12px;
    }
    
    .map-preview {
        height: 220px;
    }
    
    .map-details {
        padding: 1.25rem;
    }
    
    .map-features {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .feature {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.75rem;
        text-align: center;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .nav-links {
        width: 100%;
        right: -100%;
        padding: 5rem 1.5rem 2rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.05;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 1rem 0;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .stat {
        flex: none;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .btn-primary, .btn-secondary {
        max-width: 280px;
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .maps-grid {
        padding: 0 0.5rem;
        gap: 1.25rem;
    }
    
    .map-card {
        margin: 0;
    }
    
    .map-preview {
        height: 200px;
    }
    
    .map-info h3 {
        font-size: 1.2rem;
    }
    
    .map-info p {
        font-size: 0.85rem;
    }
    
    .map-stats {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .map-stats .stat {
        font-size: 0.8rem;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
    }
    
    .play-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .features-grid {
        padding: 0 0.5rem;
        gap: 1.25rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .feature-icon {
        font-size: 2.25rem;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-links {
        padding: 4.5rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        max-width: 260px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .map-preview {
        height: 180px;
    }
    
    .map-details {
        padding: 1rem;
    }
    
    .map-info h3 {
        font-size: 1.1rem;
    }
    
    .map-info p {
        font-size: 0.8rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
}

/* Add touch targets and accessibility */
.touch-target {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Mobile navigation overlay backdrop */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Improve touch feedback */
@media (hover: none) and (pointer: coarse) {
    .nav-link:active,
    .nav-cta:active,
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .map-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }
}

/* Enhanced focus styles for keyboard navigation */
.nav-link:focus-visible,
.nav-cta:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.mobile-menu-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.2);
}

/* PWA and standalone app support */
@media (display-mode: standalone) {
    .navbar {
        padding-top: env(safe-area-inset-top, 20px);
    }
    
    .hero-section {
        padding-top: calc(80px + env(safe-area-inset-top, 0px));
    }
}

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

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

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

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

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* GDPR Popup Styles */
#mandatory-gdpr-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeInModal 0.3s ease-out;
}

.gdpr-popup-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 600px;
    margin: 1rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.gdpr-popup-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.gdpr-popup-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gdpr-popup-subtitle {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
}

.gdpr-popup-body {
    margin-bottom: 2rem;
}

.cookie-categories {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 140, 0, 0.4);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cookie-category-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.cookie-category-required {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.cookie-category-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.4s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: var(--primary-color);
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-slider {
    background-color: var(--primary-color);
    opacity: 0.7;
    cursor: not-allowed;
}

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

.gdpr-btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    min-width: 140px;
}

.gdpr-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.gdpr-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.gdpr-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gdpr-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.gdpr-btn-minimal {
    background: transparent;
    color: #ccc;
    text-decoration: underline;
    border: none;
    padding: 0.5rem 1rem;
    min-width: auto;
}

.gdpr-btn-minimal:hover {
    color: white;
}

.gdpr-popup-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gdpr-popup-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.gdpr-popup-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.gdpr-popup-link:hover {
    text-decoration: underline;
}

.gdpr-popup-note {
    color: #888;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* GDPR Notification Styles */
.gdpr-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 15000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(10px);
}

.gdpr-notification-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(29, 78, 216, 0.9));
    border-left: 4px solid #3b82f6;
}

.gdpr-notification-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
    border-left: 4px solid #22c55e;
}

.gdpr-notification-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.9));
    border-left: 4px solid #fbbf24;
}

.gdpr-notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    border-left: 4px solid #ef4444;
}

.notification-content {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-content span {
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
}

.notification-content button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.notification-content button:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Mobile Responsive for GDPR Popup */
@media (max-width: 768px) {

    .hero-stats{
        flex-direction: row;
        gap: 1rem;
    }

    .gdpr-popup-content {
        margin: 0.5rem;
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .gdpr-popup-actions {
        flex-direction: column;
    }
    
    .gdpr-btn {
        width: 100%;
    }
    
    .gdpr-popup-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Wiki Section Styles */
.wiki-section {
    padding: 6rem 0;
    background: var(--bg-darker);
    position: relative;
}

.wiki-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255, 140, 0, 0.03) 50%, transparent 51%);
    pointer-events: none;
}

.wiki-preview {
    position: relative;
    z-index: 2;
}

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

.wiki-card {
    background: var(--bg-panel);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

.wiki-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.2);
}

.wiki-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.wiki-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

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

.wiki-cta {
    text-align: center;
    margin-top: 2rem;
}

.wiki-cta .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Mobile Responsive for Wiki Section */
@media (max-width: 768px) {
    .wiki-section {
        padding: 4rem 0;
    }
    
    .wiki-card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .wiki-card {
        padding: 1.5rem;
    }
    
    .wiki-icon {
        font-size: 2.5rem;
    }
}

/* Loading Screen for Main Page */
.page-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(15, 20, 25, 0.98) 0%, 
        rgba(25, 35, 45, 0.96) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loading-screen.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.main-loading-content {
    text-align: center;
    color: #fff;
    animation: fadeInUp 0.8s ease-out;
}

.main-loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 140, 0, 0.2);
    border-top: 4px solid #ff8c00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px auto;
}

.main-loading-text {
    font-size: 24px;
    font-weight: 600;
    color: #ff8c00;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.main-loading-subtitle {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 20px;
}

.main-loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 140, 0, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 20px auto;
}

.main-loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff8c00, #ff6b00);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressGlow 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 140, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 140, 0, 0.8); }
}

/* Mobile responsive for main loading */
@media (max-width: 768px) {
    .main-loading-content {
        padding: 0 20px;
    }

    .main-loading-text {
        font-size: 20px;
    }

    .main-loading-progress {
        width: 250px;
    }

    .main-loading-spinner {
        width: 60px;
        height: 60px;
    }
}
