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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Georgia, "Trebuchet MS", serif;
    color: #24113f;
    overflow-x: hidden;
    background: linear-gradient(135deg, #24104f, #5b21b6, #c026d3, #fb7185, #fde68a);
    background-size: 350% 350%;
    animation: miscareFundal 16s ease infinite;
}

@keyframes miscareFundal {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.fundal-animat {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 10% 15%, rgba(255,255,255,.85), transparent 8%),
        radial-gradient(circle at 90% 20%, rgba(255,215,0,.5), transparent 12%),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,.4), transparent 12%);
}

.meniu {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 30px));
    z-index: 100;
    padding: 14px 20px;
    border-radius: 999px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,.25);
    border: 1px solid rgba(255,255,255,.7);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

.logo {
    color: white;
    font-weight: 900;
}

.linkuri {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.linkuri a {
    color: white;
    text-decoration: none;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 999px;
}

.linkuri a:hover {
    background: white;
    color: #6d28d9;
}

#butonMuzica {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 200;
    border: none;
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 900;
    background: white;
    color: #6d28d9;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

.decoratie {
    position: fixed;
    z-index: 5;
    pointer-events: none;
    font-size: clamp(2rem, 4vw, 4.2rem);
    filter: drop-shadow(0 10px 12px rgba(0,0,0,.18));
    animation: plutire 5s ease-in-out infinite;
}

.decoratie1 { top: 18%; left: 3%; }
.decoratie2 { top: 26%; right: 5%; animation-delay: .5s; }
.decoratie3 { bottom: 18%; left: 4%; animation-delay: 1s; }
.decoratie4 { bottom: 16%; right: 6%; animation-delay: 1.5s; }
.decoratie5 { top: 55%; left: 2%; animation-delay: 2s; }
.decoratie6 { top: 58%; right: 3%; animation-delay: 2.5s; }

@keyframes plutire {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-28px) rotate(7deg); }
}

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 130px 20px 80px;
    text-align: center;
}

.eticheta {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 3px dashed #ffd700;
    color: #6d28d9;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(0,0,0,.22);
}

.hero h1 {
    margin: 34px 0 20px;
    font-size: clamp(3.2rem, 10vw, 9rem);
    line-height: .9;
    text-transform: uppercase;
    color: white;
    text-shadow:
        0 0 10px white,
        0 0 24px #ffd700,
        0 0 55px #ff67b3,
        0 0 95px #7c3aed;
    animation: glowTitlu 2.6s ease-in-out infinite;
}

.hero h1 span {
    display: block;
    color: #fff0a6;
    text-shadow:
        5px 5px 0 #7c3aed,
        0 0 45px white,
        0 0 85px #ffd700;
}

@keyframes glowTitlu {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.035); filter: brightness(1.25); }
}

.descriere {
    max-width: 960px;
    margin: 0 auto 32px;
    color: white;
    font-size: clamp(1.25rem, 2.8vw, 2rem);
    line-height: 1.45;
    font-weight: 900;
    text-shadow: 2px 2px 0 rgba(0,0,0,.24);
}

.butoane {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 16px 26px;
    border-radius: 999px;
    font-weight: 900;
    transition: .25s;
    box-shadow: 0 16px 30px rgba(0,0,0,.26);
}

.btn:hover {
    transform: translateY(-7px) scale(1.04);
}

.principal {
    background: linear-gradient(135deg, #ffd700, #fff4ae, #ffd700);
    color: #4b3300;
}

.secundar {
    background: rgba(255,255,255,.9);
    color: #6d28d9;
}

.linie-emoji {
    margin: 48px auto 0;
    padding: 18px;
    max-width: 980px;
    border-radius: 30px;
    background: rgba(255,255,255,.28);
    border: 1px solid rgba(255,255,255,.55);
    backdrop-filter: blur(10px);
    font-size: clamp(1.5rem, 4vw, 3rem);
}

.card-profesor,
.statistici,
.scrisoare,
.grid-aprecieri,
.grid-copii,
.grid-diplome,
.final {
    width: min(1180px, calc(100% - 36px));
    margin-left: auto;
    margin-right: auto;
}

.card-profesor {
    padding: clamp(30px, 5vw, 58px);
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 42px;
    align-items: center;
    background: rgba(255,255,255,.9);
    border: 5px solid white;
    border-radius: 48px;
    box-shadow: 0 30px 75px rgba(0,0,0,.26);
}

.medalie {
    width: 290px;
    height: 290px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#ffd700, white, #ff67b3, #7c3aed, #ffd700);
    box-shadow: 0 0 40px rgba(255,215,0,.75);
}

.medalie span {
    width: 245px;
    height: 245px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff8d5, white, #eadcff);
    font-size: 6rem;
    font-weight: 900;
    color: #7c3aed;
    text-shadow: 4px 4px 0 #ffd700;
}

.subtitlu {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #7c3aed;
    font-weight: 900;
}

.text-profesor h2 {
    margin: 10px 0 18px;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    color: #7c3aed;
}

.text-profesor p {
    margin-bottom: 14px;
    font-size: clamp(1.1rem, 2.2vw, 1.42rem);
    line-height: 1.65;
    font-weight: 700;
}

.statistici {
    margin-top: 30px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.statistici div {
    padding: 30px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,.9);
    border: 3px solid white;
    text-align: center;
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.statistici strong {
    display: block;
    font-size: clamp(2.7rem, 6vw, 4.4rem);
    color: #7c3aed;
}

.statistici span {
    font-weight: 900;
}

.sectiune {
    padding: 55px 20px;
}

.titlu-sectiune {
    text-align: center;
    margin-bottom: 30px;
}

.titlu-sectiune span {
    display: block;
    font-size: 3.2rem;
}

.titlu-sectiune h2 {
    font-size: clamp(2.25rem, 6vw, 4.8rem);
    color: white;
    text-shadow: 3px 3px 0 #7c3aed;
}

.scrisoare {
    padding: clamp(34px, 5vw, 70px);
    border-radius: 46px;
    background:
        linear-gradient(90deg, rgba(255,215,0,.15) 1px, transparent 1px),
        linear-gradient(rgba(124,58,237,.07) 1px, transparent 1px),
        rgba(255,255,255,.96);
    background-size: 34px 34px;
    border: 5px solid white;
    box-shadow: 0 30px 75px rgba(0,0,0,.26);
}

.scrisoare p {
    margin-bottom: 20px;
    font-size: clamp(1.1rem, 2.1vw, 1.45rem);
    line-height: 1.78;
    font-weight: 700;
}

.inceput {
    font-size: clamp(1.35rem, 3vw, 2rem) !important;
    color: #7c3aed;
    font-weight: 900 !important;
}

.scrisoare h3 {
    text-align: center;
    margin: 30px 0 20px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #7c3aed;
}

.semnatura {
    width: fit-content;
    margin-left: auto;
    padding: 18px 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffd700, #fff1a8);
    font-size: 1.2rem;
    font-weight: 900;
}

.grid-aprecieri,
.grid-diplome {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.apreciere,
.diploma {
    min-height: 250px;
    padding: 30px 22px;
    border-radius: 34px;
    background: rgba(255,255,255,.92);
    border: 4px solid white;
    box-shadow: 0 18px 42px rgba(0,0,0,.2);
    text-align: center;
    transition: .3s;
}

.apreciere:hover,
.diploma:hover {
    transform: translateY(-12px) scale(1.035);
}

.apreciere span,
.diploma span {
    display: block;
    font-size: 3.3rem;
    margin-bottom: 12px;
}

.apreciere h3,
.diploma h3 {
    font-size: 1.5rem;
    color: #7c3aed;
    margin-bottom: 10px;
}

.apreciere p,
.diploma p {
    line-height: 1.55;
    font-weight: 700;
}

.grid-copii {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
}

.grid-copii div {
    padding: 22px 14px;
    border-radius: 28px;
    background: rgba(255,255,255,.92);
    border: 4px solid white;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: #7c3aed;
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
    transition: .25s;
}

.grid-copii div:hover {
    transform: translateY(-10px) rotate(1deg) scale(1.04);
}

.final {
    margin-top: 40px;
    margin-bottom: 45px;
    padding: clamp(36px, 5vw, 74px);
    border-radius: 48px;
    background: rgba(255,255,255,.35);
    border: 3px solid rgba(255,255,255,.82);
    backdrop-filter: blur(12px);
    text-align: center;
    box-shadow: 0 25px 65px rgba(0,0,0,.24);
}

.final h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: white;
    text-shadow: 3px 3px 0 #7c3aed;
}

.final p {
    max-width: 920px;
    margin: 20px auto;
    color: white;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    line-height: 1.65;
    font-weight: 900;
}

.mare {
    width: fit-content;
    max-width: 100%;
    margin: 25px auto;
    padding: 18px 28px;
    border-radius: 999px;
    background: white;
    color: #7c3aed;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 900;
}

footer {
    padding: 32px 20px 45px;
    text-align: center;
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
}

.petal {
    position: fixed;
    top: -60px;
    z-index: 90;
    pointer-events: none;
    font-size: 2rem;
    animation: cadere 7s linear forwards;
}

@keyframes cadere {
    from { transform: translateY(-80px) rotate(0deg); opacity: 1; }
    to { transform: translateY(115vh) rotate(680deg); opacity: .9; }
}

.scanteie {
    position: fixed;
    z-index: 1600;
    pointer-events: none;
    font-size: 1.8rem;
    animation: explozie .9s ease-out forwards;
}

@keyframes explozie {
    from { transform: translate(0,0) scale(.2) rotate(0deg); opacity: 1; }
    to { transform: translate(var(--x), var(--y)) scale(1.9) rotate(260deg); opacity: 0; }
}

@media (max-width: 1050px) {
    .card-profesor {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .medalie {
        margin: 0 auto;
    }

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

@media (max-width: 720px) {
    .meniu {
        border-radius: 26px;
        flex-direction: column;
    }

    .linkuri {
        justify-content: center;
    }

    .decoratie {
        opacity: .35;
    }

    .medalie {
        width: 230px;
        height: 230px;
    }

    .medalie span {
        width: 195px;
        height: 195px;
        font-size: 4.8rem;
    }

    .statistici,
    .grid-aprecieri,
    .grid-diplome {
        grid-template-columns: 1fr;
    }
}
