/* ============================================================
   International Standard Editorial Design System
   Version: 3.0 "The Oxford Standard"
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES & ROOT
   ============================================================ */
:root {
    /* Core Colors */
    --navy: #0B2239;
    --navy-deep: #061420;
    --navy-light: #13334F;
    --navy-lighter: #1a4068;
    --ivory: #F7F5F0;
    --ivory-warm: #EDE8DE;
    --ivory-deep: #E5DFD2;
    --gold: #C9A227;
    --gold-soft: #D4AF37;
    --gold-muted: #B8941F;
    --gold-light: #E5C55F;
    --slate: #475569;
    --slate-light: #64748b;
    
    /* Semantic Colors */
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0284c7;
    
    /* Typography */
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 8rem;
    
    /* Timing */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
    --duration-very-slow: 1.2s;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(11, 34, 57, 0.05);
    --shadow-md: 0 4px 12px rgba(11, 34, 57, 0.08);
    --shadow-lg: 0 12px 32px rgba(11, 34, 57, 0.12);
    --shadow-xl: 0 24px 48px rgba(11, 34, 57, 0.16);
    --shadow-gold: 0 8px 24px rgba(201, 162, 39, 0.25);
}

/* ============================================================
   2. GLOBAL RESET & BASE
   ============================================================ */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background-color: var(--ivory);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--gold);
    color: var(--navy);
}

::-moz-selection {
    background: var(--gold);
    color: var(--navy);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-in-out);
}

/* ============================================================
   3. CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--ivory);
}
::-webkit-scrollbar-thumb {
    background: var(--navy);
    border-radius: 0;
    border: 2px solid var(--ivory);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--navy) var(--ivory);
}

/* ============================================================
   4. PAGE LOADING & TRANSITIONS
   ============================================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.page-loader-logo {
    width: 80px;
    height: 80px;
    background: var(--gold);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Page reveal animation */
.page-content {
    opacity: 0;
    animation: pageReveal 0.8s var(--ease-out-expo) 0.2s forwards;
}
@keyframes pageReveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   5. REVEAL ANIMATIONS
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out-expo), 
                transform var(--duration-slow) var(--ease-out-expo);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--duration-slow) var(--ease-out-expo), 
                transform var(--duration-slow) var(--ease-out-expo);
}
.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--duration-slow) var(--ease-out-expo), 
                transform var(--duration-slow) var(--ease-out-expo);
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity var(--duration-slow) var(--ease-out-expo), 
                transform var(--duration-slow) var(--ease-out-expo);
}
.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations */
.fade-in:nth-child(1) { transition-delay: 0.05s; }
.fade-in:nth-child(2) { transition-delay: 0.15s; }
.fade-in:nth-child(3) { transition-delay: 0.25s; }
.fade-in:nth-child(4) { transition-delay: 0.35s; }
.fade-in:nth-child(5) { transition-delay: 0.45s; }
.fade-in:nth-child(6) { transition-delay: 0.55s; }

/* ============================================================
   6. CARD & HOVER EFFECTS
   ============================================================ */
.hover-lift {
    transition: transform var(--duration-normal) var(--ease-out-quart),
                box-shadow var(--duration-normal) var(--ease-out-quart);
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.hover-grow {
    transition: transform var(--duration-normal) var(--ease-out-quart);
}
.hover-grow:hover {
    transform: scale(1.03);
}

.hover-tilt {
    transition: transform var(--duration-normal) var(--ease-out-quart);
    transform-style: preserve-3d;
}
.hover-tilt:hover {
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
}

/* News card image effect */
.news-card .news-image {
    transition: transform 1s var(--ease-out-expo);
}
.news-card:hover .news-image {
    transform: scale(1.08);
}

/* ============================================================
   7. BUTTON SYSTEM
   ============================================================ */
.btn-primary, .btn-gold, .btn-outline,
a.btn-primary, a.btn-gold, a.btn-outline {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-quart);
}

.btn-primary {
    background: var(--navy);
    color: var(--ivory);
    border-color: var(--navy);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateX(-101%);
    transition: transform var(--duration-normal) var(--ease-out-expo);
    z-index: 0;
}
.btn-primary:hover {
    color: var(--navy);
    border-color: var(--gold);
}
.btn-primary:hover::before {
    transform: translateX(0);
}
.btn-primary > * {
    position: relative;
    z-index: 1;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-muted);
    border-color: var(--gold-muted);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background: transparent;
    color: var(--ivory);
    border-color: rgba(247, 245, 240, 0.4);
}
.btn-outline:hover {
    background: var(--ivory);
    color: var(--navy);
    border-color: var(--ivory);
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--ivory);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-ripple:active::after {
    width: 400px;
    height: 400px;
}

/* ============================================================
   8. LINK UNDERLINE ANIMATIONS
   ============================================================ */
.link-underline {
    position: relative;
    display: inline-block;
}
.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--duration-normal) var(--ease-out-expo);
}
.link-underline:hover::after {
    width: 100%;
}

.link-underline-gold::after {
    background: var(--gold);
}

/* Link arrow animation */
.link-arrow svg {
    transition: transform var(--duration-normal) var(--ease-out-expo);
}
.link-arrow:hover svg {
    transform: translateX(6px);
}

/* ============================================================
   9. NAVBAR ENHANCEMENTS (v2 — Anti-Flicker + Larger Menu)
   ============================================================ */
#mainNav {
    transition: all var(--duration-normal) var(--ease-in-out);
}

#mainNav.nav-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(11, 34, 57, 0.08);
}

#mainNav.nav-scrolled #navInner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ===== NAV LINK: underline 2px lebih kentara ===== */
.nav-link {
    position: relative;
    transition: color var(--duration-fast) var(--ease-in-out);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all var(--duration-normal) var(--ease-out-expo);
    transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== DROPDOWN RESPONSIF v2: anti-kabut + grace period ===== */
/* Trigger area lebih tinggi supaya mudah di-hover */
.dropdown > a.nav-link {
    padding-top: 14px;
    padding-bottom: 14px;
}

.dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    /* Grace period: visibility delay 0.25s agar dropdown tidak langsung hilang */
    transition: opacity .22s var(--ease-out-quart),
                transform .22s var(--ease-out-quart),
                visibility 0s linear .25s;
}

/* JEMBATAN: menutup celah 16px antara menu & dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: -24px;
    height: 24px;
    background: transparent;
}

.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .22s var(--ease-out-quart),
                transform .22s var(--ease-out-quart);
}

/* Menu items di dalam dropdown — lebih lega dan mudah di-hover */
.dropdown-menu a {
    transition: background .15s ease, color .15s ease, padding-left .2s ease;
}
.dropdown-menu a:hover {
    padding-left: 1.4rem !important;
}

/* Icon di dropdown berputar halus saat hover */
.dropdown > a.nav-link i {
    transition: transform .25s var(--ease-out-quart);
}
.dropdown:hover > a.nav-link i {
    transform: rotate(180deg);
}
/* ============================================================
   10. EDITORIAL PATTERNS & TEXTURES
   ============================================================ */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(201, 162, 39, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
}

.hero-pattern-dark {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(19, 51, 79, 0.4) 0%, transparent 50%);
}

.noise-texture {
    position: relative;
}
.noise-texture::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.4;
}

.grid-pattern {
    background-image: 
        linear-gradient(rgba(11, 34, 57, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 34, 57, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.dotted-pattern {
    background-image: radial-gradient(circle, rgba(11, 34, 57, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ============================================================
   11. OVERSIZED TYPOGRAPHY
   ============================================================ */
.oversize-num {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
}

.stat-num {
    font-family: var(--font-serif);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
}

.editorial-label {
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Decorative numbers */
.deco-number {
    position: relative;
    display: inline-block;
}
.deco-number::before {
    content: attr(data-number);
    position: absolute;
    top: -0.5em;
    left: -0.3em;
    font-family: var(--font-serif);
    font-size: 3em;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.15;
    z-index: 0;
    line-height: 1;
}

/* ============================================================
   12. HAIRLINE DIVIDERS
   ============================================================ */
.hairline {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(11, 34, 57, 0.15), transparent);
}
.hairline-dark {
    background: linear-gradient(90deg, transparent, rgba(247, 245, 240, 0.15), transparent);
}
.hairline-gold {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.divider-ornament::before,
.divider-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.2;
}

/* ============================================================
   13. QUOTE STYLES
   ============================================================ */
.editorial-quote {
    position: relative;
    padding: 2rem 0 2rem 3rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--navy);
}
.editorial-quote::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: 0;
    font-size: 6rem;
    color: var(--gold);
    line-height: 1;
    font-family: var(--font-serif);
}

.big-quote {
    position: relative;
    text-align: center;
}
.big-quote::before {
    content: '"';
    display: block;
    font-family: var(--font-serif);
    font-size: 8rem;
    color: var(--gold);
    line-height: 0.5;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* ============================================================
   14. IMAGE EFFECTS
   ============================================================ */
.image-reveal {
    position: relative;
    overflow: hidden;
}
.image-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--navy);
    transform: translateY(100%);
    transition: transform 0.8s var(--ease-out-expo);
    z-index: 2;
}
.image-reveal.visible::after {
    transform: translateY(0);
    animation: revealSweep 1.2s var(--ease-out-expo) forwards;
}
@keyframes revealSweep {
    0% { transform: translateY(100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.image-zoom {
    overflow: hidden;
}
.image-zoom img {
    transition: transform 1.2s var(--ease-out-expo);
}
.image-zoom:hover img {
    transform: scale(1.1);
}

/* Parallax helper */
.parallax {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ============================================================
   15. BACK TO TOP BUTTON
   ============================================================ */
#back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    background: var(--navy);
    color: var(--ivory);
    border: 1px solid var(--gold);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--duration-normal) var(--ease-out-quart);
    z-index: 998;
    box-shadow: var(--shadow-md);
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}
#back-to-top i {
    transition: transform var(--duration-normal) var(--ease-out-quart);
}
#back-to-top:hover i {
    transform: translateY(-3px);
}

/* ============================================================
   16. SEARCH BAR ENHANCEMENTS
   ============================================================ */
#searchBar {
    transition: all var(--duration-normal) var(--ease-out-expo);
    overflow: hidden;
}
#searchBar.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
#searchBar:not(.hidden) {
    max-height: 200px;
    opacity: 1;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
}

/* ============================================================
   17. READING PROGRESS BAR
   ============================================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-muted) 100%);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.5);
}

/* ============================================================
   18. SCROLL PROGRESS INDICATOR
   ============================================================ */
.scroll-indicator {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 100px;
    background: rgba(11, 34, 57, 0.1);
    z-index: 100;
}
.scroll-indicator-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--gold);
    transition: height 0.1s linear;
}

/* ============================================================
   19. MARQUEE / TICKER
   ============================================================ */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.marquee-content {
    display: inline-block;
    animation: marqueeScroll 30s linear infinite;
    padding-left: 100%;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
.marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* ============================================================
   20. NUMBER COUNTER
   ============================================================ */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   21. SMOOTH TABS
   ============================================================ */
.tab-button {
    position: relative;
    transition: color var(--duration-fast) var(--ease-in-out);
}
.tab-button::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}
.tab-button.active {
    color: var(--navy);
}
.tab-button.active::after {
    transform: scaleX(1);
}

.tab-panel {
    display: none;
    animation: tabFadeIn 0.5s var(--ease-out-expo);
}
.tab-panel.active {
    display: block;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   22. ACCORDION
   ============================================================ */
.accordion-item {
    border-bottom: 1px solid rgba(11, 34, 57, 0.1);
}
.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--navy);
    transition: color var(--duration-fast);
}
.accordion-trigger:hover {
    color: var(--gold-muted);
}
.accordion-trigger i {
    transition: transform var(--duration-normal) var(--ease-out-expo);
}
.accordion-item.open .accordion-trigger i {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-out-expo);
}
.accordion-item.open .accordion-content {
    max-height: 1000px;
}

/* ============================================================
   23. FORM ENHANCEMENTS
   ============================================================ */
.form-input {
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.form-input:focus {
    outline: none;
    border-color: var(--navy) !important;
    box-shadow: 0 0 0 3px rgba(11, 34, 57, 0.08);
}

.form-floating {
    position: relative;
}
.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label {
    transform: translateY(-1.5rem) scale(0.85);
    color: var(--gold-muted);
}

/* ============================================================
   24. TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.toast {
    background: var(--navy);
    color: var(--ivory);
    padding: 1rem 1.5rem;
    min-width: 300px;
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    opacity: 0;
    transition: all var(--duration-normal) var(--ease-out-expo);
    pointer-events: auto;
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-info { border-left-color: var(--info); }

/* ============================================================
   25. MAGNETIC BUTTON EFFECT
   ============================================================ */
.magnetic-btn {
    transition: transform 0.3s var(--ease-out-quart);
    will-change: transform;
}

/* ============================================================
   26. TYPING EFFECT
   ============================================================ */
.typing-cursor::after {
    content: '|';
    display: inline-block;
    color: var(--gold);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* ============================================================
   27. LOADING SKELETONS
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(11, 34, 57, 0.05) 0%, 
        rgba(11, 34, 57, 0.1) 50%, 
        rgba(11, 34, 57, 0.05) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   28. CURSOR EFFECTS (OPTIONAL)
   ============================================================ */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s, height 0.3s;
    mix-blend-mode: difference;
}
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--navy);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
}
.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--gold);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
    .cursor-dot, .cursor-outline { display: none; }
}

/* ============================================================
   29. SPECIAL EFFECTS
   ============================================================ */
/* Glitch effect for special elements */
.glitch {
    position: relative;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--gold);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--navy);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(62px, 9999px, 42px, 0); }
    40% { clip: rect(15px, 9999px, 78px, 0); }
    60% { clip: rect(88px, 9999px, 24px, 0); }
    80% { clip: rect(45px, 9999px, 92px, 0); }
    100% { clip: rect(72px, 9999px, 56px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(34px, 9999px, 68px, 0); }
    40% { clip: rect(82px, 9999px, 15px, 0); }
    60% { clip: rect(28px, 9999px, 71px, 0); }
    80% { clip: rect(55px, 9999px, 38px, 0); }
    100% { clip: rect(18px, 9999px, 85px, 0); }
}

/* Shimmer effect */
.shimmer {
    background: linear-gradient(
        110deg,
        transparent 33%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 67%
    );
    background-size: 300% 100%;
    animation: shimmerMove 2.5s infinite linear;
}
@keyframes shimmerMove {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Float effect */
.float-effect {
    animation: floatEffect 6s ease-in-out infinite;
}
@keyframes floatEffect {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Pulse ring */
.pulse-ring {
    position: relative;
}
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================================
   30. SPECIAL SECTIONS
   ============================================================ */
/* Editorial numbered list */
.numbered-list-item {
    position: relative;
    padding-left: 3rem;
}
.numbered-list-item::before {
    content: attr(data-number);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold-muted);
    line-height: 1;
}

/* Stats bar */
.stats-bar {
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--ivory);
    position: relative;
    overflow: hidden;
}
.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(90deg, 
            transparent 0, 
            transparent 49px, 
            rgba(247, 245, 240, 0.05) 49px, 
            rgba(247, 245, 240, 0.05) 50px);
    pointer-events: none;
}

/* ============================================================
   31. RESPONSIVE ENHANCEMENTS
   ============================================================ */
@media (max-width: 768px) {
    .oversize-num { font-size: 4rem; }
    .editorial-label { font-size: 0.6rem; letter-spacing: 0.2em; }
    #back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
    .scroll-indicator { display: none; }
    .reading-progress { height: 2px; }
}

@media (max-width: 480px) {
    .editorial-quote { font-size: 1.125rem; padding-left: 2rem; }
    .editorial-quote::before { font-size: 4rem; }
    .big-quote::before { font-size: 5rem; }
}

/* ============================================================
   32. PRINT STYLES
   ============================================================ */
@media print {
    body { background: white; color: black; }
    #mainNav, #back-to-top, .reading-progress, 
    .scroll-indicator, .cursor-dot, .cursor-outline,
    .btn-primary, .btn-gold, .btn-outline { display: none !important; }
    a { text-decoration: underline; }
    a::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #666; }
    .fade-in { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   33. ACCESSIBILITY
   ============================================================ */
*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy);
    color: var(--ivory);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* ============================================================
   34. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .fade-in, .fade-in-left, .fade-in-right, .fade-in-scale {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================================
   35. DARK MODE SUPPORT (Optional toggle)
   ============================================================ */
body.dark-mode {
    background: var(--navy-deep);
    color: var(--ivory);
}
body.dark-mode .bg-ivory { background: var(--navy-deep) !important; }
body.dark-mode .bg-white { background: var(--navy-light) !important; }
body.dark-mode .text-navy { color: var(--ivory) !important; }
body.dark-mode .text-slate { color: rgba(247, 245, 240, 0.7) !important; }
body.dark-mode .border-gray-200 { border-color: rgba(247, 245, 240, 0.1) !important; }

/* ============================================================
   36. UTILITY CLASSES
   ============================================================ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-balance {
    text-wrap: balance;
}

.gradient-text {
    background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mask-fade-b {
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* ============================================================
   37. HERO FX — Particles, Aurora, Robot Walker
   ============================================================ */
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,32,.78) 0%, rgba(11,34,57,.94) 100%); }

.aurora-blob { position: absolute; border-radius: 9999px; filter: blur(90px); opacity: .4; animation: auroraFloat 14s ease-in-out infinite alternate; }
@keyframes auroraFloat { from { transform: translate(0,0) scale(1); } to { transform: translate(70px,-50px) scale(1.2); } }

/* Robot welcome strip */
.robot-strip { height: 70px; border-top: 1px solid rgba(247,245,240,.12); background: rgba(6,20,32,.35); backdrop-filter: blur(4px); overflow: hidden; position: relative; }
.robot-track-text { position: absolute; left: 24px; right: 24px; top: 16px; font-family: 'JetBrains Mono', monospace; font-size: .78rem; letter-spacing: .3em; white-space: nowrap; overflow: hidden; }
.robot-track-text .lit { color: var(--gold); text-shadow: 0 0 12px rgba(201,162,39,.5); }
.robot-track-text .dim { color: rgba(247,245,240,.14); }

/* Robot CSS */
.robot { position: absolute; bottom: 10px; left: 0; width: 36px; height: 36px; z-index: 2; }
.robot .antenna { position: absolute; top: 0; left: 17px; width: 2px; height: 6px; background: var(--gold); }
.robot .antenna::after { content: ''; position: absolute; top: -5px; left: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(201,162,39,.8); animation: pulseDot 1s infinite; }
.robot .head { position: absolute; top: 6px; left: 6px; width: 24px; height: 12px; background: var(--ivory); border-radius: 3px; }
.robot .head::before, .robot .head::after { content: ''; position: absolute; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--navy); }
.robot .head::before { left: 5px; } .robot .head::after { right: 5px; }
.robot .body { position: absolute; top: 19px; left: 8px; width: 20px; height: 10px; background: var(--gold); border-radius: 2px; }
.robot .leg { position: absolute; top: 29px; width: 4px; height: 6px; background: var(--ivory); }
.robot .leg.l { left: 11px; } .robot .leg.r { right: 11px; }
.robot.walking .leg.l { animation: stepL .35s infinite; }
.robot.walking .leg.r { animation: stepR .35s infinite; }
@keyframes stepL { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes stepR { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(0); } }
.robot.preview { animation: previewWalk 7s linear infinite; transform: scale(.85); }
@keyframes previewWalk { from { left: 0; } to { left: calc(100% - 36px); } }

/* Text Balance untuk hero */
.text-balance { text-wrap: balance; }

/* ============================================================
   38. CAMPUS LIFE — Ikon akademik melayang
   ============================================================ */
.campus-icon { position: absolute; animation: campusFloat ease-in-out infinite alternate; }
@keyframes campusFloat {
    from { transform: translateY(0) rotate(-4deg); }
    to { transform: translateY(-26px) rotate(5deg); }
}