/* Reset & Variables */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0c0a21;      /* Luxury Space Indigo */
    --secondary-color: #008891;    /* Deep Teal Accent */
    --accent-color: #00f2fe;       /* Neon Cyan Glow */
    --bg-dark: #040308;            /* Deep Space Dark Background */
    --bg-card: rgba(14, 12, 34, 0.55); /* Glassmorphism Card */
    --bg-glass: rgba(8, 6, 20, 0.75);  /* Glassmorphism Navigation */
    --text-main: #f8fafc;          /* Bright Off-White */
    --text-muted: #94a3b8;         /* Cool Slate Gray */
    --header-bg: rgba(6, 5, 17, 0.75);
    --border-color: rgba(255, 255, 255, 0.05); /* Thin Glass Border */
    --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.6);
    --cyan-glow: 0 0 20px rgba(0, 242, 254, 0.2);
    --gold-glow: 0 0 20px rgba(226, 183, 85, 0.2);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Luminous Cyberpunk Pulse Background */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0d0925 0%, #030206 100%);
    background-size: cover;
}

.ambient-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(0, 242, 254, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(0, 136, 145, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(226, 183, 85, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.65;
}

.orb-1 {
    width: 45vw;
    height: 45vw;
    background: rgba(0, 242, 254, 0.12);
    top: -10%;
    right: -10%;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background: rgba(0, 136, 145, 0.08);
    bottom: -10%;
    left: -10%;
    animation: drift 25s infinite alternate-reverse ease-in-out;
}

.orb-3 {
    width: 50vw;
    height: 30vh;
    background: rgba(226, 183, 85, 0.05);
    bottom: 20%;
    left: 25%;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}

html.no-scroll,
body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
}

/* Header */
header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1400px;
    background: rgba(10, 9, 26, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    z-index: 1005;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

header.scrolled {
    width: 100%;
    top: 0;
    border-radius: 0;
    max-width: 100%;
    background: rgba(5, 5, 14, 0.95);
    border-left: none;
    border-right: none;
    border-top: none;
    height: 70px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    max-width: 100%;
    margin: 0;
}

header.scrolled .header-container {
    padding: 0 2rem;
}

.logo img {
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.2));
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 42px;
}

.logo img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.4));
}

.nav-list ul {
    display: flex;
    gap: 2.2rem;
}

.nav-list a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.2px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--text-main);
}

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

.header-auth .btn-signup {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: #ffffff;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-auth .btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.45);
    filter: brightness(1.08);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    margin-right: -10px;
    z-index: 2001;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
    border-radius: 4px;
}

/* Mobile responsive menu navigation */
@media (max-width: 992px) {
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #080718;
        padding: 7rem 2.5rem;
        z-index: 2000;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        visibility: hidden;
    }

    .nav-list.active {
        right: 0;
        visibility: visible;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(4, 3, 8, 0.7);
        backdrop-filter: blur(4px);
        /* z-index: 1998; */
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .nav-list ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav-list a {
        font-size: 1.15rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Footer Section */
footer.glass-footer {
    background: linear-gradient(180deg, rgba(8, 7, 22, 0.4) 0%, #030308 100%);
    color: #ffffff;
    padding: 6rem 5% 4rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .footer-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.8;
}

.footer-nav h4,
.footer-contact h4 {
    color: #ffffff;
    margin-bottom: 1.8rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.footer-nav h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 4px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--accent-color);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--accent-color);
    margin-left: 1.8rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Ad wrapper container */
.ad-container {
    max-width: 1400px;
    margin: 8rem auto 4rem;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* Common Components Styles */
.section-prefix {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1.25;
    background: linear-gradient(135deg, #ffffff 20%, var(--secondary-color) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    footer.glass-footer {
        padding: 4rem 5% 2rem;
        margin-top: 4rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand .footer-desc {
        text-align: center;
        margin: 0 auto;
    }

    .footer-nav h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-nav ul,
    .footer-contact .contact-list {
        align-items: center;
    }

    .footer-contact .contact-list li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-links a {
        margin-left: 0;
    }

    .header-container {
        padding: 1rem 5%;
        gap: 1rem;
    }

    .logo {
        flex-grow: 1;
    }

    .header-auth {
        display: block;
    }

    .header-auth .btn-signup {
        padding: 0.55rem 1.1rem;
        font-size: 0.82rem;
        border-radius: 10px;
    }
}

/* Mobile Fixed Bottom Bar */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(6, 5, 17, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    z-index: 1005;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.8);
    gap: 15px;
    justify-content: space-between;
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.mobile-bottom-bar .btn-login {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.mobile-bottom-bar .btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-bottom-bar .btn-register {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: #fff;
    border: none;
}

.mobile-bottom-bar .btn-register:hover {
    filter: brightness(1.08);
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-bottom: 75px;
    }
}