/* ===== VARIABILE ===== */
:root{
    --primary:#6d3cf7;
    --primary-dark:#5427d6;
    --secondary:#b89cff;
    --bg:#f5efff;
    --card:#ffffff;
    --text:#1f1f1f;
    --shadow:0 10px 30px rgba(109,60,247,.12);
}

/* ===== RESET ===== */
*{
    margin:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.6;
}

/* ===== CONTAINER ===== */
.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

section{
    padding:80px 0;
}

/* ===== HEADER / NAV ===== */
header{
    position:sticky;
    top:0;
    z-index:999;
    backdrop-filter:blur(15px);
    background:rgba(233,218,251,.92);
    border-bottom:1px solid rgba(255,255,255,.3);
}

.navbar{
    max-width:1200px;
    margin:auto;
    padding:14px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    position:relative;
}

.logo{
    flex-shrink:0;
}

.logo img{
    width:140px;
    height:auto;
    display:block;
}

/* Desktop nav links */
.navbar ul{
    display:flex;
    gap:28px;
    list-style:none;
    align-items:center;
}

nav a{
    text-decoration:none;
    color:#333;
    font-weight:600;
    font-size:15px;
    transition:.3s;
}

nav a:hover{
    color:var(--primary);
}

/* CTA button in nav */
a.btn, .nav-cta{
    font-weight:700;
    padding:11px 28px;
    color:#ffffff;
    border-radius:50px;
    background:linear-gradient(135deg,#7b4dff,#5b2de1);
    text-decoration:none;
    white-space:nowrap;
    transition:.3s;
    flex-shrink:0;
}

a.btn:hover, .nav-cta:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(95,44,255,.3);
}

/* Hamburger - ascuns pe desktop */
.nav-toggle{
    display:none;
    background:none;
    border:none;
    font-size:24px;
    color:#333;
    cursor:pointer;
    padding:5px;
    line-height:1;
}

/* ===== HERO ===== */
.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:60px 10% 40px;
    background:rgba(233,218,251,.75);
    gap:40px;
}

.hero-left{
    flex:0 0 45%;
    color:#1f1f1f;
}

.hero-right{
    flex:0 0 50%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-logo{
    width:100%;
    max-width:380px;
    height:auto;
    margin-bottom:25px;
    animation:float 4s ease-in-out infinite;
}

.hero-left h1{
    font-size:clamp(32px,5vw,64px);
    line-height:1.15;
    margin-bottom:16px;
}

.hero-left p{
    font-size:clamp(16px,2.5vw,22px);
    color:#333;
    margin-bottom:30px;
}

.hero-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:14px 32px;
    background:linear-gradient(135deg,#7b4dff,#5b2de1);
    color:#fff;
    border-radius:50px;
    text-decoration:none;
    font-weight:700;
    font-size:16px;
    transition:.3s;
}

.hero-btn:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 30px rgba(95,44,255,.3);
}

.hero-book{
    width:100%;
    max-width:520px;
    height:auto;
}

/* ===== TITLURI SECTIUNI ===== */
h1.title{
    text-align:center;
    font-size:clamp(26px,4vw,40px);
    margin:40px 0 10px;
    color:#1f1f1f;
}

/* ===== MATERII ===== */
.subjects{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    gap:20px;
    padding:0 5% 40px;
}

.subject-card{
    background:white;
    border-radius:20px;
    padding:26px 20px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:.35s;
}

.subject-card:hover{
    transform:translateY(-8px);
}

.subject-card i{
    font-size:2.5rem;
    color:var(--primary);
    margin-bottom:12px;
}

/* ===== PROFESORI ===== */
.teachers{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:30px;
    padding:0 5% 40px;
}

.teacher-card{
    background:white;
    border-radius:24px;
    padding:30px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:.4s;
}

.teacher-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,.10);
}

.teacher-card img{
    width:140px;
    height:140px;
    object-fit:cover;
    border-radius:50%;
    margin-bottom:15px;
    border:5px solid #f3ecff;
}

.teacher-card h3{
    margin-bottom:10px;
    font-size:1.3rem;
}

.teacher-card p{
    color:#666;
}

.stars{
    margin:10px 0;
}

.stars i{
    color:#ffc107;
    font-size:18px;
    margin:0 2px;
}

/* ===== RECENZII SLIDER ===== */
.reviews-section{
    padding:80px 20px;
    text-align:center;
}

.reviews-section h2{
    font-size:clamp(22px,4vw,2.2rem);
    margin-bottom:40px;
}

.reviews-slider{
    max-width:1200px;
    margin:auto;
    overflow:hidden;
    position:relative;
}

.slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:white;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    cursor:pointer;
    z-index:5;
    font-size:14px;
}

.prev{ left:0; }
.next{ right:0; }

.reviews-track{
    display:flex;
    gap:24px;
    transition:transform .5s ease;
    padding:10px 4px;
}

.review-card{
    flex:0 0 calc((100% - 48px)/3);
    background:white;
    border-radius:22px;
    padding:28px;
    min-height:200px;
    box-shadow:0 10px 30px rgba(109,60,247,.08);
    transition:.3s;
    text-align:left;
}

.review-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(109,60,247,.12);
}

.review-stars{
    display:flex;
    align-items:center;
    gap:4px;
    margin-bottom:14px;
}

.review-stars i{
    color:#ffc107;
    font-size:17px;
}

.review-text{
    color:#333;
    line-height:1.7;
    min-height:80px;
    margin-bottom:16px;
}

.review-author{
    font-weight:600;
    color:#444;
}

.review-dots{
    text-align:center;
    margin-top:25px;
}

.review-dots span{
    display:inline-block;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#d6c6ff;
    margin:0 5px;
    cursor:pointer;
    transition:.3s;
}

.review-dots span.active{
    background:#6d3cf7;
    width:28px;
    border-radius:5px;
}

/* ===== CONTACT / INSCRIERE ===== */
.contact-section{
    background:#f6f1ff;
    padding:80px 20px 30px;
}

.contact-wrapper{
    max-width:1100px;
    margin:0 auto;
    display:flex;
    gap:30px;
    align-items:flex-start;
}

/* FORMULAR */
.contact-form{
    flex:2;
    background:#fff;
    padding:35px;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.04);
}

.contact-form h1{
    font-size:clamp(26px,4vw,42px);
    color:#1f1f1f;
    margin-bottom:20px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.form-grid .full{
    grid-column:1 / -1;
}

.contact-form input,
.contact-form select{
    width:100%;
    height:56px;
    padding:0 16px;
    border:1px solid #e3d8ff;
    border-radius:14px;
    background:#fff;
    font-size:15px;
    font-family:'Poppins',sans-serif;
    transition:.3s;
}

.contact-form input:focus,
.contact-form select:focus{
    outline:none;
    border-color:#7b4dff;
    box-shadow:0 0 0 4px rgba(123,77,255,.12);
}

.btn-submit{
    grid-column:1 / -1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    height:56px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,#7b4dff,#5b2de1);
    color:white;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
    font-family:'Poppins',sans-serif;
}

.btn-submit:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(124,77,255,.25);
}

.btn-submit i{
    transition:.3s;
}

.btn-submit:hover i{
    transform:translateX(5px);
}

/* CARD CONTACT */
.contact-card{
    flex:1;
    background:#fff;
    padding:35px;
    border-radius:25px;
    border:1px solid #ece4ff;
    min-width:260px;
}

.contact-card h3{
    font-size:26px;
    margin-bottom:22px;
}

.contact-card p{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
    color:#333;
    font-size:15px;
    word-break:break-word;
}

.contact-card i{
    color:#6b3df1;
    width:20px;
    flex-shrink:0;
}

.socials{
    display:flex;
    gap:18px;
    margin-top:22px;
}

.socials a{
    color:#6b3df1;
    text-decoration:none;
}

.socials i{
    font-size:24px;
    cursor:pointer;
    transition:.3s;
}

.socials i:hover{
    transform:translateY(-3px);
    color:var(--primary-dark);
}

/* COPYRIGHT */
.copyright{
    text-align:center;
    margin-top:30px;
    color:#666;
    font-size:14px;
}

/* LOGO PRINCIPAL */
.logo-principal{
    width:250px;
    height:auto;
    display:block;
    margin:0 auto;
    animation:float 4s ease-in-out infinite;
}

/* ===== ALERTE ===== */
.alert-success{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px 20px;
    margin-bottom:22px;
    background:#ecfdf3;
    border:1px solid #86efac;
    border-left:5px solid #22c55e;
    color:#166534;
    border-radius:14px;
    font-weight:500;
    animation:fadeIn .4s ease;
}

.alert-success i{
    font-size:20px;
    color:#22c55e;
    flex-shrink:0;
}

.alert-error{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px 20px;
    margin-bottom:22px;
    background:#fef2f2;
    border:1px solid #fca5a5;
    border-left:5px solid #ef4444;
    color:#991b1b;
    border-radius:14px;
    font-weight:500;
}

/* ===== ANIMATII ===== */
@keyframes float{
    0%  { transform:translateY(0); }
    50% { transform:translateY(-15px); }
    100%{ transform:translateY(0); }
}

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

.reveal{
    opacity:0;
    transform:translateY(50px);
    transition:1s;
}

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

footer{
    text-align:center;
    padding:30px;
    color:#666;
}

/* ===================================================
   RESPONSIVE – TABLET  (max 900px)
   =================================================== */
@media(max-width:900px){

    /* Hero stivuit vertical */
    .hero{
        flex-direction:column;
        text-align:center;
        padding:80px 6% 50px;
        min-height:auto;
        gap:30px;
    }

    .hero-left,
    .hero-right{
        flex:none;
        width:100%;
    }

    .hero-logo{
        max-width:260px;
        margin:0 auto 20px;
    }

    .hero-book{
        max-width:340px;
        margin:0 auto;
    }

    .hero-btn{
        margin:0 auto;
    }

    /* Contact stivuit */
    .contact-wrapper{
        flex-direction:column;
    }

    .contact-card{
        min-width:unset;
        width:100%;
    }

    /* Formular - o coloana */
    .form-grid{
        grid-template-columns:1fr;
    }

    /* Slider - 1 card pe pagina */
    .review-card{
        flex:0 0 100%;
    }

    .slider-btn{
        display:none;
    }
}

/* ===================================================
   RESPONSIVE – MOBIL  (max 640px)
   =================================================== */
@media(max-width:640px){

    /* Navbar mobil */
    .nav-toggle{
        display:block;
        order:3;
    }

    .nav-cta{
        display:none; /* ascuns, exista buton in hero */
    }

    .navbar ul{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        right:0;
        flex-direction:column;
        gap:0;
        background:rgba(240,230,255,.97);
        backdrop-filter:blur(10px);
        border-bottom:2px solid #ddd0ff;
        padding:10px 0;
        box-shadow:0 8px 20px rgba(0,0,0,.1);
    }

    .navbar ul.open{
        display:flex;
    }

    .navbar ul li a{
        display:block;
        padding:13px 24px;
        font-size:16px;
        border-bottom:1px solid #ece4ff;
    }

    .navbar ul li:last-child a{
        border-bottom:none;
    }

    /* Hero */
    .hero{
        padding:70px 5% 40px;
    }

    .hero-logo{
        max-width:200px;
    }

    .hero-book{
        max-width:260px;
    }

    /* Materii - 2 coloane pe mobil */
    .subjects{
        grid-template-columns:repeat(2,1fr);
        padding:0 4% 30px;
        gap:14px;
    }

    .subject-card{
        padding:20px 12px;
    }

    .subject-card i{
        font-size:2rem;
    }

    /* Profesori - 1 coloana */
    .teachers{
        grid-template-columns:1fr;
        padding:0 4% 30px;
    }

    /* Formular padding mai mic */
    .contact-form{
        padding:24px 20px;
    }

    .contact-card{
        padding:24px 20px;
    }

    /* Recenzii - 1 pe pagina */
    .reviews-section{
        padding:60px 12px;
    }

    .review-card{
        flex:0 0 calc(100% - 0px);
        padding:22px;
    }

    h1.title{
        margin:30px 5% 8px;
    }
}
