/* =============================================
   landing.css — SMA Negeri 10 Pontianak
   ============================================= */

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

:root {
    --green-dark:  #1a5c2a;
    --green-main:  #2a7a3b;
    --green-light: #3a9b50;
    --white:       #ffffff;
    --font:        'Plus Jakarta Sans', sans-serif;
    --text-dim:    rgba(255,255,255,0.55);
    --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font);
}

/* ── HERO WRAPPER ─────────────────────────────── */
.hero {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ── LEFT PANEL ───────────────────────────────── */
.hero-left {
    position: relative;
    width: 45%;
    background: linear-gradient(to right, var(--green-dark), var(--green-main));
    display: flex;
    flex-direction: column;
    padding: 36px 48px;
    z-index: 2;
    overflow: hidden;
}

/* Wave SVG */
.wave-divider {
    position: absolute;
    left: 45%;
    transform: translateX(-2px);
    top: -10%;
    height: 120%;
    width: 120px;
    z-index: 5;
    pointer-events: none;
    color: var(--green-main);
    filter: drop-shadow(23px 0 4px rgba(48, 142, 71, 0.728));
    animation: waveDrift 6s ease-in-out infinite;
    transform-origin: left center;
}

.wave-divider path:first-child {
    animation: waveMorph 6s ease-in-out infinite;
}

@keyframes waveDrift {
    0%, 100% { transform: translateX(-2px) scaleX(1);    }
    50%       { transform: translateX(-2px) scaleX(1.10); }
}

@keyframes waveMorph {
    0%, 100% {
        d: path("M100,0 C50,150 130,300 40,450 C-20,600 80,750 100,900 L0,900 L0,0 Z");
    }
    25% {
        d: path("M100,0 C70,150 110,300 55,450 C10,600 90,750 100,900 L0,900 L0,0 Z");
    }
    50% {
        d: path("M100,0 C40,150 140,300 30,450 C-30,600 70,750 100,900 L0,900 L0,0 Z");
    }
    75% {
        d: path("M100,0 C60,150 120,300 50,450 C0,600 85,750 100,900 L0,900 L0,0 Z");
    }
}

/* ── LOGO ─────────────────────────────────────── */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 4;
    position: relative;
    flex-shrink: 0;
    animation: fadeDown 0.6s ease both;
}

.logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.logo span {
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── HERO CONTENT ─────────────────────────────── */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    position: relative;
    padding-bottom: 20px;
    animation: fadeUp 0.7s ease 0.15s both;
    max-width: 650px;
}

.hero-eyebrow {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(22px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    line-height: 1.65;
    max-width: 320px;
    margin-bottom: 36px;
}

/* ── BUTTON + DROPDOWN ────────────────────────── */
.start-menu {
    position: relative;
    width: fit-content;
}

.btn-mulai {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px 13px 28px;
    background: var(--white);
    color: var(--green-dark);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.22s var(--ease), box-shadow 0.22s ease, background 0.2s;
    position: relative;
    z-index: 2;
}

/* Chevron pill */
.btn-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--green-dark);
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease), background 0.2s;
}

.btn-chevron svg {
    display: block;
    transition: transform 0.3s var(--ease);
}

.btn-mulai.open .btn-chevron svg {
    transform: rotate(180deg);
}

.btn-mulai:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    background: #ecfbf0;
}

.btn-mulai:hover .btn-chevron {
    background: var(--green-main);
}

/* ── DROPDOWN ─────────────────────────────────── */
.login-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.18),
        0 2px 8px rgba(0,0,0,0.06),
        0 0 0 1px rgba(26,92,42,0.07);
    overflow: hidden;
    z-index: 20;

    /* Animated open/close */
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
    transform-origin: top left;
}

.login-dropdown.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-label {
    padding: 13px 16px 8px;
    font-size: 9.5px;
    font-weight: 900;
    color: rgba(26,92,42,0.38);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    transition: background 0.15s;
    border-top: 1px solid rgba(26,92,42,0.06);
}

.dropdown-item:hover {
    background: #f2faf4;
}

.dropdown-item:hover .item-icon {
    transform: scale(1.1);
}

.item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease);
}

.item-icon.siswa  { background: #e5f5ea; }
.item-icon.petugas { background: #e5eef5; }

.item-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.item-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1.2;
}

.item-desc {
    font-size: 10.5px;
    font-weight: 800;
    color: rgba(26,92,42,0.45);
}

/* ── STATS ────────────────────────────────────── */
.hero-stats {
    display: flex;
    align-items: stretch;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.09);
    position: relative;
    z-index: 5;
    animation: fadeUp 0.7s var(--ease) 0.6s both;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 24px;
}

.stat + .stat {
    padding-left: 24px;
    padding-right: 24px;
    border-left: 1px solid rgba(255,255,255,0.09);
}

.stat:last-child { padding-right: 0; }

.stat-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-lbl {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── DECORATIVE DOTS ──────────────────────────── */
.dots {
    position: absolute;
    width: 160px;
    height: 160px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.dots-tl { top: -30px; left: -30px; }
.dots-br { bottom: 50px; right: 60px; opacity: 0.4; }

/* ── RIGHT PANEL ──────────────────────────────── */
.hero-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.school-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 8s ease;
}

.hero:hover .school-img {
    transform: scale(1.04);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26,92,42,0.12) 0%, transparent 50%);
    pointer-events: none;
}

/* ── ANIMATIONS ───────────────────────────────── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {

    html, body {
        overflow: hidden;
        height: 100%;
    }

    .hero {
        flex-direction: column-reverse;
        height: 100%;
        min-height: 100dvh;
        overflow: hidden;
    }

    .hero-right {
        height: 25vh;
        min-height: 160px;
        max-height: 220px;
        flex: none;
    }

    .school-img {
        object-position: center 30%;
    }

    .photo-overlay {
        background: linear-gradient(
            to bottom,
            transparent 40%,
            rgba(26, 92, 42, 0.6) 100%
        );
    }

    .hero-left {
        width: 100%;
        flex: 1;
        padding: 28px 24px 36px;
        border-radius: 24px 24px 0 0;
        margin-top: -22px;
        z-index: 3;
        background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-main) 100%);
    }

    .wave-divider { display: none; }

    .logo { margin-bottom: 4px; }
    .logo img { width: 40px; height: 40px; }
    .logo span { font-size: 10px; }

    .hero-content {
        flex: none;
        padding-bottom: 0;
        justify-content: flex-start;
        margin-top: 20px;
    }

    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 0.18em;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: clamp(22px, 6.5vw, 34px);
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .hero-sub {
        font-size: 13px;
        max-width: 100%;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    .btn-mulai {
        justify-content: center;
        padding: 12px 18px;
        font-size: 13px;
    }

    .login-dropdown {
        min-width: 0;
        width: max-content;
        top: 0;
        bottom: auto;
        left: calc(100% + 12px);
        transform-origin: left top;
    }

    .dropdown-item {
        padding: 8px 12px;
        gap: 8px;
    }
    .item-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .item-label {
        font-size: 11.5px;
    }

    .hero-stats {
        margin-top: auto;
        padding-top: 15px;
        justify-content: space-between;
    }

    .stat {
        padding-right: 0;
        flex: 1;
        align-items: center;
        text-align: center;
    }

    .stat + .stat {
        padding-left: 0;
        padding-right: 0;
    }

    .stat-val { font-size: 20px; }
    .stat-lbl { font-size: 9px; }

    .dots-tl { top: -20px; left: -20px; width: 100px; height: 100px; }
    .dots-br { display: none; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 380px)
   ══════════════════════════════════════════════ */
@media (max-width: 380px) {
    .hero-right { height: 52vw; }
    .hero-title { font-size: 20px; }
    .stat-val { font-size: 17px; }
    .stat-lbl { font-size: 8px; letter-spacing: 0.05em; }
}