/* style.css - FIXED SPACING VERSION */

/* =========================================
   1. Base Variables & Global Styles
   ========================================= */
:root {
    --color-medical-teal: #00695c;
    --color-medical-dark: #004d40;
    --color-medical-light: #e0f2f1;
    --color-slate-body: #1a1a1a;
    --color-slate-bg: #fffbf0;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-slate-bg);
    color: var(--color-slate-body);

    /* PERBAIKAN FONT: 
       Mobile = 15px/16px (agar muat banyak).
       Desktop = 18px (agar jelas bagi lansia). 
    */
    font-size: 16px;
    line-height: 1.6;
    /* Spasi baris sedikit dikurangi dari 1.8 agar tidak terlalu renggang */
}

/* Media Query untuk Laptop/PC */
@media (min-width: 768px) {

    html,
    body {
        font-size: 18px;
        /* Kembali besar di layar lebar */
        line-height: 1.8;
    }
}

html {
    scroll-behavior: smooth;
}

body::before {
    display: none;
}

section {
    max-width: 100vw;
    overflow-x: hidden;
    scroll-margin-top: 5rem;
    /* Adjusted margin */
}

/* =========================================
   2. High Contrast Overrides
   ========================================= */
.text-slate-600,
.text-slate-500,
.text-slate-400,
.text-gray-600 {
    color: #222222 !important;
}

.text-slate-800,
.text-gray-800 {
    color: #000000 !important;
}

.text-medical-teal {
    color: var(--color-medical-teal) !important;
}

.text-medical-500 {
    color: #0277bd !important;
}

.bg-medical-teal {
    background-color: var(--color-medical-teal) !important;
}

.border-medical-teal {
    border-color: var(--color-medical-teal) !important;
}

/* =========================================
   3. Animations & Effects
   ========================================= */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    filter: sepia(0.5);
}

.timeline-line-grow {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    transition: transform 1.5s ease-out, opacity 1s ease-out;
    width: 4px !important;
    background-color: #cbd5e1;
}

.aos-animate.timeline-line-grow {
    transform: scaleY(1);
    opacity: 1;
}

/* =========================================
   4. Components & UI Structure
   ========================================= */

/* --- NAVIGATION --- */
nav {
    background-color: #fffbf0 !important;
    border-bottom: 2px solid #cbd5e1 !important;
    /* Border sedikit dipertipis */
    box-shadow: none !important;
}

.nav-link {
    color: #000000;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #ffffff !important;
    background-color: var(--color-medical-teal);
    text-decoration: none;
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    background-color: var(--color-medical-teal);
    color: #ffffff !important;
    /* Padding diperkecil sedikit agar tombol tidak raksasa di HP */
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid transparent;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: var(--color-medical-dark);
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    /* Padding disesuaikan */
    background-color: #ffffff;
    border: 2px solid #94a3b8;
    border-radius: 8px;
    color: #000000 !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-social:hover {
    border-color: var(--color-medical-teal);
    background-color: var(--color-medical-light);
    color: var(--color-medical-teal) !important;
}

/* Language Switcher */
.flag-btn {
    border: 2px solid #e2e8f0;
    width: 28px !important;
    /* Ukuran bendera diperkecil sedikit untuk mobile */
    height: 28px !important;
    margin: 0 2px;
}

@media (min-width: 768px) {
    .flag-btn {
        width: 32px !important;
        height: 32px !important;
        margin: 0 4px;
    }
}

.flag-btn.active {
    border-color: var(--color-medical-teal);
    transform: scale(1.1);
}

/* --- CARDS --- */
.clean-card {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    /* Shadow diperhalus */
    transition: transform 0.2s ease;
    height: 100%;
}

.clean-card:hover {
    border-color: var(--color-medical-teal);
    transform: translateY(-4px);
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    color: #000000 !important;
    letter-spacing: 0.01em;
}

.section-title {
    font-size: 1.8rem;
    /* Diperkecil untuk mobile */
    line-height: 1.3;
    font-weight: 800;
    color: #000000;
    margin-top: 1rem;
    text-decoration: underline;
    text-decoration-color: var(--color-medical-teal);
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
        text-decoration-thickness: 4px;
    }
}

.badge,
.badge-blue {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge {
    background-color: #e0f2f1;
    color: #004d40;
    border: 1px solid #004d40;
}

.badge-blue {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #0d47a1;
}

/* --- GALLERY MODAL --- */
#image-modal {
    background-color: rgba(0, 0, 0, 0.95);
}

#close-modal,
#prev-btn,
#next-btn {
    transform: scale(1);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 8px;
    transition: all 0.2s ease;
}

#close-modal:hover,
#prev-btn:hover,
#next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

#modal-counter {
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 2px solid #94a3b8;
    color: #1a1a1a;
    background-color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-sm:hover {
    border-color: var(--color-medical-teal);
    background-color: var(--color-medical-teal);
    color: white;
}

/* --- MOBILE MENU --- */
#mobile-menu {
    background-color: #fffbf0;
    border-bottom: 4px solid var(--color-medical-teal);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.mobile-link {
    display: block;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
}

.mobile-link:hover {
    background-color: var(--color-medical-light);
    color: var(--color-medical-teal);
    padding-left: 2rem;
}

/* --- FOOTER --- */
footer {
    background-color: #f8fafc;
    border-top: 3px solid #cbd5e1;
    padding: 1.5rem 0;
}

footer p {
    color: #000000 !important;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Helper untuk SVG Heart */
.fill-current {
    fill: currentColor;
}