/* ===== ROOT & GLOBAL ===== */
:root {
    --accent: #bb02ff;
    --text-muted: rgba(255,255,255,0.7);
    --content-width: 800px;
}

* {
    box-sizing: border-box;
    margin: 0;
}

@font-face {
    font-family: 'Arberkley';
    src: url('./static/ARBERKLEY.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #000;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: white;
}

/* ===== LAYOUT ===== */
main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

section {
    max-width: var(--content-width);
    margin: 5rem auto 0;
}

section:first-of-type {
    margin-top: 0;
}

/* ===== HERO ===== */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 18vh;
    gap: 0.75rem;
}

.hero .brand {
    font-weight: 400;
    color: white;
    text-shadow: 0 0 12px rgba(255,255,255,0.15);
    font-size: clamp(3.25rem, 10vw, 4rem);
    line-height: 1;
}

.hero .e {
    font-family: 'Arberkley';
    font-size: clamp(5rem, 16vw, 6.5rem);
}

.hero .hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.25rem);
    font-weight: 500;
    line-height: 1.2;
}

.hero .hero-subtitle .accent {
    color: var(--accent);
}

.hero .hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.5rem;
    font-weight: 400;
    border-left: solid var(--accent);
    padding: 1.25rem;
}

/* ===== CARDS ===== */
.cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6.5px);
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    color: var(--accent);
}

.card p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== CONTACT ===== */
.contact {
    padding: 2.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6.5px);
}

.contact h2 {
    margin-top: 0;
    font-size: 2rem;
}

.contact form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

input, textarea {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
}

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

button {
    margin-top: 0.5rem;
    background: var(--accent);
    color: black;
    border: none;
    border-radius: 10px;
    padding: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    margin-top: 6rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

footer a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    transition: all 0.3s ease;
}

footer a:hover {
    color: #00fff5;
    border-bottom-color: #00fff5;
    text-shadow: 0 0 8px rgba(0, 255, 245, 0.5);
}

/* ===== MEDIA QUERIES ===== */
@media (min-width: 769px) {
    .hero {
        min-height: 40vh;
        gap: 1rem;
    }

    .hero .brand {
        font-size: clamp(2.5rem, 10vw, 6rem);
    }

    .hero .e {
        font-size: clamp(5rem, 20vw, 13rem);
    }

    .hero .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.75rem);
    }

    .waves-bg {
        height: auto;
        object-fit: initial;
    }
}

/* ===== BACKGROUND EFFECTS & ANIMATIONS ===== */
.waves-bg {
    position: fixed;
    top: 0;
    left: 50%;
    width: 150%;
    height: 90vh;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
    transform: translateX(-50%);
    transform-origin: center top;
    animation: waveFlow 20s ease-in-out infinite;
}

@keyframes waveFlow {
    0% {
        transform: translateX(-50%) translateY(0) scaleX(1) scaleY(1);
        opacity: 0.35;
        filter: blur(0px) brightness(1) hue-rotate(0deg);
    }
    25% {
        transform: translateX(-48%) translateY(-12px) scaleX(1.03) scaleY(1.02);
        opacity: 0.5;
        filter: blur(0.5px) brightness(1.2) hue-rotate(8deg);
    }
    50% {
        transform: translateX(-50%) translateY(-6px) scaleX(1) scaleY(1.04);
        opacity: 0.6;
        filter: blur(0.3px) brightness(1.35) hue-rotate(15deg);
    }
    75% {
        transform: translateX(-52%) translateY(-14px) scaleX(0.97) scaleY(1.01);
        opacity: 0.45;
        filter: blur(0.5px) brightness(1.15) hue-rotate(5deg);
    }
    100% {
        transform: translateX(-50%) translateY(0) scaleX(1) scaleY(1);
        opacity: 0.35;
        filter: blur(0px) brightness(1) hue-rotate(0deg);
    }
}

.glow,
.beams,
.fog {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.glow {
    bottom: 0;
    top: auto;
    left: 33%;
    width: 150vw;
    height: 70vh;
    transform: translateX(-50%);
    background: radial-gradient(
        circle at 50% 100%,
        rgba(202, 7, 209, 0.35),
        rgba(0,0,0,0)
    );
    filter: blur(80px);
    animation: pulse 14s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.35; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.3); }
}

.beam {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50vw;
    background: linear-gradient(
        115deg,
        rgba(0,255,200,0.08),
        rgba(0,0,0,0)
    );
    transform: rotate(-5deg);
    filter: blur(4px);
    animation: drift 140s linear infinite;
}

.beam:nth-child(1) { opacity: 0.25; }
.beam:nth-child(2) { opacity: 0.18; animation-delay: -30s; }
.beam:nth-child(3) { opacity: 0.22; animation-delay: -60s; }
.beam:nth-child(4) { opacity: 0.15; animation-delay: -90s; }

@keyframes drift {
    from { transform: translateX(100%) rotate(-5deg); }
    to   { transform: translateX(-100%) rotate(-5deg); }
}

.fog {
    opacity: 0.25;
    filter: blur(6px);
    animation: fogMove 120s linear infinite;
    background-size: 1200px 1200px;
}

@keyframes fogMove {
    from { background-position: 0 0; }
    to   { background-position: -2000px 0; }
}
