/* ===============================
   RESET & BASE (MODERN CLEAN WHITE)
================================ */
/* Font diload via preload di HTML untuk performa lebih baik */

:root {
    /* Base Colors - CLEAN WHITE THEME */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    /* Slate-50 */
    --bg-floating: rgba(255, 255, 255, 0.85);

    /* Text Colors */
    --text-main: #0f172a;
    /* Slate-900 */
    --text-muted: #64748b;
    /* Slate-500 */
    --text-light: #94a3b8;
    /* Slate-400 */

    /* Brand Colors */
    --accent: #2563eb;
    /* Blue-600 */
    --accent-hover: #1d4ed8;
    /* Blue-700 */
    --accent-surface: #eff6ff;
    /* Blue-50 */

    /* UI Elements */
    --border: #e2e8f0;
    /* Slate-200 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* Soft Modern Shadow */
    --shadow-hover: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
    /* Colored Shadow */

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* ===============================
   UTILITY NAV (Top Bar)
================================ */
.utility-nav {
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    /* Center for mobile appeal */
    align-items: center;
    gap: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.utility-nav a {
    color: var(--text-muted);
}

.utility-nav a:hover {
    color: var(--accent);
}

/* ===============================
   "NEWS TICKER" Highlight Bar
================================ */
.highlight-bar {
    background: var(--accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.highlight-bar-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}

.highlight-bar span {
    display: inline-block;
    margin-right: 60px;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ===============================
   MAIN NAVBAR (Glassmorphism)
================================ */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-floating);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav nav {
    display: flex;
    gap: 8px;
}

.main-nav nav a {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 50px;
}

.main-nav nav a:hover,
.main-nav nav a.active {
    background: var(--accent-surface);
    color: var(--accent);
}

/* ===============================
   HERO / DISCOVER SECTION
================================ */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero img {
    width: 100%;
    height: 65vh;
    /* Taller hero */
    object-fit: cover;
    filter: brightness(0.85);
    /* Slightly brighter for clean look */
}

/* Gradient Overlay for Text Readability on Images */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0) 40%,
            rgba(255, 255, 255, 1) 98%);
    pointer-events: none;
}

.hero-text {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.brand-tagline {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-main);
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===============================
   ARTICLE LIST (Modern Cards)
================================ */
.article-list {
    padding: 40px 5% 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-list h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

#articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-surface);
}

.article-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--text-main);
}

.article-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
    /* Pushes footer down */
}

/* Footer of Card (Author & Date) */
.article-meta {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.hot-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ef4444;
    /* Red-500 */
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

/* ===============================
   ARTICLE DETAIL PAGE
================================ */
main.article-detail {
    max-width: 800px;
    margin: 40px auto 140px;
    padding: 0 24px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 2.5rem;
    /* Big Title */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.article-header img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-top: 20px;
}

.article-body p {
    font-size: 1.125rem;
    margin-bottom: 24px;
    color: #334155;
    line-height: 1.8;
}

.article-body h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.article-body ul {
    margin-bottom: 24px;
    padding-left: 20px;
    list-style-type: none;
}

.article-body li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 8px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Bullet styling */
.article-body li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.article-body strong {
    color: var(--text-main);
    font-weight: 700;
}

/* ===============================
   FOOTER (Clean Dark)
================================ */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 5% 120px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
}

.footer-brand h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.disclaimer-box {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-links h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    font-size: 13px;
}

/* ===============================
   BOTTOM NAV (Mobile Preferred)
================================ */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    gap: 32px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
}

.bottom-nav a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.bottom-nav a:hover,
.bottom-nav a.active {
    color: var(--accent);
    transform: translateY(-2px);
}

/* ===============================
   BUTTONS
================================ */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent-surface);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {

    .main-nav,
    .utility-nav {
        display: none;
        /* Simplify execution: hide desktop navs on mobile, rely on bottom nav */
    }

    .hero img {
        height: 500px;
    }

    .hero-text {
        width: 92%;
        bottom: 5%;
        padding: 24px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .bottom-nav {
        width: 90%;
        justify-content: space-around;
        bottom: 16px;
    }
}

/* ===============================
   LOADING STATE
================================ */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
    grid-column: 1 / -1;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===============================
   ABOUT PAGE PROFESSIONAL
================================ */
.about-hero {
    text-align: center;
    padding: 100px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease-out forwards;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 50%, #1e40af 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 5s ease infinite alternate;
    letter-spacing: -1px;
}

.about-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Feature Grid with Entrance Animation */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto 100px;
    padding: 0 5%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

/* Stagger Animation delays */
.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: #ffffff;
    border-color: var(--accent-surface);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Responsive Polish */
@media (max-width: 768px) {
    .about-hero {
        padding-top: 40px;
    }

    .about-hero h1 {
        font-size: 2.2rem;
    }
}