/* ═══════════════════════════════════════════════════════════
   AstroL — Main Stylesheet
   Cosmic dark theme with deep purples, gold accents
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Cosmic palette */
    --bg-deep:       #050510;
    --bg-dark:       #0a0a1a;
    --bg-card:       #0f0f24;
    --bg-card-hover: #151535;
    --bg-surface:    #12122a;

    --purple-dark:   #2a1050;
    --purple:        #6c3ce0;
    --purple-light:  #9b6dff;
    --purple-glow:   rgba(108, 60, 224, 0.3);

    --gold:          #f0c040;
    --gold-light:    #ffe066;
    --gold-dim:      rgba(240, 192, 64, 0.15);

    --text:          #e8e4f0;
    --text-dim:      #9892a6;
    --text-muted:    #5f5878;

    --accent-start:  #9b6dff;
    --accent-end:    #f0c040;

    --radius:        16px;
    --radius-sm:     10px;
    --radius-xs:     6px;

    --ff-display:    'Cormorant Garamond', serif;
    --ff-body:       'Montserrat', sans-serif;

    --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--ff-body);
    color: var(--text);
    background: var(--bg-deep);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Cosmic Background Canvas ───────────────────────── */
#cosmos-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ─── Messages ───────────────────────────────────────── */
.messages-container {
    position: fixed;
    top: 90px; right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}
.msg {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(16px);
    font-size: 0.9rem;
    animation: msgSlide 0.4s ease;
}
.msg-success { background: rgba(80, 200, 120, 0.15); border: 1px solid rgba(80, 200, 120, 0.3); }
.msg-error   { background: rgba(255, 80, 80, 0.15);  border: 1px solid rgba(255, 80, 80, 0.3); }
.msg-warning { background: rgba(255, 200, 60, 0.15); border: 1px solid rgba(255, 200, 60, 0.3); }
.msg-info    { background: rgba(100, 150, 255, 0.15); border: 1px solid rgba(100, 150, 255, 0.3); }

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

/* ─── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--ff-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn--primary {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: #fff;
    box-shadow: 0 4px 25px var(--purple-glow);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(108, 60, 224, 0.5);
}

.btn--glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--purple-light), var(--gold), var(--purple-light));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition);
}
.btn--glow:hover::after { opacity: 0.6; }

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn--ghost:hover {
    border-color: var(--purple-light);
    background: rgba(108, 60, 224, 0.1);
}

.btn--sm { padding: 10px 24px; font-size: 0.85rem; }
.btn--lg { padding: 18px 40px; font-size: 1.05rem; }

.btn--danger {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--purple-light);
    color: var(--purple-light);
}
.btn--outline:hover {
    background: var(--purple-light);
    color: #fff;
}

/* ─── Section Headers ────────────────────────────────── */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
}
.section-desc {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.accent           { color: var(--gold); }
.accent-gradient  {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Form Inputs (shared) ───────────────────────────── */
.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-input:focus {
    border-color: var(--purple-light);
    box-shadow: 0 0 0 3px var(--purple-glow);
}
.form-input::placeholder { color: var(--text-muted); }

select.form-input { appearance: none; cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }

.form-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--purple);
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* ─── Animate on Scroll ──────────────────────────────── */
[data-aos] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
}
