/* Root variables for color palette - Dark theme inspired by Grok/xAI */
:root {
    --white: #ffffff;
    --light-gray: #1e1e1e; /* Darker gray for sections */
    --pastel-blue: #1d9bf0; /* Accent blue like X */
    --pastel-green: #00ba7c; /* Accent green */
    --text-color: #e0e0e0; /* Light text */
    --bg-color: #000000; /* Black background */
    --input-bg: #2a2a2a; /* Input background */
    --label-color: #ffffff; /* Label text */
    --placeholder-color: #aaaaaa; /* Placeholder */
    --dashed-border: #aaaaaa; /* Dashed border for upload */
}

/* General styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ===================== STARDUST PARTICLES ===================== */
/* Replaced old falling stars/play icons with pure glowing cosmic dust */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    box-shadow: 
        0 0 5px currentColor,
        0 0 13px currentColor,
        0 0 25px #9ccfff;
    animation: 
        fall var(--fall-duration) linear infinite,
        twinkle var(--twinkle-duration) ease-in-out infinite;
    will-change: transform, opacity;
}

/* Occasional brighter spark-core particles */
.particle.bright {
    background: #ffffff;
    box-shadow: 
        0 0 8px #fff,
        0 0 18px #fff,
        0 0 32px #a8e8ff;
}

/* Some particles have stronger blueish glow for depth */
.particle:nth-child(4n) {
    box-shadow: 
        0 0 4px #fff,
        0 0 12px #a8e0ff,
        0 0 28px #c0f0ff;
}

/* Gentle drifting fall + fade in/out */
@keyframes fall {
    0% {
        transform: translateY(-130px) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.85;
    }
    90% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(calc(100vh + 110px)) translateX(var(--drift));
        opacity: 0;
    }
}

/* Soft twinkling (scale + opacity pulse) */
@keyframes twinkle {
    0%, 100% { 
        opacity: 0.48; 
        transform: scale(0.75);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.18);
    }
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    transition: background 0.3s ease;
    z-index: 10;
}

.navbar.scrolled {
    background: var(--light-gray);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.1); /* Adjusted for dark */
    text-decoration: none;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.policy-hero {
    height: auto;
    padding: 6rem 2rem 2rem;
}

.tagline {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    animation: unfold 1s ease-out;
}

@keyframes unfold {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem 0;
}

.cta {
    padding: 1rem 2rem;
    background: var(--light-gray);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.cta:hover {
    background: #2a2a2a; /* Slightly lighter gray for hover */
}

/* Contact section */
.contact {
    display: flex;
    justify-content: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
}

.contact-form h2 {
    margin-top: 0;
    color: var(--label-color);
    text-align: left;
    font-size: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-grp {
    flex: 1;
}

.form-grp.full-width {
    flex: none;
    width: 100%;
}

label {
    display: block;
    color: var(--label-color);
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    margin: 0;
    border: none;
    border-radius: 4px;
    background: var(--input-bg);
    color: var(--text-color);
    transition: box-shadow 0.3s;
}

input:focus, textarea:focus {
    box-shadow: 0 0 5px rgba(0, 186, 124, 0.5);
    outline: none;
}

input::placeholder, textarea::placeholder {
    color: var(--placeholder-color);
}

textarea {
    height: 100px;
    resize: none;
}

.contact-form button {
    display: block;
    margin: 1rem auto 0;
    padding: 0.75rem 2rem;
    background: #2a2a2a; /* Slightly lighter gray */
    color: var(--white);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #3a3a3a; /* Even lighter for hover */
}

/* Policy body */
.policy {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    background: var(--light-gray);
    border-radius: 8px;
}

.policy ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.policy h2 {
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Footer */
footer {
    background: var(--light-gray);
    padding: 2rem;
    text-align: center;
}

footer p a {
    color: var(--text-color);
    text-decoration: none;
}

footer p a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background: var(--light-gray);
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .tagline {
        font-size: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}