/* nonri.day — Corporate Neon Zen Garden */

/* ===== CSS Custom Properties: Design Palette ===== */
:root {
    /* Neon Pale — headings */
    --color-neon-pale: #E8E0F8;

    /* Muted Violet — body text */
    --color-muted-violet: #A098C0;

    /* Dopamine Violet — primary neon accent */
    --color-dopamine-violet: #C040FF;

    /* Dopamine Green — secondary neon */
    --color-dopamine-green: #40FF90;

    /* Dopamine Pink — tertiary neon */
    --color-dopamine-pink: #FF4080;

    /* Zen Dark — primary background */
    --color-zen-dark: #06040C;

    /* Glass Void — card backgrounds */
    --color-glass-void-rgb: 10, 8, 20;

    /* Geometric Glow — shape pulses */
    --color-glow-violet-rgb: 200, 100, 255;

    /* Typography */
    --font-display: 'Poiret One', cursive;
    --font-body: 'Work Sans', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;

    /* Spacing */
    --spacing-content-margin: 12vw;
    --spacing-hero-bottom: 16vw;
    --spacing-closing-bottom: 20vw;
    --spacing-padding-horizontal: 6vw;

    /* Max widths */
    --max-width-content: 600px;

    /* Magnetic Drift */
    --drift-radius: 300px;
    --drift-max: 10px;
    --drift-duration: 400ms;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--color-zen-dark);
    color: var(--color-muted-violet);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.85;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Typography ===== */
.display-heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    color: var(--color-neon-pale);
    line-height: 1.15;
    letter-spacing: 0.04em;
}

.accent-label {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--color-dopamine-violet);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.body-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: var(--color-muted-violet);
    line-height: 1.85;
}

/* ===== Geometric Background Layer ===== */
#geometric-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0;
    animation: geoFadeIn 2s ease-out forwards;
}

/* Circles */
.geo-circle {
    border-radius: 50%;
}

.geo-circle-1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(192, 64, 255, 0.08) 0%, transparent 70%);
    top: 12%;
    left: -5%;
    animation: pulse1 4s ease-in-out infinite, geoFadeIn 2s ease-out forwards;
    animation-delay: 0s, 0.3s;
}

.geo-circle-2 {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, var(--color-dopamine-green) 0%, transparent 70%);
    opacity: 0.08;
    top: 55%;
    right: -3%;
    animation: pulse2 5s ease-in-out infinite, geoFadeIn 2s ease-out forwards;
    animation-delay: 1s, 0.6s;
}

.geo-circle-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--color-dopamine-pink) 0%, transparent 70%);
    opacity: 0.08;
    bottom: 15%;
    left: 20%;
    animation: pulse3 6s ease-in-out infinite, geoFadeIn 2s ease-out forwards;
    animation-delay: 2s, 0.9s;
}

/* Hexagons */
.geo-hexagon {
    width: 200px;
    height: 200px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.geo-hexagon-1 {
    background: var(--color-dopamine-violet);
    opacity: 0.06;
    top: 30%;
    right: 10%;
    animation: pulseHex 7s ease-in-out infinite, geoFadeIn 2s ease-out forwards;
    animation-delay: 0.5s, 1.2s;
}

.geo-hexagon-2 {
    width: 140px;
    height: 140px;
    background: var(--color-dopamine-green);
    opacity: 0.06;
    bottom: 30%;
    left: 8%;
    animation: pulseHex 5.5s ease-in-out infinite, geoFadeIn 2s ease-out forwards;
    animation-delay: 2s, 1.5s;
}

/* Triangles */
.geo-triangle {
    width: 0;
    height: 0;
    clip-path: none;
    border-radius: 0;
}

.geo-triangle-1 {
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid var(--color-dopamine-pink);
    opacity: 0.06;
    top: 8%;
    right: 25%;
    animation: pulseTri 6s ease-in-out infinite, geoFadeIn 2s ease-out forwards;
    animation-delay: 1.5s, 1.8s;
}

.geo-triangle-2 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid var(--color-dopamine-violet);
    opacity: 0.05;
    bottom: 10%;
    right: 15%;
    animation: pulseTri 5s ease-in-out infinite, geoFadeIn 2s ease-out forwards;
    animation-delay: 3s, 2.1s;
}

/* ===== Pulse Animations ===== */
@keyframes pulse1 {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.15); opacity: 0.12; }
}

@keyframes pulse2 {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

@keyframes pulse3 {
    0%, 100% { transform: scale(1); opacity: 0.08; }
    50% { transform: scale(1.2); opacity: 0.11; }
}

@keyframes pulseHex {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.06; }
    50% { transform: scale(1.08) rotate(5deg); opacity: 0.1; }
}

@keyframes pulseTri {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.06; }
    50% { transform: scale(1.1) rotate(-3deg); opacity: 0.09; }
}

@keyframes geoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Zen Void Main Container ===== */
#zen-void {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 0 var(--spacing-padding-horizontal);
}

/* ===== Content Islands ===== */
.content-island {
    max-width: var(--max-width-content);
    width: 100%;
    margin: var(--spacing-content-margin) auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.content-island.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Hero Section ===== */
#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin-top: 0;
    margin-bottom: var(--spacing-hero-bottom);
    gap: 2rem;
}

#site-title {
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.12em;
    text-shadow: 0 0 60px rgba(192, 64, 255, 0.4), 0 0 120px rgba(192, 64, 255, 0.15);
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 60px var(--color-dopamine-violet), 0 0 120px rgba(192, 64, 255, 0.15);
    }
    50% {
        text-shadow: 0 0 80px var(--color-dopamine-violet), 0 0 160px rgba(192, 64, 255, 0.25), 0 0 40px var(--color-dopamine-green);
    }
}

#hero-tagline {
    opacity: 0;
    animation: taglineFadeIn 2s ease-out 1s forwards;
}

@keyframes taglineFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Glassmorphic Cards ===== */
.glass-card {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(var(--color-glass-void-rgb), 0.5);
    border: 1px solid rgba(var(--color-glow-violet-rgb), 0.15);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: left;
    transition: transform var(--drift-duration) ease-out, border-color 600ms ease;
}

.glass-card:hover {
    border-color: rgba(200, 100, 255, 0.3);
}

.glass-card .accent-label {
    display: block;
    margin-bottom: 1.2rem;
}

.glass-card .display-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    margin-bottom: 1.5rem;
}

/* Neon accent variations for cards */
#presence .glass-card:hover {
    border-color: var(--color-dopamine-green);
}

#rhythm .glass-card:hover {
    border-color: var(--color-dopamine-pink);
}

.glass-card .body-text {
    font-weight: 300;
}

/* ===== Closing Section ===== */
#closing {
    margin-bottom: var(--spacing-closing-bottom);
}

#closing .accent-label {
    margin-bottom: 1rem;
    display: block;
}

.closing-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: #A098C0;
    opacity: 0.6;
}

/* ===== Magnetic Drift Interaction ===== */
.magnetic-drift {
    transition: transform var(--drift-duration) ease-out;
    will-change: transform;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .content-island {
        margin: 16vw auto;
        padding: 0 2vw;
    }

    .glass-card {
        padding: 2rem 1.5rem;
    }

    #site-title {
        letter-spacing: 0.06em;
    }

    .geo-shape {
        transform: scale(0.6);
    }
}

@media (max-width: 480px) {
    .content-island {
        margin: 20vw auto;
    }

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