﻿/* =========================================
   GLOBAL THEME
========================================= */

:root {
    --bg-dark: #0b1f33;
    --bg-mid: #123a5c;
    --accent: #00cfff;
    --text-soft: rgba(255,255,255,0.82);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: #fff;
    overflow-x: hidden;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   HERO
========================================= */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-glow {
    position: absolute;
    inset: 0;
    z-index: 2;
    /*background: radial-gradient(circle,
        rgba(255,255,255,0.18),
        rgba(255,255,255,0.05),
        transparent);*/
}

/* =========================================
   TOP MENU
========================================= */

.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 50px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);

    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: 0.4s ease;
}

.top-menu.show {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 42px;
}

/* MENU */
.menu-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.menu-links a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.menu-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg,#00cfff,#0077ff);
    transition: 0.3s;
}

.menu-links a:hover::after {
    width: 100%;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #000;
}

/* =========================================
   HERO CONTENT
========================================= */

.hero-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 80px;
    animation: fadeUp 1s ease-out;
}

.hero-left {
    max-width: 650px;
}

.product-logo {
    width: 140px;
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

.launch-badge {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
}

.hero h1 span {
    color: #007DC4;
}

.hero-subtitle {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.7;
}

.hero-cta {
    margin-top: 35px;
}

.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 999px;
    background: linear-gradient(135deg,#00cfff,#0077ff);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
}

/* =========================================
   MOBILE NAV (CLEAN)
========================================= */

@media (max-width: 768px) {

    .top-menu {
        padding: 16px 20px;
        flex-direction: row;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .menu-links {
        position: absolute;
        top: 70px;
        right: 20px;

        flex-direction: column;
        background: #fff;

        width: 220px;
        padding: 15px;

        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);

        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;

        transition: 0.3s ease;
    }

    .menu-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .menu-links a {
        padding: 10px 0;
        color: #000;
    }

    /* HERO MOBILE */
     .hero-container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 13px;
        opacity: 0.9;
    }

    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }

        .hero {
        height: 85vh; /* reduce oversized hero on mobile */
    }

    .hero-bg img {
        object-position: 80% center; /* control focus area */
        object-fit: cover;
    }

    .hero-bg {
        transform: scale(1.05); /* slight zoom for better fill */
    }
}

/* =========================================
   COUNTDOWN
========================================= */

.countdown-section {
    padding: 90px 20px;
    text-align: center;
    background: linear-gradient(180deg,#123a5c,#0b1f33);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.time-box {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,207,255,0.2);
}

/* =========================================
   GALLERY (FIXED ALIGNMENT)
========================================= */

.gallery-section {
    padding: 90px 0;
    background: var(--bg-dark);
    overflow: hidden;
}

/* center title properly */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* track fix (IMPORTANT) */
.gallery-track {
    display: flex;
    gap: 16px;

    width: max-content;
    padding-left: 20px;
    padding-right: 20px;

    animation: scroll 28s linear infinite;
}

/* gallery card layout fix */
.gallery-card {
    min-width: 300px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.03);
}

/* image stays clean */
.gallery-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.gallery-card .label {
    padding: 12px 10px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.35);
    width: 100%;
    box-sizing: border-box;

    white-space: normal;     /* allow wrapping */
    word-break: break-word;  /* prevent cut-off */
}

/* description under image */
.gallery-desc {
    padding: 12px 12px;    
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
    background: rgba(0,0,0,0.25);
}

/* CONTEST SECTION BACKGROUND */
.contest-section {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* CARD */
.contest-card {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center; /* IMPORTANT */
    justify-content: center;

    text-align: center;
     padding: 60px 30px;
    gap: 18px;
}

.contest-card h2,
.contest-card p,
.contest-badge {
    margin: 0;
}

.contest-card p {
    max-width: 500px;
}

.contest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

/* BADGE */
.contest-badge {
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 5px;
}

/* TITLE */
.contest-card h2 {
    font-size: 34px;
      margin-bottom: 8px;
    line-height: 1.2;
}

/* TEXT */
.contest-card p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
      margin-bottom: 10px;
    max-width: 520px;
}


@media (max-width: 768px) {
    .contest-card {
        padding: 35px 20px;
        border-radius: 16px;
    }

    .contest-card h2 {
        font-size: 26px;
    }

    .contest-card p {
        font-size: 13px;
    }
}



/* =========================================
   FOOTER (FIXED STABLE VERSION)
========================================= */

.footer {
    background: linear-gradient(180deg, #123a5c, #0b1f33);
    padding: 70px 20px 30px;
    border-top: 1px solid rgba(0,207,255,0.12);
}

/* MAIN WRAPPER */
.footer-container {
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 60px;
    flex-wrap: wrap;
}

/* EACH COLUMN */
.footer-container > div {
    flex: 1;
    min-width: 180px;
}

/* LOGO */
.footer-logo {
    width: 90px;
    display: block;
}

/* LINKS */
.footer-container a {
    display: block;
    color: rgba(255,255,255,0.7);
    margin: 6px 0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-container a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

/* BOTTOM TEXT */
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
}

/* MOBILE FIX */
@media (max-width: 768px) {

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-container > div {
        width: 100%;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .footer-container a {
        text-align: center;
    }
}

/* =========================================
   BACK TO TOP
========================================= */

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;

    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg,#00cfff,#0077ff);
    color: #fff;

    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);

    transition: 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}