/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #9F0A05;
    --cream: #FFFAEC;
    --gold: #FFBE0C;
    --white: #ffffff;
    --black: #1e1e1e;
    --gray: #f5f3ef;
    --soft-gray: #eae8e4;
    --shadow: 0 12px 40px rgba(159, 10, 5, 0.10);
    --shadow-hover: 0 20px 50px rgba(159, 10, 5, 0.18);
    --radius: 18px;
    --radius-sm: 12px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--cream);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0 90px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--red);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #5a4a3a;
    max-width: 620px;
    margin: 0 auto 48px;
    font-weight: 400;
}

.section-title .highlight {
    color: var(--gold);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 0.9s ease forwards;
}

.animate-fade {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.30s;
}

.delay-3 {
    animation-delay: 0.45s;
}

.delay-4 {
    animation-delay: 0.60s;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--red);
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(159, 10, 5, 0.25);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.nav-logo i {
    font-size: 1.8rem;
    color: var(--gold);
}

.nav-logo img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.nav-logo span {
    color: var(--white);
    font-weight: 300;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
    background: rgba(255, 190, 12, 0.12);
}

.nav-menu a.active {
    color: var(--gold);
    font-weight: 600;
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--red) !important;
    font-weight: 600 !important;
    padding: 8px 22px !important;
    border-radius: 50px !important;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(255, 190, 12, 0.30);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 190, 12, 0.45);
    background: #ffd43b !important;
    color: var(--red) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: var(--transition);
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 4px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--cream);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1 1 50%;
}

.hero-badge {
    display: inline-block;
    background: var(--red);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 6px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 18px;
    background: rgba(159, 10, 5, 0.08);
    color: var(--red);
    border: 1px solid rgba(159, 10, 5, 0.15);
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.08;
    color: var(--red);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.hero-title .gold {
    color: var(--gold);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    font-family: 'Telma', cursive;
}

.hero-desc {
    font-size: 1.08rem;
    color: #3d3a36;
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(159, 10, 5, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(159, 10, 5, 0.35);
    background: #b80d06;
}

.btn-gold {
    background: var(--gold);
    color: var(--red);
    box-shadow: 0 6px 20px rgba(255, 190, 12, 0.30);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 190, 12, 0.45);
    background: #ffd43b;
}

.btn-outline {
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
}

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 540px;
    height: clamp(260px, 35vw, 540px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    aspect-ratio: 4/3;
    background: var(--soft-gray);
}

/* Dekoratif */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-shape-1 {
    width: 340px;
    height: 340px;
    background: rgba(159, 10, 5, 0.05);
    top: -100px;
    right: -60px;
}

.hero-shape-2 {
    width: 220px;
    height: 220px;
    background: rgba(255, 190, 12, 0.08);
    bottom: -40px;
    left: -40px;
}

.hero-shape-3 {
    width: 120px;
    height: 120px;
    background: rgba(159, 10, 5, 0.04);
    top: 40%;
    right: -30px;
}

/* ========== PROFIL ========== */
#profil {
    background: var(--white);
}

.profil-grid {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.profil-image {
    flex: 1 1 45%;
}

.profil-image img {
    width: 100%;
    height: clamp(400px, 30vw, 400px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--soft-gray);
}

.profil-info {
    flex: 1 1 55%;
}

.profil-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 6px;
}

.profil-info .sub {
    font-size: 1rem;
    color: #5a4a3a;
    margin-bottom: 18px;
}

.profil-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 28px;
    margin: 18px 0 22px;
}

.profil-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
}

.profil-detail-item i {
    color: var(--gold);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.profil-desc {
    color: #3d3a36;
    line-height: 1.8;
    font-size: 1.02rem;
}

/* Visi Misi */
.visi-misi {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 20px;
}

.visi-card {
    background: var(--cream);
    padding: 34px 32px;
    border-radius: var(--radius);
    border-left: 6px solid var(--gold);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.visi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.visi-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.visi-card h4 i {
    color: var(--gold);
}

.visi-card p {
    color: #3d3a36;
    line-height: 1.7;
}

.misi-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.misi-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border: 1px solid rgba(159, 10, 5, 0.06);
}

.misi-list li:hover {
    transform: translateX(6px);
    border-color: var(--gold);
}

.misi-list li i {
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.misi-list li span {
    color: #2d2a26;
    font-size: 0.98rem;
}

/* ========== PROGRAM ========== */
#program {
    background: #9D0101;
}

#program .section-title {
    color: var(--gold);
}

#program .section-subtitle {
    color: var(--gold);
}

.program-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}

.program-card {
    flex: 1 1 calc(25% - 28px);
    min-width: 210px;
    background: var(--white);
    padding: 34px 26px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(159, 10, 5, 0.05);
    position: relative;
    overflow: hidden;
}

.program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.program-card:hover::after {
    transform: scaleX(1);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.program-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(159, 10, 5, 0.06);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 18px;
    transition: var(--transition);
}

.program-card:hover .program-icon {
    background: var(--gold);
    color: var(gold);
    transform: scale(1.05) rotate(-4deg);
}

.program-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 10px;
}

.program-card p {
    color: #4a4540;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== GURU ========== */
#guru {
    background: var(--white);
}

.guru-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.guru-card {
    flex: 1 1 calc(25% - 30px);
    min-width: 200px;
    max-width: 260px;
    background: var(--cream);
    border-radius: var(--radius);
    padding: 24px 20px 26px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(159, 10, 5, 0.04);
}

.guru-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.guru-card .avatar {
    width: 110px;
    height: 110px;
    aspect-ratio: 1;
    border-radius: 50%;
    margin: 0 auto 16px;
    object-fit: cover;
    background: var(--soft-gray);
    border: 4px solid var(--gold);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.guru-card:hover .avatar {
    border-color: var(--red);
    transform: scale(1.02);
}

.guru-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 2px;
}

.guru-card .role {
    font-size: 0.9rem;
    color: #5a4a3a;
    font-weight: 500;
}

.guru-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.guru-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(159, 10, 5, 0.06);
    color: var(--red);
    font-size: 0.9rem;
    transition: var(--transition);
}

.guru-social a:hover {
    background: var(--gold);
    color: var(--red);
    transform: translateY(-3px);
}

/* ========== GALERI ========== */
#galeri {
    background: var(--red);
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

#galeri .section-title,
#galeri .section-subtitle {
    color: var(--gold);
}

.galeri-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--soft-gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.galeri-item:hover img {
    transform: scale(1.06);
}

.galeri-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(159, 10, 5, 0.20);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    backdrop-filter: blur(2px);
}

.galeri-item:hover .overlay {
    opacity: 1;
}

.galeri-item .overlay i {
    transform: scale(0.6);
    transition: var(--transition);
}

.galeri-item:hover .overlay i {
    transform: scale(1);
}

/* ========== KONTAK ========== */
#kontak {
    background: var(--white);
}

.kontak-grid {
    display: flex;
    gap: 50px;
    align-items: stretch;
}

.kontak-info {
    flex: 1 1 40%;
    background: var(--cream);
    padding: 40px 34px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.kontak-info h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 24px;
}

.kontak-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    font-size: 0.98rem;
    color: #2d2a26;
}

.kontak-info-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--red);
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.kontak-info-item a {
    transition: var(--transition);
}

.kontak-info-item a:hover {
    color: var(--gold);
}

.kontak-form {
    flex: 1 1 60%;
    background: var(--cream);
    padding: 40px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.kontak-form h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--red);
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(159, 10, 5, 0.10);
    background: var(--white);
    font-family: var(--font);
    font-size: 1rem;
    transition: var(--transition);
    color: var(--black);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 190, 12, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa6a0;
}

.form-group .btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1.05rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--red);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
}

.footer-brand h3 span {
    color: var(--white);
    font-weight: 300;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.98rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.80);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--red);
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.60);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.4rem;
    }

    .program-card {
        flex: 1 1 calc(50% - 28px);
    }

    .guru-card {
        flex: 1 1 calc(33.33% - 30px);
    }

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

@media (max-width: 820px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        flex: 1 1 100%;
    }

    .hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        flex: 1 1 100%;
    }

    .hero-image img {
        max-width: 420px;
    }

    .profil-grid {
        flex-direction: column;
    }

    .profil-info {
        flex: 1 1 100%;
    }

    .profil-image {
        flex: 1 1 100%;
    }

    .visi-misi {
        grid-template-columns: 1fr;
    }

    .kontak-grid {
        flex-direction: column;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {

    /* Navbar mobile */
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--red);
        flex-direction: column;
        padding: 24px 20px 32px;
        gap: 6px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.20);
        transform: translateY(-120%);
        transition: var(--transition);
        opacity: 0;
        pointer-events: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 1rem;
    }

    .nav-cta {
        width: 100% !important;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-desc {
        font-size: 0.98rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.98rem;
    }

    .profil-detail {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .program-card {
        flex: 1 1 100%;
        max-width: 360px;
    }

    .guru-card {
        flex: 1 1 calc(50% - 20px);
        min-width: 140px;
        max-width: 200px;
    }

    .galeri-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .kontak-info,
    .kontak-form {
        padding: 28px 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .hero-image img {
        max-width: 100%;
    }

    .footer-brand h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 420px) {
    .guru-card {
        flex: 1 1 100%;
        max-width: 220px;
    }

    .galeri-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }
}