* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: #fff;
    background: #05030b;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        url("../../../images/fants.jpg") center/cover no-repeat;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 0, 180, 0.22), transparent 24%),
        radial-gradient(circle at 80% 12%, rgba(0, 120, 255, 0.18), transparent 26%),
        radial-gradient(circle at 60% 60%, rgba(188, 92, 255, 0.14), transparent 30%);
    z-index: -1;
}

.page {
    width: min(1100px, calc(100% - 24px));
    margin: 0 auto;
    padding: 28px 0 50px;
}

.hero-showcase {
    width: 100%;
    margin: 0 0 28px;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 18px;
    color: #ff7fe4;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02rem;
}

.back:hover {
    color: #ff2ebd;
}

.theme-card {
    position: relative;
    width: min(1000px, calc(100% - 18px));
    max-width: 100%;
    aspect-ratio: 16 / 9; 
    height: auto;
    margin: 0 auto;
    border-radius: 95px;
    overflow: hidden;
    border: 2px solid rgba(104, 146, 255, 0.9);
    box-shadow: 0 0 22px rgba(76, 126, 255, 0.42), 0 0 40px rgba(76, 126, 255, 0.18), 0 0 58px rgba(12, 20, 38, 0.12);
    background: linear-gradient(180deg, rgba(8, 16, 35, 0.96), rgba(5, 10, 18, 0.99));
}

.theme-art {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}

.theme-art img {
    display: block;
    width: 100%;
    height: 100%;
    /* Schimbat în COVER pentru a umple complet tot cardul fără benzi negre */
    object-fit: cover; 
    object-position: center center;
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
    background: transparent;
    transform: scale(1);
}

.banner-title {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}

.banner-title h1 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 14px;
    text-transform: uppercase;
    color: #e4d2a1;
    text-shadow: 0 0 12px rgba(214, 182, 109, 0.9), 0 0 22px rgba(88, 130, 255, 0.6), 0 0 30px rgba(0, 0, 0, 0.9);
}

.glow-line {
    width: 280px;
    height: 2px;
    margin: 6px auto 0;
    background: linear-gradient(90deg, rgba(214, 182, 109, 0.9), rgba(108, 158, 255, 0.95), rgba(214, 182, 109, 0.9));
    box-shadow: 0 0 10px rgba(214, 182, 109, 0.8), 0 0 18px rgba(88, 130, 255, 0.65);
}
@media (max-width: 640px) {
    .page {
        width: min(100%, calc(100% - 12px));
        padding-top: 16px;
    }

    .theme-card {
        width: calc(100% - 8px);
        border-radius: 18px;
        /* Păstrăm un raport orizontal pe mobil ca să încapă toată poza fără margini */
        aspect-ratio: 16 / 11; 
    }

    .banner-title {
        top: 1px;
    }

    .banner-title h1 {
        /* Micsorăm lizibil textul ca să nu iasă din ecran pe telefoane mici */
        font-size: 18px;
        letter-spacing: 5px;
    }

    .glow-line {
        width: 140px;
        height: 1.5px;
    }
}
.liquid {
    position: absolute;
    filter: blur(18px);
    opacity: 0.9;
    animation: floatLiquid 16s ease-in-out infinite alternate;
}

.liquid-one {
    display: none;
}

.liquid-two {
    width: 420px;
    height: 200px;
    right: -40px;
    top: 36%;
    border-radius: 42% 58% 49% 51% / 62% 35% 65% 38%;
    background: linear-gradient(90deg, rgba(129, 112, 255, 0.1), rgba(255, 119, 197, 0.1), rgba(255, 178, 120, 0.1));
    transform: rotate(12deg);
    animation-delay: 2s;
}

.liquid-three {
    width: 300px;
    height: 120px;
    left: 52%;
    bottom: -16px;
    border-radius: 48% 52% 58% 42% / 68% 53% 47% 32%;
    background: linear-gradient(90deg, rgba(104, 103, 101, 0.1), rgba(255, 102, 188, 0.1), rgba(138, 101, 255, 0.1));
    transform: translateX(-50%) rotate(9deg);
    animation-delay: 4s;
}

.mentors-section {
    width: min(980px, 100%);
    margin: 0 auto 30px;
    padding: 0 10px;
}

.mentors-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    padding: 0 12px;
}

.mentors-header span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(100%, 520px);
    padding: 14px 26px;
    border: 3px solid rgba(90, 134, 255, 0.95);
    background: linear-gradient(180deg, rgba(12, 22, 42, 0.94), rgba(7, 10, 20, 0.98));
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 0 18px rgba(90, 134, 255, 0.8), 0 0 32px rgba(90, 134, 255, 0.38), 0 0 46px rgba(214, 182, 109, 0.12), 0 12px 24px rgba(0, 0, 0, 0.28);
    color: #d9c69a;
    letter-spacing: 0.02em;
    font-style: normal;
    font-size: clamp(2.2rem, 3vw, 3.1rem);
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 8px rgba(214, 182, 109, 0.9), 0 0 16px rgba(90, 134, 255, 0.8), 0 3px 10px rgba(0,0,0,0.9);
    overflow: hidden;
    border-radius: 12px;
}

.mentors-header span::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
    pointer-events: none;
}

.mentors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.mentor-card {
    position: relative;
    width: 100%;
    background: rgba(12, 18, 32, 0.7);
    border: 1px solid rgba(102, 144, 255, 0.9);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 0 18px rgba(92, 138, 255, 0.52), 0 0 30px rgba(214, 182, 109, 0.12), 0 10px 24px rgba(0, 0, 0, 0.18);
    isolation: isolate;
}

.mentor-image-wrap {
    position: relative;
    width: 100%;
    height: 280px;
    background: #1f1d23;
    overflow: hidden;
    border: 1px solid rgba(102, 144, 255, 0.78);
    border-radius: 22px 22px 0 0;
    box-shadow: inset 0 0 0 1px rgba(214, 182, 109, 0.06), 0 0 12px rgba(78, 128, 255, 0.2);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    z-index: 1;
}

.mentor-image-wrap:hover,
.mentor-image-wrap:focus-within {
    border-color: rgba(120, 164, 255, 0.95);
    box-shadow: inset 0 0 0 1px rgba(214, 182, 109, 0.1), 0 0 20px rgba(90, 134, 255, 0.16);
}

.mentor-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(0.2) contrast(1.15) brightness(0.9);
    transform: scale(1.04);
}

.mentor-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 10, 20, 0.08), rgba(6, 8, 15, 0.78));
    box-shadow: inset 0 -24px 40px rgba(255, 110, 185, 0.1);
}

.mentor-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 12px 10px 14px;
    background: linear-gradient(180deg, rgba(10, 20, 15, 0.18), rgba(8, 13, 12, 0.8));
    text-align: center;
    text-shadow: 0 0 10px rgba(0,0,0,0.95), 0 0 20px rgba(0,0,0,0.85);
}

@media (max-width: 780px) {
    .mentors-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mentor-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .mentor-image-wrap {
        height: 330px;
    }
}

.mentor-name {
    font-size: 1.15rem;
    color: #d9e6ff;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 0 5px rgba(110, 160, 255, 0.7), 0 0 10px rgba(214, 182, 109, 0.35), 0 2px 8px rgba(0,0,0,0.82);
}

.mentor-role {
    font-size: 0.9rem;
    color: #f0d79c;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(214, 182, 109, 0.8), 0 0 12px rgba(90, 134, 255, 0.45), 0 2px 8px rgba(0,0,0,0.8);
}

.mentor-connector {
    display: none;
}

.character-card {
    width: min(980px, 100%);
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(9, 20, 38, 0.98), rgba(4, 8, 16, 0.99));
    border: 1px solid rgba(102, 144, 255, 0.28);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.28), 0 0 22px rgba(88, 130, 255, 0.12);
}

.character-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(90, 134, 255, 0.14), rgba(214, 182, 109, 0.12));
    border: 1px solid rgba(214, 182, 109, 0.32);
    color: #e8d4a3;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.character-visual {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 18px 18px 0;
}

.character-visual img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 760px;
    object-fit: contain;
    object-position: center center;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.character-body {
    padding: 28px 26px 34px;
    text-align: center;
}

.character-body h1 {
    font-size: clamp(2.1rem, 3vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
    font-weight: 900;
    color: #fff;
}

.character-body p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.8;
}

.footer {
    padding: 18px 12px 28px;
    text-align: center;
}

.made-by-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes floatLiquid {
    0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(-8deg);
    }
    50% {
        transform: translate3d(18px, -12px, 0) scale(1.08) rotate(5deg);
    }
    100% {
        transform: translate3d(-10px, 8px, 0) scale(1.02) rotate(-2deg);
    }
}

@keyframes flowZigZag {
    0% {
        transform: translate3d(0, 0, 0) scaleY(1) skewX(0deg);
    }
    50% {
        transform: translate3d(0, 5px, 0) scaleY(1.02) skewX(0deg);
    }
    100% {
        transform: translate3d(0, 10px, 0) scaleY(1.04) skewX(0deg);
    }
}

@media (max-width: 760px) {
    .theme-art {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .mentors-grid {
        grid-template-columns: 1fr;
        gap: 15px; /* Spaiu aerisit între carduri */
        padding: 10px 0;
    }

    .mentor-card {
        position: relative;
        width: 100%;
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid rgba(88, 130, 255, 0.9);
        box-shadow: 0 0 12px rgba(88, 130, 255, 0.25), 0 0 18px rgba(88, 130, 255, 0.14);
        background: #0a0609;
        margin-bottom: 10px;
    }

    /* Containerul imaginii - păstrăm proporția corectă de profil */
    .mentor-image-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5; /* Raport vertical ideal pentru portrete pe mobil */
        overflow: hidden;
        position: relative;
    }

    .mentor-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%; /* Centrează imaginea pe fața mentorului */
        display: block;
    }

    .mentor-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 20px 12px 12px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, transparent);
        text-align: center;
        box-sizing: border-box;
    }

    .character-visual img {
        height: auto;
        max-height: 300px;
        width: 100%;
        object-fit: contain;
    }

    /* Scoatem linia mov/roz care se suprapunea ciudat peste carduri */
    .mentor-card::after,
    .mentor-card::before {
        display: none;
    }
}

@media (max-width: 560px) {
    .page {
        width: min(100%, calc(100% - 18px));
        padding-top: 16px;
    }

    .theme-card {
        border-radius: 24px;
    }

    .theme-art {
        height: 260px;
    }

    .liquid-one {
        width: 220px;
        height: 110px;
    }

    .liquid-two {
        width: 260px;
        height: 120px;
    }

    .mentors-header span {
        font-size: 1.5rem;
    }

    .mentor-label {
        min-height: 44px;
        font-size: 1rem;
    }

    .character-card {
        border-radius: 22px;
    }

    .character-visual {
        padding: 12px 12px 0;
    }

    .character-visual img {
     display: block;
     width: 100%;
     height: auto;
     max-height: none;
     object-fit: contain;
     border-radius: 18px;
    }

    .character-body {
        padding: 20px 16px 26px;
    }

    .character-body p {
        font-size: 0.92rem;
        line-height: 1.7;
    }
}
