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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 3rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid #00ffff;
}

.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;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ffff;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #00ffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300ffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

.hero-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 30px rgba(0, 255, 255, 0.8); }
    to { text-shadow: 0 0 50px rgba(0, 255, 255, 1), 0 0 60px rgba(0, 255, 255, 0.8); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.8;
}

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

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000000;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
}

.btn-secondary:hover {
    background: #00ffff;
    color: #000000;
    transform: translateY(-3px);
}

.hero-video {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-video-element {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.2);
    border: 2px solid rgba(0, 255, 255, 0.3);
}

/* Game Section */
.game-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
}

/* New game layout - full width */
.game-main {
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.game-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* Better aspect ratio for the game */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.2);
    border: 3px solid #00ffff;
    background: #000000;
    min-height: 600px; /* Ensure minimum height */
}

#game_drop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Game info section - below the game */
.game-info-section {
    max-width: 1000px;
    margin: 0 auto;
}

.quick-start {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.quick-start h3 {
    color: #00ffff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

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

.quick-tip {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 4px solid #00ffff;
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.quick-tip div {
    color: #cccccc;
    line-height: 1.5;
}

.quick-tip strong {
    color: #00ffff;
}

/* Steam section in community */
.steam-section {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    margin-top: 3rem;
    text-align: center;
}

.steam-section h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.steam-section p {
    color: #cccccc;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.steam-widget-container {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.steam-widget-container iframe {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

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

.about-text {
    color: #cccccc;
}

.about-text h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-list li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: #00ffff;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
    border-color: #00ffff;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #16213e 0%, #0a0a0a 100%);
}

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

.feature-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #00ffff;
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Controls Section */
.controls-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
}

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

.control-group {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.control-group h3 {
    color: #00ffff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.key {
    background: #00ffff;
    color: #000000;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    min-width: 80px;
    text-align: center;
}

.description {
    color: #cccccc;
    flex: 1;
    margin-left: 1rem;
}

.troubleshooting {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 165, 0, 0.5);
    margin-top: 2rem;
}

.troubleshooting h3 {
    color: #ffa500;
    margin-bottom: 1rem;
}

.troubleshooting p {
    color: #cccccc;
    line-height: 1.6;
}

/* Reviews Section */
.reviews-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

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

.review-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.2);
}

.review-rating {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    color: #cccccc;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-author {
    color: #00ffff;
    font-weight: 600;
    text-align: right;
}

/* Community Section */
.community-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #16213e 0%, #0a0a0a 100%);
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.community-info h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.community-info p {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
}

.stat-label {
    color: #cccccc;
    font-size: 0.9rem;
}

.community-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.community-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.community-btn:hover {
    transform: translateX(10px);
    border-color: #00ffff;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.btn-icon {
    font-size: 2rem;
}

.btn-title {
    display: block;
    color: #00ffff;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-subtitle {
    display: block;
    color: #cccccc;
    font-size: 0.9rem;
}

.developer-message {
    background: rgba(26, 26, 46, 0.8);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    text-align: center;
}

.developer-message h3 {
    color: #00ffff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.developer-message blockquote {
    color: #cccccc;
    font-style: italic;
    line-height: 1.8;
    font-size: 1.1rem;
}

.developer-message cite {
    display: block;
    margin-top: 1rem;
    color: #00ffff;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #000000;
    padding: 50px 0 20px;
    border-top: 2px solid #00ffff;
}

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

.footer-section h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00ffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    color: #888888;
}

.footer-bottom a {
    color: #00ffff;
    text-decoration: none;
}

/* Responsive Design */
/* Enhanced mobile optimization */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 50px;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-video {
        margin-top: 2rem;
        max-width: 100%;
    }
    
    .hero-video-element {
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile game section optimization */
    .game-main {
        margin-bottom: 2rem;
    }
    
    .game-wrapper {
        padding-bottom: 75%; /* Better aspect ratio for mobile */
        margin-bottom: 1rem;
    }
    
    .quick-start-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .steam-widget-container iframe {
        width: 100%;
        max-width: 400px;
    }
    
    .quick-start h3 {
        font-size: 1.1rem;
    }
    
    .quick-start li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    /* Mobile-specific game controls */
    .mobile-controls {
        display: block !important;
        background: rgba(26, 26, 46, 0.8);
        padding: 1rem;
        border-radius: 10px;
        border: 2px solid rgba(0, 255, 255, 0.3);
        margin-bottom: 1rem;
    }
    
    .hidden-desktop {
        display: block !important;
    }
    
    .mobile-controls h4 {
        color: #00ffff;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    
    .mobile-controls p {
        color: #cccccc;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .community-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .community-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Mobile button optimization */
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
        min-height: 44px; /* Touch target size */
    }
    
    .community-btn {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Mobile typography */
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Mobile spacing */
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .game-wrapper {
        padding-bottom: 80%; /* Even better ratio for small screens */
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .review-card,
    .control-group {
        padding: 1.5rem;
    }
    
    .fallback-options {
        flex-direction: column;
        align-items: center;
    }
    
    .fallback-options .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 80px 20px 20px;
    }
    
    .hero-content {
        flex: 1;
    }
    
    .hero-video {
        flex: 1;
        margin-left: 2rem;
    }
    
    .game-wrapper {
        padding-bottom: 50%; /* Better for landscape */
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none; /* Disable hover transforms on touch devices */
    }
    
    .gallery-img:hover {
        transform: none;
    }
    
    .feature-card:hover,
    .review-card:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .nav-link {
        padding: 0.5rem;
        margin: 0.25rem 0;
    }
    
    .community-btn {
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .game-wrapper {
        padding-bottom: 75%; /* Adjust aspect ratio for mobile */
    }
}

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

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

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation for iframe */
.game-wrapper::before {
    content: 'Loading Game...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ffff;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 1;
}

.game-iframe:not([src=""]) + .game-wrapper::before {
    display: none;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.hidden-desktop {
    display: none;
}

/* Fallback styles */
.game-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 15;
}

.game-fallback.show {
    display: flex;
}

.fallback-content {
    text-align: center;
    color: #ffffff;
    padding: 2rem;
}

.fallback-content h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.fallback-content p {
    margin-bottom: 2rem;
    color: #cccccc;
}

.fallback-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.fallback-options .btn {
    min-width: 150px;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0080ff;
}
