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

body {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    background: #0f0c29;
    min-height: 100vh;
    overflow-x: hidden;
}

/* HEADER */
.top-header {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 12px;
    font-size: 15px;
    transition: 0.3s;
}

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

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('images/hero-bg.webp') center center / cover no-repeat fixed;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
    z-index: 1;
}

/* Particles */
.particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}

.particles::before, .particles::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    opacity: 0.5;
    animation: twinkle 5s infinite ease-in-out;
}

.particles::after {
    animation-delay: 2.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* BRAND NAME */
.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 68px;
    font-weight: 900;
    letter-spacing: 6px;
    background: linear-gradient(90deg, #ffd700, #00ffff, #ff00ff, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.9);
    -webkit-text-stroke: 1.5px #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 50px;
    perspective: 1000px;
    line-height: 1.1;
}

.brand-name span {
    display: block;
    opacity: 0;
    transform: translateX(-100%) rotateY(-90deg);
    animation: wave-in 1.6s ease-out forwards;
}

.brand-name .line1 { animation-delay: 0.3s; }
.brand-name .line2 { animation-delay: 0.8s; }

@keyframes wave-in {
    0% { opacity: 0; transform: translateX(-100%) rotateY(-90deg) scale(0.8); }
    50% { opacity: 0.8; transform: translateX(15%) rotateY(25deg) scale(1.1); }
    100% { opacity: 1; transform: translateX(0) rotateY(0) scale(1); }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    margin-bottom: 60px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* OPTIMIZED GRID - EXACTLY 6 CARDS PER ROW ON DESKTOP */
.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Fixed 6 columns on large screens */
    gap: 15px;
    padding: 15px;
    justify-items: center;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    perspective: 1000px;
    width: 100%;
}

.card:hover {
    transform: translateY(-8px) rotateY(6deg);
    box-shadow: 0 18px 35px rgba(0, 255, 255, 0.4);
}

.card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.card p {
    font-size: 16px;
    padding: 6px;
    font-weight: 300;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    display: block;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #000;
    font-weight: bold;
    padding: 7px;
    text-decoration: none;
    border-radius: 0 0 14px 14px;
    transition: 0.4s;
    font-size: 12px;
}

.btn:hover {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
}

/* FOOTER */
footer {
    background: rgba(10, 10, 30, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 80px 20px 100px;
    margin-top: 150px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    box-shadow: 0 0 20px #00ffff;
    animation: glow-line 4s infinite alternate;
}

@keyframes glow-line {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.special-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
    background: linear-gradient(90deg, #ffd700, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.special-tagline.sub {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.copyright {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #fff !important;
    margin: 40px 0 !important;
}

.disclaimer {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 20px;
    color: #888;
}

.ad-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-btn {
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    color: #00ffff;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

.footer-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.4);
    color: #fff;
}

/* RESPONSIVE - 6 ON DESKTOP, LESS ON SMALLER SCREENS */
@media (max-width: 1400px) {
    .grid {
        grid-template-columns: repeat(5, 1fr); /* 5 on large tablet */
    }
}

@media (max-width: 1100px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
