/* ====================================================================
   DR. DYAH ANGGRAENI — CUSTOM STYLES
   Bold, editorial, distinctive. Not a template.
   ==================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --green:  #074F40;
    --dark:   #04352B;
    --gold:   #C9A227;
    --ivory:  #F9F8F6;
    --charcoal: #1A1A1A;
    --warm:   #F0EBE1;
    --muted:  #5C6B65;
}

/* ---------- Base ---------- */
body {
    background-color: var(--ivory);
    color: var(--charcoal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-weight: 500;
    line-height: 1.7;
}

/* Selection */
::selection {
    background-color: var(--gold);
    color: var(--dark);
}

/* ---------- Smooth Scroll Offset ---------- */
html {
    scroll-padding-top: 90px;
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====================================================================
   HERO DECORATIVE LINE
   ==================================================================== */
.hero-line {
    width: 80px;
    height: 4px;
    background-color: var(--gold);
}

/* ====================================================================
   GOLD LINE — THICK VARIANT
   ==================================================================== */
.gold-line-thick {
    width: 60px;
    height: 3px;
    background-color: var(--gold);
}

/* ====================================================================
   BUTTONS
   ==================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--gold);
    color: var(--dark);
    padding: 14px 32px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 14px 32px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--dark);
}

@media (min-width: 640px) {
    .btn-primary,
    .btn-outline {
        width: auto;
    }
}

/* ====================================================================
   NAVIGATION
   ==================================================================== */
#main-nav {
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

#main-nav.scrolled {
    background-color: rgba(4, 53, 43, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#main-nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.75);
}

#main-nav.scrolled .logo-text {
    color: #fff;
}

#main-nav.scrolled #mobile-menu-btn svg {
    stroke: #fff;
}

/* Nav CTA button */
.nav-cta {
    white-space: nowrap;
}

/* Mobile menu */
#mobile-menu-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
    padding: 16px 8px;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    min-height: 52px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: var(--gold);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ====================================================================
   SECTION TAGS (Numbered Labels)
   ==================================================================== */
.section-tag {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

/* ====================================================================
   TAGS (Skills / Interests)
   ==================================================================== */
.tag {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--dark);
    background: transparent;
    border: 2px solid var(--dark);
    transition: all 0.25s ease;
}

.tag:hover {
    background: var(--dark);
    color: #fff;
}

/* ====================================================================
   ABOUT — Image frame & accent
   ==================================================================== */
.about-image-frame {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 4px;
}

.about-image-frame img {
    display: block;
    filter: grayscale(15%) contrast(1.05);
    transition: filter 0.6s ease;
}

.about-image-frame:hover img {
    filter: grayscale(0%) contrast(1);
}

.about-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 180px;
    height: 180px;
    border: 3px solid var(--gold);
    z-index: 1;
    opacity: 0.5;
}

@media (max-width: 767px) {
    .about-accent {
        width: 120px;
        height: 120px;
        bottom: -16px;
        right: -16px;
    }
}

/* ====================================================================
   TIMELINE
   ==================================================================== */
.timeline-container {
    position: relative;
}

.timeline-row {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 48px;
    padding-left: 36px;
    border-left: 2px solid rgba(201, 162, 39, 0.25);
    margin-left: 5px;
}

.timeline-row:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

/* Dot — sits on the left border line */
.timeline-row::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--dark);
    z-index: 2;
}

@media (min-width: 768px) {
    .timeline-row {
        flex-direction: row;
        align-items: flex-start;
        padding-left: 0;
        margin-left: 0;
        padding-bottom: 64px;
        border-left: none;
    }

    .timeline-row::before {
        display: none;
    }

    /* Center dot on desktop */
    .timeline-row::after {
        content: none;
    }
}

.timeline-content {
    flex: 1;
}

.timeline-year {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.timeline-center {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    width: 40px;
    flex-shrink: 0;
}

.timeline-dot-lg {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--gold);
    border: 3px solid var(--dark);
    position: relative;
    z-index: 2;
}

.timeline-spacer {
    width: 40px;
    flex-shrink: 0;
}

/* ====================================================================
   STAT CARDS
   ==================================================================== */
.stat-card {
    text-align: center;
    padding: 24px 12px;
}

.stat-number {
    display: block;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--dark);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.5;
}

/* ====================================================================
   PHILOSOPHY QUOTE
   ==================================================================== */
.philosophy-quote {
    text-align: center;
    padding: 32px 0;
    position: relative;
}

.philosophy-quote::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 28px auto;
}

/* ====================================================================
   SOCIAL LINKS
   ==================================================================== */
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #fff;
    color: var(--dark);
    border: 2px solid var(--dark);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
    min-height: 44px;
}

.social-link:hover {
    background: var(--dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* ====================================================================
   ARTICLE CARDS (rendered by JS)
   ==================================================================== */
.article-card {
    position: relative;
    background: #fff;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.article-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.06);
}

.article-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--dark);
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
}

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-card-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.article-card-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.35rem;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.article-card:hover .article-card-title {
    color: var(--green);
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card-excerpt {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green);
    transition: color 0.3s ease, gap 0.3s ease;
    margin-top: auto;
}

.article-card-link svg {
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-link {
    color: var(--gold);
    gap: 12px;
}

.article-card:hover .article-card-link svg {
    transform: translateX(4px);
}

/* ====================================================================
   MOBILE RESPONSIVE
   ==================================================================== */

/* Touch targets */
a, button, [role="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent iOS zoom */
input, textarea, select {
    font-size: 16px;
}

/* Section padding on mobile */
@media (max-width: 767px) {
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ====================================================================
   PRINT
   ==================================================================== */
@media print {
    #main-nav, #mobile-menu, #mobile-menu-btn {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ====================================================================
   SAFE AREA (iPhone notch)
   ==================================================================== */
@supports (padding: max(0px)) {
    #main-nav {
        padding-top: max(1.25rem, env(safe-area-inset-top));
    }
    footer {
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }
}
