/* GLOBAL STYLE */
/* =========================
   ROOT COLOR & RESET
========================= */
:root {
    --maroon: #550803;
    --golden: #9a5c09;
    --amber: #f5ad05;
    --white: #ffffff;
    --dark: #1a1a1a;
    --radius: 4px;
}

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

/* =========================
   GLOBAL STYLE
========================= */
body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

html {
    font-size: clamp(14px, 1.5vw, 16px);
    scroll-behavior: smooth;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* =========================
   TYPHOGRAPHY SYSTEM
========================= */
h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

p {
    font-size: 1rem;
}

/* =========================
   NAV TOGGLE (HAMBURGER)
========================= */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* =========================
   NAVBAR
========================= */
.navbar {
    background: var(--maroon);
    padding: 15px 0;
    height: 90px;
}

.nav-flex {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.logo-image {
    border-radius: 75%;
    max-height: 60px;
    max-width: 60px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px var(--amber));
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 20px;

    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75%;
    max-width: 300px;

    background: var(--maroon);
    padding: 80px 20px 20px;
    margin-left: auto;
    z-index: 9999;

    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.nav-links.active {
    display: flex;
    transform: translateX(0);
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 9998;
}

.btn-nav {
    background: var(--amber);
    color: var(--dark);
    padding: 8px 14px;
    border-radius: var(--radius);
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    background: linear-gradient(135deg,
            var(--maroon), #2b0603);
    color: var(--white);
    padding-block: clamp(2rem, 8vw, 4rem);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-inline: auto;

    opacity: 1;
    transform: translateY(0);
    animation: heroFade 1s ease forwards;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 173, 5, 0.35), transparent 70%);
    top: -150px;
    right: -150px;
    z-index: 0;
    animation: floatGlow 6s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(20px);
    }
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.9;
    margin: 20px 0;
    margin-bottom: 2rem;
}

.hero-buttons {
    margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.btn-nav,
.btn-whatsapp,
.btn-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    margin: 5px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--amber);
    color: var(--dark);
}

.btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
}

/* =========================
   SECTIONS
========================= */
.intro,
.cta {
    padding: 60px 0;
    text-align: center;
}

.cta {
    background: var(--golden);
    color: var(--white);
}

/* =====================
   CTA BUTTON GROUP
===================== */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

/* WhatsApp */
.btn-whatsapp {
    display: inline-block;
    padding: 12px 24px;
    margin: 5px;
    border-radius: var(--radius);
    background-color: #075E54;
    color: #fff;
    opacity: 1;
    font-weight: bold;
    text-decoration: none;
}

.btn-whatsapp:hover {
    opacity: 0.9;
}

/* Email */
.btn-email {
    display: inline-block;
    padding: 12px 24px;
    margin: 5px;
    border-radius: var(--radius);
    background-color: #444;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.btn-email:hover {
    opacity: 0.9;
}

/* Loading email kecil elegan */
.email-loader {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.email-loader.show {
    opacity: 1;
    transform: translateY(0);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notifikasi email fallback */
.email-notice {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: #facc15;
    color: #111;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.email-notice.show {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple Effect for Buttons */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple span.ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 600ms linear;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =========================
   FOOTER
========================= */
.footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 30px;
}

/* TENTANG HTML */
/* =========================
   PAGE HEADER
========================= */
.page-header {
    background: var(--golden);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

/* =========================
   GENERIC SECTION
========================= */
.section {
    padding: 60px 0;
}

.section.alt {
    background: #f9f9f9;
}

/* =========================
   GRID & CARD
========================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-left: 5px solid var(--amber);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* =========================
   TEXT UTILITY
========================= */
.highlight {
    font-weight: bold;
    margin-bottom: 30px;
}

.list {
    margin-top: 20px;
    padding-left: 20px;
}

.list li {
    margin-bottom: 10px;
}

/* DIVISI HTML */
/* =========================
   STRUKTUR ORGANISASI
========================= */
.struktur {
    margin-top: 20px;
    background: var(--white);
    padding: 25px;
    border-left: 5px solid var(--maroon);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.struktur p {
    margin-bottom: 8px;
}

/* =========================
   GRID 2 KOLOM
========================= */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* =========================
   SECTION DESCRIPTION
========================= */
.section-desc {
    margin-top: 10px;
    font-style: italic;
}

/* PENDAFTARAN HTML */
/* =========================
   CHECKLIST STYLE
========================= */
.checklist li {
    list-style: none;
    position: relative;
    padding-left: 25px;
}

.checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--amber);
    font-weight: bold;
}

/* =========================
   TIMELINE
========================= */
.timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.timeline-item {
    background: var(--white);
    padding: 20px;
    text-align: center;
    flex: 1;
    border-top: 5px solid var(--maroon);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.timeline-item span {
    font-weight: bold;
}

.note {
    margin-top: 20px;
    font-style: italic;
    text-align: center;
}

/* JAVASCRIPT */
/* =========================
   SIMPLE FADE-IN ANIMATION
========================= */
.section,
.card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: transform, opacity;
}

.section.show,
.card.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   ACTIVE NAV LINK
========================= */
.nav-links a.active {
    border-bottom: 2px solid var(--amber);
}

/* RESPONSIVE DEVICE */
/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }

    .nav-flex {
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 10px;
        display: block;
    }

    .btn-nav {
        display: inline-block;
        margin-top: 10px;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h2 {
        font-size: 1.9rem;
    }

    .container {
        width: 95%;
    }

    .logo-image {
        max-height: 45px;
        max-width: 45px;
    }

    .timeline {
        flex-direction: column;
    }

    .section,
    .intro,
    .cta {
        padding: 40px 0;
    }
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        position: static;
        width: auto;
        max-width: 100%;
        background: none;
        padding: 0;
        align-items: center;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (hover: hover) {
    .logo-image:hover {
        transform: scale(1.15);
        filter: drop-shadow(0 0 6px var(--amber));
    }

    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-nav:hover,
    .btn-whatsapp:hover,
    .btn-email:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-content,
    .hero::before {
        animation: none;
    }
}