/* =====================================================
   VARIABLES
===================================================== */
:root {
    --hot-pink: #FF69B4;
    --electric-blue: #00FFFF;
    --lime-green: #32CD32;

    --neon-pink:    #ff2aed;
    --neon-cyan:    #00f6ff;
    --neon-magenta: #ff0095;
    --neon-purple:  #c300ff;
    --neon-blue:    #00d4ff;

    --dark-bg:      #0a0012;
    --almost-black: #050009;
    --text-color:   #ffffff;
}

/* =====================================================
   GLOBAL / BASE
===================================================== */
html {
    scroll-behavior: smooth;
}

section[id]::before {
    content: "";
    display: block;
    height: 260px;
    margin-top: -260px;
    visibility: hidden;
}

body {
    margin: 0;
    padding-top: 280px; /* MUST be >= actual header height */
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background: var(--dark-bg);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,42,237,0.08) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(0,246,255,0.07) 0%, transparent 30%);
    background-size: 120% 120%;
    animation: slowDrift 60s infinite alternate ease-in-out;
}

@keyframes slowDrift {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* =====================================================
   HEADER
===================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 0, 18, 0.7);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
}

header h1 {
    margin: 0.4em 0;
    text-align: center;
}

/* Neon Title */
header h1.neon-text {
    font-family: 'Monoton', cursive;
    font-size: clamp(3rem, 10vw, 8rem);
    color: transparent;
    background: linear-gradient(
        90deg,
        var(--neon-pink),
        var(--neon-cyan),
        var(--neon-magenta),
        var(--neon-pink)
    );
    background-size: 400%;
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow:
        0 0 10px var(--neon-pink),
        0 0 25px var(--neon-pink),
        0 0 50px var(--neon-cyan),
        0 0 80px var(--neon-magenta);
    animation: neonFlow 7s ease-in-out infinite alternate, flicker 5s infinite;
}

@keyframes neonFlow {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.65; }
}

/* =====================================================
   NAVIGATION
===================================================== */
nav ul {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 255, 255, 0.12);
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: inline-block;
    min-width: 120px;
    padding: 0.8em 1.5em;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    text-decoration: none;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0,246,255,0.5);
    transition: all 0.35s ease;
    background: rgba(5, 0, 9, 0.85);
}

nav ul li a:hover,
nav ul li a:focus {
    color: var(--neon-pink);
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px var(--neon-pink), 0 0 60px rgba(255,42,237,0.5);
    transform: scale(1.07);
}

/* =====================================================
   MAIN CONTENT
===================================================== */

section {
    padding: 2.5em 1.5em;
    text-align: center;
    scroll-margin-top: 150px; /* anchor fix */
}

section h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    letter-spacing: 0.12em;
    text-shadow:
        0 0 8px var(--neon-cyan),
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-blue);
}

/* =====================================================
   ABOUT SECTION
===================================================== */
#about {
    margin-top: 1rem;
}

#about p {
    max-width: 800px;
    margin: 1.2rem auto;
    line-height: 1.7;
    font-size: 1.1rem;
}



/* =====================================================
   SOCIAL LINKS - HORIZONTAL LAYOUT
===================================================== */
#socials ul {
    list-style: none;
    padding: 0;
    margin: 2rem auto 0;           /* more breathing room from h2 */
    display: flex;                 /* ← magic starts here */
    flex-wrap: wrap;               /* wraps nicely on very small screens */
    justify-content: center;
    gap: 1.5rem;                   /* space between buttons */
    max-width: 90vw;               /* prevents overflow on mobile */
}

#socials ul li {
    margin: 0;                     /* reset any previous margin */
}

#socials ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;              /* consistent button width */
    padding: 0.9em 1.6em;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: white;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0,246,255,0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    border-radius: 4px;            /* optional: tiny rounding for 80s feel */
}

#socials ul li a::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    transition: left 0.6s;
}

#socials ul li a:hover::before {
    left: 100%;
}

#socials ul li a:hover {
    color: var(--neon-pink);
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px var(--neon-pink), 0 0 60px rgba(255,42,237,0.5);
    transform: translateY(-3px);   /* subtle lift on hover */
}

/* Optional: Make icons appear before text (if you add them later) */
#socials ul li a::after {
    content: "▶";                 /* fallback arrow or replace with icon */
    margin-left: 0.6em;
    opacity: 0.7;
}

/* =====================================================
   CONTACT
===================================================== */
#contact a {
    color: var(--lime-green);
    text-decoration: none;
    text-shadow: 0 0 5px var(--lime-green), 0 0 10px var(--lime-green);
}

#contact a:hover {
    color: var(--hot-pink);
    text-shadow: 0 0 5px var(--hot-pink), 0 0 10px var(--hot-pink);
}

/* =====================================================
   FOOTER
===================================================== */
footer {
    text-align: center;
    padding: 1em;
    background: rgba(0,0,0,0.6);
}

/* =====================================================
   SCANLINES (FIXED – NON-BLOCKING)
===================================================== */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(255,255,255,0.04) 2px,
        rgba(255,255,255,0.04) 4px
    );
    opacity: 0.45;
    z-index: 10; /* BELOW HEADER */
}

/* =====================================================
   ACCESSIBILITY / PERFORMANCE
===================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
