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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px; /* Increased scroll offset to accommodate navigation bar and countdown height */
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background-color: #0a0a14;
    color: #e8f5f2;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: #00f7ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #62e3bd;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(0, 10, 8, 0.97); /* Deeper background color, almost black */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001; /* Increased z-index to ensure navigation bar is on top */
    border-bottom: 1px solid rgba(94, 234, 212, 0.5); /* Increased border brightness */
    height: 80px; /* Fixed navigation bar height */
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.7); /* Enhanced shadow effect */
}

/* Website logo styles */
.site-logo {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    vertical-align: middle;
    display: inline-block;
    filter: drop-shadow(0 0 5px rgba(94, 234, 212, 0.2));
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    transition: filter 0.5s ease;
}

/* Logo glow effect */
.site-logo {
    animation: logo-glow 4s infinite;
}

/* Logo glow animation */
@keyframes logo-glow {
    0% { filter: drop-shadow(0 0 5px rgba(94, 234, 212, 0.2)); }
    50% { filter: drop-shadow(0 0 12px rgba(94, 234, 212, 0.8)); }
    100% { filter: drop-shadow(0 0 5px rgba(94, 234, 212, 0.2)); }
}

/* Logo container styles */
.logo {
    display: flex;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00f7ff; /* Brighter blue for better contrast */
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.4); /* Enhanced text glow effect */
    margin: 0; /* Remove default margin */
    line-height: 1.2; /* Add line height control to ensure text is vertically centered */
    padding: 5px 0; /* Add some padding to give text space above and below */
    font-family: 'Orbitron', sans-serif;
}

.logo h1 a {
    display: inline-block; /* Make link a block element for better control */
    color: #00f7ff;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #b3e6dc; /* Slightly brighter text color */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover {
    color: #00f7ff; /* Brighter color on hover */
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.6); /* Enhanced glow effect on hover */
}

/* Hero Section */
.hero {
    height: 50vh;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(10, 10, 20, 0.7), rgba(10, 10, 20, 0.7)), url('image/10005.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 5%;
    position: relative;
    margin-top: 80px; /* Add top margin because header is fixed positioned */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
    color: #00f7ff;
    font-family: 'Orbitron', sans-serif;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #00f7ff;
    color: #00f7ff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hero-button:hover {
    background: #00f7ff;
    color: #0a0a14;
    transform: translateY(-2px);
}

.hero-button.secondary {
    border-color: rgba(0, 247, 255, 0.5);
    color: rgba(0, 247, 255, 0.8);
}

.hero-button.secondary:hover {
    background: rgba(0, 247, 255, 0.2);
    color: #00f7ff;
}

/* Game section styles */
.game-section {
    padding: 5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.2);
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-overlay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-container:hover .game-overlay {
    opacity: 1;
}

.control-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00f7ff;
    color: #00f7ff;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.control-btn:hover {
    background: #00f7ff;
    color: #0a0a14;
}

/* Fullscreen mode styles */
.game-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

.game-container:-moz-full-screen {
    width: 100vw;
    height: 100vh;
}

.game-container:fullscreen {
    width: 100vw;
    height: 100vh;
}

/* Game loading state */
.game-container.loading::after {
    content: 'Game Loading...';
    display: flex;
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
    font-size: 1.5rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    color: #00f7ff;
    font-family: 'Orbitron', sans-serif;
}

/* Introduction section */
.intro {
    padding: 5rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h3 {
    font-size: 2rem;
    color: #00f7ff;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Feature section */
.features {
    padding: 5rem 2rem;
    background: rgba(10, 10, 20, 0.8);
}

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

.section-header h2 {
    font-size: 2.2rem;
    color: #00f7ff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 247, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.1);
}

.feature-card img {
    max-width: 100%;
    height: auto;
    margin: 0 auto 1.5rem;
    border-radius: 4px;
    transition: transform 0.3s;
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #00f7ff;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* Gameplay guide section */
.gameplay {
    padding: 5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.feature-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 247, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.1);
}

.feature-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-text img {
    max-width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.feature-text h3 {
    font-size: 1.5rem;
    color: #00f7ff;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    text-align: center;
}

/* Why play section */
.technical {
    padding: 5rem 2rem;
    background: rgba(10, 10, 20, 0.8);
}

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

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 247, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.1);
}

.tech-item img {
    max-width: 100px;
    height: auto;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    transition: transform 0.3s;
}

.tech-item:hover img {
    transform: scale(1.1) rotate(5deg);
}

.tech-item h3 {
    font-size: 1.5rem;
    color: #00f7ff;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.tech-item p {
    color: rgba(255, 255, 255, 0.7);
}

/* FAQ section */
.faq {
    padding: 5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

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

.faq-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 247, 255, 0.2);
    padding-bottom: 2rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.3rem;
    color: #00f7ff;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    transition: color 0.3s;
}

.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s;
}

.faq-item h3.active::after {
    transform: rotate(45deg);
}

.faq-item h3:hover {
    color: #62e3bd;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
}

.footer-logo h2 {
    font-size: 1.8rem;
    color: #00f7ff;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    list-style: none;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #00f7ff;
}

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

.social-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.social-icon:hover {
    color: #00f7ff;
}

.footer-disclaimer {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
    }
    
    .social-links {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .hero {
        height: 60vh;
        margin-top: 120px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .features-grid,
    .tech-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Menu toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #00f7ff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    nav ul {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul.active {
        display: flex;
    }
}

/* Story Section */
.story-section {
    padding: 5rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(10, 10, 20, 0.9)), url('image/10003.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.story-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.story-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.story-text h3 {
    font-size: 1.8rem;
    color: #00f7ff;
    margin: 2rem 0 1rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.story-text h3:first-child {
    margin-top: 0;
}

.story-text h4 {
    font-size: 1.4rem;
    color: #62e3bd;
    margin: 1.5rem 0 0.8rem;
    font-family: 'Orbitron', sans-serif;
}

.story-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.character-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.character-list li {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
    position: relative;
}

.character-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: #00f7ff;
    border-radius: 50%;
}

.character-list strong {
    color: #00f7ff;
    font-weight: 600;
}

.story-image {
    position: sticky;
    top: 100px;
}

.main-story-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 247, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-story-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 247, 255, 0.5);
}

.image-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Responsive styles for story section */
@media (max-width: 992px) {
    .story-content {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        position: relative;
        top: 0;
        margin-top: 2rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .story-text h3 {
        font-size: 1.5rem;
    }
    
    .story-text h4 {
        font-size: 1.2rem;
    }
    
    .story-text p {
        font-size: 1rem;
    }
}