:root {
    --bg: #060512;
    --accent: #a568c9;
    --text: #eae6f5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ========== HERO SECTION ========== */

#hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #060512; /* fallback */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(165, 104, 201, 0.25) 0%,
        rgba(80, 50, 120, 0.1) 40%,
        rgba(6, 5, 18, 1) 80%
    );
    animation: breatheBackground 10s ease-in-out infinite alternate;
}

#hero .content {
    position: relative;
    z-index: 1;
}

#hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(
        to bottom,
        rgba(6, 5, 18, 0),
        rgba(6, 5, 18, 1)
    );
    pointer-events: none;
}

#graphic {
    max-width: 80vw;
    animation: scrollSize auto linear;
    animation-timeline: scroll(root);
}

@keyframes scrollSize {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.5);
    }
}

@keyframes breatheBackground {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    100% {
        transform: scale(1.3);
        filter: brightness(1.2);
    }
}

/* ========== LANGUAGE SWITCHER STYLING ========== */

#lang-toggle {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 1000;
    background: rgba(165, 104, 201, 0.15);
    color: #a568c9;
    border: 1px solid rgba(165, 104, 201, 0.4);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

#lang-toggle:hover {
    background: rgba(165, 104, 201, 0.3);
    color: #fff;
    box-shadow: 0 0 10px rgba(165, 104, 201, 0.5);
}

/* ========== SECTION STYLING ========== */

section {
    padding: 6rem 10%;
    position: relative;
    transition: background 1s ease;
}

h2 {
    color: var(--accent);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 2px;
}

h3 {
    color: var(--accent);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

/* ========== CONTENT ========== */
main p {
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
    line-height: 1.7;
    font-size: 1.3rem;
}

iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 10px;
    margin-top: 1rem;
}

/* GALLERY */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(165, 104, 201, 0.3);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transition: all 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
}
