@import "section-1.css";
@import "section-2.css";
@import "section-3.css";

/* ==========================================
   Design Tokens & System Variables
   ========================================== */
:root {
    --color-primary-purple: #8A5CE6;
    --color-primary-indigo: #513DBF;
    --color-accent-cyan: #00F5D4;
    --color-accent-glow: rgba(138, 92, 230, 0.4);
    --color-bg-dark: #080711;
    --color-card-bg: rgba(20, 24, 45, 0.6);
    --color-card-bg-hover: rgba(26, 31, 58, 0.75);
    --color-input-bg: rgba(255, 255, 255, 0.05);
    --color-border-glass: rgba(255, 255, 255, 0.12);
    --color-border-hover: rgba(138, 92, 230, 0.5);
    --color-text-main: #ffffff;
    --color-text-body: #e2e8f0;
    --color-text-muted: #a0a5c0;
    --color-text-subtle: #717696;

    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-pill: 50px;

    --transition-fast: 0.25s ease;
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* ==========================================
   Global Reset & Base Setup
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--color-bg-dark);
    color: var(--color-text-main);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1250px;
    padding: 0 1.2rem;
    margin: 0 auto;
}

/* Scroll Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Ambient Background Orbs */
.bg-glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138, 92, 230, 0.5), transparent 70%);
}

.orb-2 {
    top: 45%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(81, 61, 191, 0.4), transparent 70%);
    animation-delay: -6s;
}

.orb-3 {
    bottom: -10%;
    left: 20%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.25), transparent 70%);
    animation-delay: -12s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, 60px) scale(1.1);
    }

    100% {
        transform: translate(-30px, 30px) scale(0.95);
    }
}

/* ==========================================
   Header & Navigation (HTML Order 1)
   ========================================== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 0.9rem 0;
    background: rgba(9, 9, 20, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: all var(--transition-fast);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    gap: 8px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.logo-img img {
    width: 100%;
    max-width: 46px;
    display: block;
}

.text-logo {
    margin: 0;
    padding: 0;
    font-weight: 800;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.15;
    letter-spacing: 0.5px;
}

/* Desktop Navigation */
.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(138, 92, 230, 0.2);
}

/* Burger Button Container */
.gooey-wrapper {
    display: none;
    position: relative;
    z-index: 1005;
}

.burger-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border-glass);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1005;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.burger-btn:hover {
    background: rgba(138, 92, 230, 0.2);
    border-color: var(--color-border-hover);
    box-shadow: 0 0 20px var(--color-accent-glow);
    transform: scale(1.05);
}

.burger-btn .line {
    width: 22px;
    height: 2px;
    background-color: var(--color-text-main);
    border-radius: 4px;
    transition: transform var(--transition-bounce),
        opacity var(--transition-fast),
        background-color var(--transition-fast);
}

.burger-btn.active {
    background: rgba(138, 92, 230, 0.3);
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 25px rgba(0, 245, 212, 0.5);
}

.burger-btn.active .line {
    background-color: var(--color-accent-cyan);
}

.burger-btn.active .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.active .line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.active .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Number Input Arrows Hide */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 1024px) {

    .section-title,
    .title h3 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: 1.2rem;
    }

    .gooey-wrapper {
        display: block;
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(8, 7, 20, 0.92);
        backdrop-filter: blur(35px) saturate(200%);
        -webkit-backdrop-filter: blur(35px) saturate(200%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s var(--transition-smooth), visibility 0.4s ease;
    }

    .header-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header-nav .nav-link {
        font-size: 1.8rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.7);
        opacity: 0;
        transform: translateY(25px);
        transition: opacity 0.4s ease, transform 0.4s var(--transition-smooth), color 0.3s ease, background 0.3s ease;
        padding: 0.8rem 2rem;
        border-radius: var(--radius-pill);
    }

    .header-nav.open .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    .header-nav.open .nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .header-nav.open .nav-link:nth-child(2) {
        transition-delay: 0.2s;
    }

    .header-nav.open .nav-link:nth-child(3) {
        transition-delay: 0.3s;
    }

    .header-nav .nav-link:hover {
        color: var(--color-text-main);
        background: linear-gradient(135deg, rgba(138, 92, 230, 0.3), rgba(0, 245, 212, 0.2));
        box-shadow: 0 0 30px rgba(138, 92, 230, 0.4);
    }
}

@media (max-width: 480px) {

    .section-title,
    .title h3 {
        font-size: 1.8rem;
    }
}