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

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

body {
    font-family: "Nunito", Arial, sans-serif;
    color: #222;
    overflow-x: hidden;

    background-color: #cbbbe3;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='380' height='380'><g fill='%237924f7' opacity='0.09' transform='translate(60,60)'><circle cx='0' cy='-7.0' r='4.2' transform='rotate(0)'/><circle cx='0' cy='-7.0' r='4.2' transform='rotate(60)'/><circle cx='0' cy='-7.0' r='4.2' transform='rotate(120)'/><circle cx='0' cy='-7.0' r='4.2' transform='rotate(180)'/><circle cx='0' cy='-7.0' r='4.2' transform='rotate(240)'/><circle cx='0' cy='-7.0' r='4.2' transform='rotate(300)'/></g><circle cx='60' cy='60' r='2.2' fill='%23d94f8f' opacity='0.13'/><g fill='%23d94f8f' opacity='0.09' transform='translate(340,260)'><circle cx='0' cy='-6.0' r='3.6' transform='rotate(0)'/><circle cx='0' cy='-6.0' r='3.6' transform='rotate(60)'/><circle cx='0' cy='-6.0' r='3.6' transform='rotate(120)'/><circle cx='0' cy='-6.0' r='3.6' transform='rotate(180)'/><circle cx='0' cy='-6.0' r='3.6' transform='rotate(240)'/><circle cx='0' cy='-6.0' r='3.6' transform='rotate(300)'/></g><circle cx='340' cy='260' r='1.9' fill='%237924f7' opacity='0.13'/><g fill='%237924f7' opacity='0.09' transform='translate(300,70)'><circle cx='0' cy='-3.9' r='2.3' transform='rotate(0)'/><circle cx='0' cy='-3.9' r='2.3' transform='rotate(60)'/><circle cx='0' cy='-3.9' r='2.3' transform='rotate(120)'/><circle cx='0' cy='-3.9' r='2.3' transform='rotate(180)'/><circle cx='0' cy='-3.9' r='2.3' transform='rotate(240)'/><circle cx='0' cy='-3.9' r='2.3' transform='rotate(300)'/></g><circle cx='300' cy='70' r='1.2' fill='%23d94f8f' opacity='0.13'/><g fill='%237924f7' stroke='%237924f7' opacity='0.13' transform='translate(120,300) scale(0.9)'><g transform='translate(-15.5,0)'><circle cx='0' cy='-12' r='3.1'/><path d='M-3.6,10 L3.6,10 L2.4,-3.5 Q0,-7 -2.4,-3.5 Z'/><line x1='-2.2' y1='-2' x2='-7.5' y2='2.5' stroke-width='2' stroke-linecap='round'/><line x1='2.2' y1='-2' x2='7.5' y2='2.5' stroke-width='2' stroke-linecap='round'/></g><g transform='translate(0,0)'><circle cx='0' cy='-12' r='3.1'/><path d='M-3.6,10 L3.6,10 L2.4,-3.5 Q0,-7 -2.4,-3.5 Z'/><line x1='-2.2' y1='-2' x2='-7.5' y2='2.5' stroke-width='2' stroke-linecap='round'/><line x1='2.2' y1='-2' x2='7.5' y2='2.5' stroke-width='2' stroke-linecap='round'/></g><g transform='translate(15.5,0)'><circle cx='0' cy='-12' r='3.1'/><path d='M-3.6,10 L3.6,10 L2.4,-3.5 Q0,-7 -2.4,-3.5 Z'/><line x1='-2.2' y1='-2' x2='-7.5' y2='2.5' stroke-width='2' stroke-linecap='round'/><line x1='2.2' y1='-2' x2='7.5' y2='2.5' stroke-width='2' stroke-linecap='round'/></g></g><path d='M330,141 L339,150 L330,159 L321,150 Z' fill='none' stroke='%23d94f8f' stroke-width='1.3' opacity='0.14'/><path d='M40,193 L47,200 L40,207 L33,200 Z' fill='none' stroke='%237924f7' stroke-width='1.3' opacity='0.14'/></svg>"),
        linear-gradient(rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.30)),
        radial-gradient(circle at 20% 20%, #7924f7, transparent 30%),
        radial-gradient(circle at 80% 80%, #d94f8f, transparent 30%),
        linear-gradient(135deg, #c9b8e4, #e6c3d9);
    background-size: 380px 380px, auto, auto, auto, auto;

    background-attachment: fixed;
    min-height: 100vh;
}

header {
    min-height: 650px;
    color: white;
    text-align: center;
    padding: 55px 20px 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(rgba(71, 40, 77, 0.62), rgba(71, 40, 77, 0.76)),
        url("./poze/poza1.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

header h1 {
    font-family: "Playfair Display", serif;
    font-size: 72px;
    line-height: 1.05;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 22px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

.logo-box {
    margin: 45px auto 0;
    width: 290px;
    height: 290px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.logo-header {
    width: 262px;
    max-width: 90%;
    height: auto;
    display: block;

    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.hero-button {
    display: inline-block;
    margin-top: 35px;
    padding: 14px 32px;

    background: #ffffff;
    color: #5b16c9;
    text-decoration: none;
    font-weight: 800;
    border-radius: 999px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.3);
}

nav {
    background-color: rgba(70, 22, 142, 0.96);
    padding: 16px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(12px);
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    font-size: 16px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

nav a:hover {
    opacity: 0.75;
    transform: translateY(-2px);
}

main {
    padding: 10px 15px 40px;
}

section {
    scroll-margin-top: 70px;
    max-width: 1100px;
    margin: 90px auto;
    background-color: rgba(255, 255, 255, 0.88);
    padding: 45px;
    border-radius: 22px;
    border: 2px solid #000;

    backdrop-filter: blur(10px);
    box-shadow: 0 15px 45px rgba(70, 22, 142, 0.12);
}

h2 {
    font-family: "Playfair Display", serif;
    color: #7924f7;
    font-size: 38px;
    margin-bottom: 18px;
}

h3 {
    color: #2b174f;
    margin-bottom: 10px;
    font-size: 22px;
}

p {
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 14px;
}

.carduri {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.card {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(135deg, #fff, #f4edff);
    padding: 25px;
    border-radius: 18px;

    border: 2px solid #000;
    box-shadow: 0 12px 30px rgba(70, 22, 142, 0.09);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(70, 22, 142, 0.18);
}

.date-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 25px;
}

#comunitate .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

#comunitate .event-details {
    margin-top: 25px;
}

#comunitate .event-details p {
    margin-bottom: 10px;
}

#comunitate .event-details p:last-child {
    margin-bottom: 0;
}

.info-card,
.stat-card {
    background: linear-gradient(135deg, #ffffff, #f4edff);
    padding: 24px;
    border-radius: 18px;
    text-align: center;

    border: 2px solid #000;
    box-shadow: 0 12px 30px rgba(70, 22, 142, 0.09);
}

.stat-card h3 {
    font-size: 34px;
    color: #7924f7;
}

.event-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 35px;
    align-items: center;
    margin-top: 20px;
}

.event-details {
    margin-top: 22px;
    padding: 20px;
    border-radius: 18px;
    background: #f8f1ff;
    border: 2px solid #000;
    border-left: 6px solid #000;
}

.poster-box {
    display: flex;
    justify-content: center;
}

.poster-eveniment {
    width: 420px;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid #000;
    box-shadow: 0 20px 50px rgba(70, 22, 142, 0.25);
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.galerie-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 18px;
    border: 2px solid #000;
    box-shadow: 0 14px 35px rgba(70, 22, 142, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galerie-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 50px rgba(70, 22, 142, 0.28);
}

.video-box {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.video-box iframe {
    width: 100%;
    max-width: 850px;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(70, 22, 142, 0.25);
    border: 2px solid #000;
}

ul {
    padding-left: 24px;
}

li {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.5;
}

.buton-contact {
    display: inline-block;
    margin-top: 18px;

    background: linear-gradient(135deg, #7924f7, #d94f8f);
    color: white;
    padding: 14px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;

    box-shadow: 0 14px 35px rgba(121, 36, 247, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.buton-contact:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(121, 36, 247, 0.35);
}

footer {
    background-color: #46168e;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin-bottom: 5px;
    font-size: 16px;
}

/* ANIMATII SCROLL */

.reveal {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-left {
    transform: translateX(-150px);
}

.reveal-right {
    transform: translateX(150px);
}

.reveal-up {
    transform: translateY(150px);
}

.reveal-zoom {
    transform: scale(0.82);
}

.reveal.active {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* RESPONSIVE */

@media (max-width: 950px) {
    header h1 {
        font-size: 54px;
    }

    .date-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-layout {
        grid-template-columns: 1fr;
    }

    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    header {
        min-height: auto;
        padding: 45px 15px 65px;
    }

    header h1 {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .logo-box {
        width: 200px;
        height: 200px;
    }

    .logo-header {
        width: 180px;
    }

    nav {
        gap: 12px;
        padding: 14px 10px;
    }

    nav a {
        font-size: 14px;
    }

    section {
        margin: 60px auto;
        padding: 28px 22px;
        border-radius: 18px;
    }

    h2 {
        font-size: 31px;
    }

    p,
    li {
        font-size: 16px;
    }

    .date-grid,
    .stats-grid,
    .galerie-grid {
        grid-template-columns: 1fr;
    }

    .galerie-grid img {
        height: 270px;
    }
}

/* MOBIL – performanta si fara depasiri orizontale */

@media (max-width: 650px) {
    body {
        background-attachment: scroll;
    }

    section {
        backdrop-filter: none;
        background-color: rgba(255, 255, 255, 0.94);
    }

    .reveal-left {
        transform: translateX(-40px);
    }

    .reveal-right {
        transform: translateX(40px);
    }

    .reveal-up {
        transform: translateY(60px);
    }

    .reveal-zoom {
        transform: scale(0.94);
    }

    nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav a {
        flex: 0 0 auto;
        padding: 4px 6px;
    }
}

/* ACCESIBILITATE – focus vizibil si animatii reduse */

a:focus-visible {
    outline: 3px solid #d94f8f;
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-up,
    .reveal-zoom {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .card:hover,
    .hero-button:hover,
    .buton-contact:hover,
    .galerie-grid img:hover,
    nav a:hover {
        transform: none;
    }
}
