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

:root {
    --amber: #ff6b00;
    --amber-glow: rgba(255, 107, 0, 0.4);
    --amber-dim: #b34700;
    --cyan: #00ffd4;
    --cyan-glow: rgba(0, 255, 212, 0.4);
    --bg: #07070e;
    --bg-surface: rgba(255, 107, 0, 0.03);
    --border: rgba(255, 107, 0, 0.12);
    --border-bright: rgba(255, 107, 0, 0.3);
    --text: #9a9aaa;
    --text-bright: #d0d0d8;
    --text-dim: #505068;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--amber);
    color: var(--bg);
}

/* ---- Starfield canvas ---- */

#starfield {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Scanline overlay ---- */

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
}

/* ---- Navigation ---- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(7, 7, 14, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

nav.scrolled {
    background: rgba(7, 7, 14, 0.95);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--amber);
    text-decoration: none;
    letter-spacing: 0.2em;
    text-shadow: 0 0 20px var(--amber-glow);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
}

nav ul a:hover {
    color: var(--cyan);
    text-shadow: 0 0 12px var(--cyan-glow);
}

/* ---- Layout ---- */

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    position: relative;
    z-index: 2;
    padding: 6rem 0;
}

/* ---- Hero ---- */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 4rem;
}

.hero-content {
    position: relative;
}

.saturn-graphic {
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 107, 0, 0.15));
}

.saturn-graphic svg {
    width: 100%;
    height: 100%;
}

.saturn-graphic .planet {
    animation: planet-pulse 4s ease-in-out infinite;
}

.saturn-graphic .ring-inner {
    animation: ring-breathe 5s ease-in-out infinite;
}

#hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    color: var(--amber);
    letter-spacing: 0.25em;
    text-shadow:
        0 0 40px var(--amber-glow),
        0 0 80px rgba(255, 107, 0, 0.15);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.tagline {
    font-size: 1rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    text-transform: lowercase;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */

.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.4;
}

.btn-primary {
    color: var(--bg);
    background: var(--amber);
    border-color: var(--amber);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.25);
}

.btn-primary:hover {
    background: transparent;
    color: var(--amber);
    box-shadow: 0 0 30px var(--amber-glow);
}

.btn-secondary {
    color: var(--cyan);
    background: transparent;
    border-color: rgba(0, 255, 212, 0.4);
}

.btn-secondary:hover {
    border-color: var(--cyan);
    background: rgba(0, 255, 212, 0.06);
    box-shadow: 0 0 20px rgba(0, 255, 212, 0.2);
}

/* ---- Section headings ---- */

h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--cyan);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 212, 0.25);
}

.section-intro {
    color: var(--text);
    margin-bottom: 3rem;
    max-width: 540px;
    font-size: 0.95rem;
}

/* ---- About ---- */

#about {
    border-top: 1px solid var(--border);
    background-image:
        linear-gradient(rgba(0, 255, 212, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 212, 0.015) 1px, transparent 1px);
    background-size: 48px 48px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--amber), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.about-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.06);
}

.about-card:hover::before {
    opacity: 1;
}

.card-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--amber);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.about-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.about-card p {
    font-size: 0.85rem;
    line-height: 1.8;
}

/* ---- Contact ---- */

#contact {
    border-top: 1px solid var(--border);
}

#contact-form {
    max-width: 600px;
}

.honeypot {
    position: absolute;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-bright);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
}

input:focus,
textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 255, 212, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

#contact-form .btn-primary {
    margin-top: 0.5rem;
    border: 1px solid var(--amber);
}

.form-status {
    margin-top: 1rem;
    font-size: 0.85rem;
    min-height: 1.5em;
}

.form-status.success {
    color: var(--cyan);
}

.form-status.error {
    color: #ff4455;
}

/* ---- Footer ---- */

footer {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

/* ---- Scroll reveal ---- */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ---- Animations ---- */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes planet-pulse {
    0%, 100% { filter: url(#glow-strong); }
    50% { filter: url(#glow-strong) brightness(1.1); }
}

@keyframes ring-breathe {
    0%, 100% { stroke-opacity: 1; }
    50% { stroke-opacity: 0.6; }
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    section {
        padding: 4rem 0;
    }

    .section-intro {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        padding: 0.8rem 1rem;
    }

    nav ul {
        gap: 1.2rem;
    }

    .saturn-graphic {
        width: 160px;
        height: 160px;
    }

    #hero h1 {
        letter-spacing: 0.15em;
    }

    .about-card {
        padding: 1.5rem 1.2rem;
    }
}
