/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #1f2937;
    background: #f8fafc;
    line-height: 1.7;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button,
input,
textarea {
    font-family: inherit;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {
    --primary: #087f5b;
    --primary-dark: #056044;
    --secondary: #ff922b;
    --yellow: #ffd43b;

    --dark: #102a2e;
    --text: #526568;
    --white: #ffffff;
    --light: #f4f8f7;

    --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    --radius: 20px;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
    max-width: 1200px;
    height: 80px;
    margin: auto;
    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);
    color: var(--white);
    font-size: 22px;
}

.logo span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
}

.logo h3 {
    color: var(--dark);
    font-size: 20px;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    transition: 0.3s;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--primary);
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;

    width: 45px;
    height: 45px;
    border: none;
    border-radius: 10px;

    background: var(--primary);
    color: white;

    font-size: 20px;
    cursor: pointer;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 100vh;
    padding: 140px 6% 80px;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;

    background:
        linear-gradient(
            135deg,
            #f0faf6 0%,
            #ffffff 55%,
            #fff7ed 100%
        );
}

.hero-content {
    max-width: 650px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 15px;
    margin-bottom: 20px;

    border-radius: 50px;
    background: #dff5ec;
    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    color: var(--dark);
    font-size: clamp(45px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 800;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero h2 {
    margin-top: 20px;
    color: var(--secondary);
    font-size: 21px;
}

.hero p {
    max-width: 600px;
    margin: 20px 0 30px;

    color: var(--text);
    font-size: 15px;
}

.hero-button {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 13px 22px;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 600;

    transition: 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid #d8e5e1;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.hero-stat {
    display: flex;
    gap: 35px;
    margin-top: 45px;
}

.hero-stat div {
    display: flex;
    flex-direction: column;
}

.hero-stat strong {
    color: var(--dark);
    font-size: 25px;
}

.hero-stat span {
    color: var(--text);
    font-size: 12px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    height: 570px;
    object-fit: cover;

    border-radius: 30px;
    box-shadow: var(--shadow);
}

.hero-image-info {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 25px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 17px;
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.hero-image-info > i {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: var(--primary);
    color: white;
}

.hero-image-info strong,
.hero-image-info span {
    display: block;
}

.hero-image-info strong {
    font-size: 14px;
}

.hero-image-info span {
    color: var(--text);
    font-size: 12px;
}


/* =====================================================
   GENERAL SECTION
===================================================== */

.section {
    max-width: 1200px;
    margin: auto;
    padding: 100px 25px;
}

.section-title {
    max-width: 650px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-title > span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-title h2 {
    margin: 8px 0;
    color: var(--dark);
    font-size: 42px;
    line-height: 1.2;
}

.section-title h2 b {
    color: var(--primary);
}

.section-title p {
    color: var(--text);
    font-size: 14px;
}


/* =====================================================
   PROFILE
===================================================== */

.profile {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 65px;
}

.profile-image {
    position: relative;
}

.profile-image img {
    height: 520px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.year-box {
    position: absolute;
    right: -25px;
    bottom: 25px;

    width: 150px;
    padding: 20px;

    text-align: center;

    border-radius: 18px;
    background: var(--secondary);
    color: white;

    box-shadow: var(--shadow);
}

.year-box strong,
.year-box span {
    display: block;
}

.year-box strong {
    font-size: 32px;
}

.year-box span {
    font-size: 11px;
}

.small-title {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.profile-content h3 {
    margin: 12px 0 20px;

    color: var(--dark);
    font-size: 36px;
    line-height: 1.25;
}

.profile-content h3 b {
    color: var(--primary);
}

.profile-content p {
    margin-bottom: 15px;
    color: var(--text);
    font-size: 14px;
}

.school-info {
    display: grid;
    gap: 15px;
    margin-top: 25px;
}

.info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.info > i {
    min-width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: #e4f5ef;
    color: var(--primary);
}

.info span,
.info strong {
    display: block;
}

.info span {
    color: var(--text);
    font-size: 11px;
}

.info strong {
    color: var(--dark);
    font-size: 13px;
}


/* =====================================================
   VISI MISI
===================================================== */

.visi-misi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 80px;
}

.visi,
.misi {
    padding: 35px;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.visi {
    background: var(--primary);
    color: white;
}

.misi {
    background: white;
}

.visi,
.misi {
    display: flex;
    gap: 20px;
}

.visi-icon {
    min-width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);

    font-size: 20px;
}

.misi .visi-icon {
    background: #e4f5ef;
    color: var(--primary);
}

.visi span,
.misi span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.visi h3 {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
}

.misi ul {
    margin-top: 12px;
}

.misi li {
    display: flex;
    gap: 10px;

    margin-bottom: 12px;

    color: var(--text);
    font-size: 13px;
}

.misi li i {
    margin-top: 5px;
    color: var(--primary);
}


/* =====================================================
   PROGRAM
===================================================== */

.program-section {
    max-width: none;
    padding-left: max(25px, calc((100% - 1150px) / 2));
    padding-right: max(25px, calc((100% - 1150px) / 2));
    background: #f0f7f5;
}

.program-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.program-card {
    overflow: hidden;
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow);
    transition: 0.35s;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-image {
    position: relative;
    overflow: hidden;
}

.program-image img {
    height: 240px;
    object-fit: cover;
    transition: 0.5s;
}

.program-card:hover .program-image img {
    transform: scale(1.08);
}

.program-image span {
    position: absolute;
    top: 15px;
    right: 15px;

    padding: 7px 12px;
    border-radius: 10px;

    background: var(--secondary);
    color: white;

    font-size: 12px;
    font-weight: 700;
}

.program-content {
    padding: 25px;
}

.program-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: -50px;
    margin-bottom: 20px;

    position: relative;

    border-radius: 14px;
    background: var(--primary);
    color: white;

    font-size: 20px;
}

.program-content h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 19px;
}

.program-content p {
    margin-bottom: 15px;
    color: var(--text);
    font-size: 13px;
}

.program-content a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}


/* =====================================================
   GURU
===================================================== */

.teacher-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.teacher-card {
    overflow: hidden;

    border-radius: 20px;
    background: white;

    box-shadow: var(--shadow);
    transition: 0.35s;
}

.teacher-card:hover {
    transform: translateY(-8px);
}

.teacher-image {
    position: relative;
    overflow: hidden;
}

.teacher-image img {
    height: 330px;
    object-fit: cover;
    transition: 0.5s;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-badge {
    position: absolute;
    left: 15px;
    bottom: 15px;

    padding: 7px 12px;
    border-radius: 30px;

    background: var(--primary);
    color: white;

    font-size: 10px;
    font-weight: 700;
}

.teacher-content {
    padding: 22px;
}

.teacher-content > span {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.teacher-content h3 {
    min-height: 55px;
    margin: 7px 0;

    color: var(--dark);
    font-size: 16px;
    line-height: 1.4;
}

.teacher-content p {
    color: var(--text);
    font-size: 12px;
}

.social {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.social a {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    background: #edf5f2;
    color: var(--primary);

    font-size: 13px;

    transition: 0.3s;
}

.social a:hover {
    background: var(--primary);
    color: white;
}


/* =====================================================
   GALERI
===================================================== */

.gallery-section {
    max-width: none;
    background: #f0f7f5;

    padding-left: max(25px, calc((100% - 1150px) / 2));
    padding-right: max(25px, calc((100% - 1150px) / 2));
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-item {
    position: relative;
    overflow: hidden;

    height: 280px;
    border-radius: 18px;

    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: 0.5s;
}

.gallery-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: rgba(8, 127, 91, 0.82);
    color: white;

    opacity: 0;
    transition: 0.35s;
}

.gallery-overlay i {
    font-size: 28px;
}

.gallery-overlay span {
    font-size: 13px;
    font-weight: 600;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


/* =====================================================
   KONTAK
===================================================== */

.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 35px;
}

.contact-info,
.contact-form {
    padding: 40px;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.contact-info {
    background: var(--primary);
    color: white;
}

.contact-info h3 {
    font-size: 27px;
}

.contact-info > p {
    margin: 10px 0 30px;
    color: #dcefe9;
    font-size: 13px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item > i {
    min-width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
}

.contact-item span,
.contact-item strong {
    display: block;
}

.contact-item span {
    color: #bce2d6;
    font-size: 11px;
}

.contact-item strong {
    font-size: 13px;
    font-weight: 500;
}

.contact-form {
    background: white;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;

    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #dce7e4;
    border-radius: 10px;

    outline: none;
    resize: vertical;

    font-size: 13px;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.08);
}

.contact-form .btn {
    border: none;
    cursor: pointer;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    background: #102a2e;
    color: white;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 70px 25px;

    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr 1.2fr;
    gap: 45px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo h3,
.footer-logo span {
    color: white;
}

.footer-about p {
    max-width: 350px;
    color: #b9cbca;
    font-size: 13px;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-menu a {
    color: #b9cbca;
    font-size: 13px;
    transition: 0.3s;
}

.footer-menu a:hover {
    color: var(--yellow);
    transform: translateX(4px);
}

.footer-menu p {
    color: #b9cbca;
    font-size: 12px;
}

.footer-menu p i {
    width: 20px;
    color: var(--yellow);
}

.footer-bottom {
    padding: 20px 25px;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    color: #8fa8a5;
    font-size: 11px;
}


/* =====================================================
   ANIMATION
===================================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-image {
    animation: fadeUp 0.8s ease;
}


/* =====================================================
   RESPONSIVE TABLET
===================================================== */

@media (max-width: 1000px) {

    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-image img {
        height: 450px;
    }

    .profile {
        grid-template-columns: 1fr;
    }

    .profile-image img {
        height: 450px;
    }

    .program-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .teacher-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .visi-misi {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =====================================================
   RESPONSIVE MOBILE
===================================================== */

@media (max-width: 700px) {

    .navbar {
        height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 15px;
        right: 15px;

        padding: 20px;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        background: white;
        border-radius: 15px;
        box-shadow: var(--shadow);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid #edf1f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 13px 5px;
    }

    .nav-menu a::after {
        display: none;
    }

    .hero {
        padding: 115px 20px 60px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .hero-stat {
        gap: 20px;
    }

    .hero-stat strong {
        font-size: 20px;
    }

    .hero-image img {
        height: 350px;
    }

    .section {
        padding: 70px 20px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .profile-image img {
        height: 350px;
    }

    .year-box {
        right: 15px;
    }

    .profile-content h3 {
        font-size: 28px;
    }

    .visi,
    .misi {
        padding: 25px;
        flex-direction: column;
    }

    .program-container,
    .teacher-container,
    .gallery-container {
        grid-template-columns: 1fr;
    }

    .teacher-image img {
        height: 380px;
    }

    .gallery-item {
        height: 250px;
    }

    .contact-info,
    .contact-form {
        padding: 25px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 50px 25px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {

    .logo h3 {
        font-size: 17px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-stat {
        gap: 12px;
    }

    .hero-stat strong {
        font-size: 18px;
    }

    .hero-stat span {
        font-size: 10px;
    }

    .hero-button {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

/* =====================================================
   JAVASCRIPT SCROLL ANIMATION
===================================================== */

.before-animation {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.show-animation {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   NAVBAR SAAT SCROLL
===================================================== */

.header.scrolled {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}


/* =====================================================
   DELAY ANIMASI CARD
===================================================== */

.program-card:nth-child(2),
.teacher-card:nth-child(2),
.gallery-item:nth-child(2) {
    transition-delay: 0.1s;
}

.program-card:nth-child(3),
.teacher-card:nth-child(3),
.gallery-item:nth-child(3) {
    transition-delay: 0.2s;
}

.teacher-card:nth-child(4),
.gallery-item:nth-child(4) {
    transition-delay: 0.3s;
}

.gallery-item:nth-child(5) {
    transition-delay: 0.4s;
}

.gallery-item:nth-child(6) {
    transition-delay: 0.5s;
}

}