/* Reset & Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #10b981;
    --secondary-color: #4f46e5;
    --accent-color: #8b5cf6;
    --bg-dark: #040914;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(10, 15, 30, 0.8);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --header-bg: rgba(4, 9, 20, 0.9);
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 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%, #0d0615 0%, #040914 100%);
    background-size: cover;
}

.ambient-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: rgba(139, 92, 246, 0.2);
    top: -10%;
    right: -10%;
    animation: drift 15s infinite alternate ease-in-out;
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background: rgba(16, 185, 129, 0.2);
    bottom: -15%;
    left: -10%;
    animation: drift 20s infinite alternate-reverse ease-in-out;
}

.orb-3 {
    width: 50vw;
    height: 20vh;
    background: rgba(79, 70, 229, 0.25);
    bottom: 0;
    left: 25%;
    filter: blur(100px);
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 40px) 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: var(--secondary-color);
    border-radius: 10px;
}

/* Header */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    z-index: 1005;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 75px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

header.scrolled {
    width: 100%;
    top: 0;
    border-radius: 0;
    max-width: 100%;
    background: rgba(4, 9, 20, 0.98);
    background-color: rgba(4, 9, 20, 0.98);
    height: 65px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Scrolled state handles transition */


.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    max-width: 100%;
    margin: 0;
    transition: var(--transition);
}

header.scrolled .header-container {
    padding: 0 2rem;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.2));
    transition: height 0.4s ease;
}

header.scrolled .logo img {
    height: 40px;
}

.nav-list ul {
    display: flex;
    gap: 2.2rem;
}

.logo img:hover {
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
    transform: scale(1.05);
}

.nav-list a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-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(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-auth .btn-signup:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
    filter: brightness(1.1);
}

.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;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #0a0e14;
        padding: 6rem 2rem;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 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(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        z-index: 998;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .nav-list ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 2001;
    }

    .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);
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #0a0e14;
        padding: 6rem 2rem;
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden;
    }
}

/* Footer */
footer {
    background: linear-gradient(180deg, #0a1128 0%, #040914 100%);
    padding: 6rem 5% 3rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-nav h4,
.footer-contact h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a {
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.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.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--primary-color);
    margin-left: 1.5rem;
}

.ad-container {
    max-width: 1200px;

    margin: 9rem auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Common Components */
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    footer {
        padding: 4rem 5% 2rem;
        margin-top: 3rem;
    }

    .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 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.5rem;
    }

    .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.5rem 1rem;
        font-size: 0.85rem;
    }

    .header-auth .arrow {
        display: none;
    }
}

/* Mobile Fixed Bottom Bar */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(5, 7, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    padding: 10px 15px;
    z-index: 1005;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.6);
    gap: 15px;
    justify-content: space-between;
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-bottom-bar .btn-login {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--primary-color);
}

.mobile-bottom-bar .btn-register {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
    border: 1px solid transparent;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }
}