@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Orbitron', sans-serif;
}

body{
    background:#0b0f1a;
    color:white;
}

/* ===== NAVBAR ===== */
.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 60px;
    background:rgba(0,0,0,0.7);
    backdrop-filter:blur(12px);
    position:sticky;
    top:0;
    z-index:1000;
    border-bottom:3px solid transparent;
    border-image:linear-gradient(90deg,#00f7ff,#ff00c8,#00f7ff) 1;
    animation:borderMove 5s linear infinite;
}

@keyframes borderMove{
    0%{border-image-source:linear-gradient(90deg,#00f7ff,#ff00c8);}
    50%{border-image-source:linear-gradient(90deg,#ff00c8,#00f7ff);}
    100%{border-image-source:linear-gradient(90deg,#00f7ff,#ff00c8);}
}

.logo{
    font-size:24px;
    font-weight:800;
    color:#00ffff;
    text-shadow:0 0 15px #00ffff;
}

.nav-links{
    list-style:none;
    display:flex;
    gap:40px;
}

.nav-links a{
    text-decoration:none;
    color:white;
    font-weight:600;
    position:relative;
    transition:0.4s;
}

.nav-links a.active{
    color:#00ffff;
    text-shadow:0 0 10px #00ffff;
}

.nav-links a::after{
    content:"";
    position:absolute;
    bottom:-6px;
    left:0;
    width:0%;
    height:3px;
    background:linear-gradient(90deg,#00ffff,#ff00ff);
    transition:0.4s;
}

.nav-links a:hover::after{
    width:100%;
}

/* ===== HERO ===== */
.hero{
    height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    position:relative;
    background:linear-gradient(to right,#141e30,#243b55);
}

.hero h1{
    font-size:60px;
    margin-bottom:20px;
    animation:glow 2s ease-in-out infinite alternate;
}

.hero p{
    font-size:20px;
    max-width:600px;
    margin-bottom:30px;
}

@keyframes glow{
    from{
        text-shadow:0 0 10px #00ffff,0 0 20px #00ffff;
    }
    to{
        text-shadow:0 0 20px #ff00ff,0 0 40px #ff00ff;
    }
}

.btn{
    padding:15px 40px;
    border:none;
    font-weight:bold;
    cursor:pointer;
    background:linear-gradient(90deg,#00ffff,#ff00ff);
    color:black;
    border-radius:30px;
    transition:0.4s;
}

.btn:hover{
    transform:scale(1.1);
    box-shadow:0 0 25px #ff00ff;
}

/* ===== SECTION ===== */
.section{
    padding:80px 10%;
    text-align:center;
}

.section h2{
    font-size:40px;
    margin-bottom:50px;
    text-shadow:0 0 15px #00ffff;
}

/* ===== GAME CARDS ===== */
.games-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:40px;
}

.card{
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(10px);
    padding:20px;
    border-radius:15px;
    transition:0.5s;
    position:relative;
    overflow:hidden;
}

.card::before{
    content:"";
    position:absolute;
    top:-2px;
    left:-2px;
    right:-2px;
    bottom:-2px;
    background:linear-gradient(45deg,#00ffff,#ff00ff,#00ffff);
    z-index:-1;
    filter:blur(10px);
    opacity:0;
    transition:0.5s;
}

.card:hover::before{
    opacity:1;
}

.card:hover{
    transform:translateY(-15px);
}

.card img{
    width:100%;
    border-radius:10px;
    margin-bottom:15px;
}

.card h3{
    font-size:20px;
}

/* ===== CONTACT FORM ===== */
form{
    max-width:500px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:15px;
}

input, textarea{
    padding:12px;
    border:none;
    border-radius:5px;
}

button{
    padding:12px;
    background:#00ffff;
    border:none;
    cursor:pointer;
}

button:hover{
    background:#ff00ff;
    color:white;
}

/* ===== FOOTER ===== */
footer{
    text-align:center;
    padding:25px;
    background:#000;
    margin-top:50px;
    border-top:2px solid #00ffff;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
    .navbar{
        flex-direction:column;
        gap:15px;
    }
    .nav-links{
        flex-direction:column;
        gap:20px;
    }
    .hero h1{
        font-size:35px;
    }
}
/* ===== HERO SLIDER ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7; /* dimmed for text readability */
}

/* All slides stacked */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 15s infinite;
}

/* Stagger each slide so they fade one by one */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

/* Fade animation */
@keyframes fadeSlide {
    0% { opacity: 0; }
    10% { opacity: 1; }   /* fade in */
    30% { opacity: 1; }   /* stay visible */
    40% { opacity: 0; }   /* fade out */
    100% { opacity: 0; }  /* stay invisible until next cycle */
}

/* ===== HERO CONTENT ===== */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 60px;
    text-shadow: 0 0 15px #00ffff, 0 0 25px #ff00ff;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 24px;
    max-width: 600px;
    margin: 0 auto 30px auto;
    text-shadow: 0 0 10px #000;
}
.games-container .card h3 {
    color: white;
    text-align: center;
    margin-top: 10px;
    font-size: 18px;
}
.games-container .card-link:hover h3 {
    color: white;
    text-decoration: none;
}
