@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --brand-primary: #60a5fa;
    --brand-secondary: #22d3ee;
    --brand-accent: #f59e0b;
    --brand-dark: #0b1224;
    --brand-muted: #9ca3af;
    --surface-base: #0b1224;
    --surface-foreground: #0f172a;
    --surface-soft: #111827;
    --text-primary: #e5e7eb;
    --text-muted: #9ca3af;
    --border-light: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.35);
    --radius-lg: 20px;
    --radius-xl: 28px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.15), transparent 42%),
        radial-gradient(circle at 82% 12%, rgba(34, 211, 238, 0.16), transparent 48%),
        linear-gradient(180deg, #0b1224 0%, #0d162b 50%, #0b1224 100%);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    letter-spacing: 0.01em;
    font-size: clamp(15px, 1.1vw, 16px);
    line-height: 1.6;
}

/* Loading/Skeleton */
body.page-loading {
    cursor: progress;
}

.page-loading-shell {
    position: relative;
}

.page-loading-shell__skeleton {
    display: none;
}

.page-loading-shell__content {
    transition: opacity 0.15s ease, filter 0.15s ease;
}

body.page-loading .page-loading-shell__skeleton {
    display: block;
}

body.page-loading .page-loading-shell__content {
    opacity: 0.35;
    pointer-events: none;
    filter: blur(1px);
}

.skeleton {
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.08) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.25s ease-in-out infinite;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 10px;
}

.skeleton-lg { height: 18px; }
.skeleton-sm { height: 10px; }
.skeleton-pill { height: 24px; border-radius: 999px; }

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

a {
    color: var(--brand-primary);
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
    color: var(--brand-secondary);
    opacity: 0.85;
}

.app-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.app-section {
    background: var(--surface-foreground);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.app-container {
    max-width: 1140px;
}

.app-navbar {
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.app-navbar .navbar-brand {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.app-navbar .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.32), transparent 58%), rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-right: 0.75rem;
    }

.app-navbar .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.app-navbar .brand-initials {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.app-navbar .navbar-nav .nav-link {
    color: rgba(229, 231, 235, 0.82);
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
}

.app-navbar .navbar-nav .nav-link.active,
.app-navbar .navbar-nav .nav-link:hover {
    color: #fff;
    background: rgba(96, 165, 250, 0.16);
}

.app-hero {
    position: relative;
    background:
        radial-gradient(circle at 18% 32%, rgba(96, 165, 250, 0.18), transparent 46%),
        radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.16), transparent 50%),
        linear-gradient(145deg, #0f172a, #111827);
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: clamp(32px, 6vw, 56px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
    margin-bottom: 2.5rem;
}

.app-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 55%),
        radial-gradient(circle at 60% 80%, rgba(96, 165, 250, 0.16), transparent 60%);
}

.app-hero__grid {
    position: relative;
    display: grid;
    gap: clamp(24px, 4vw, 40px);
    align-items: center;
    z-index: 2;
}

.app-hero--with-media .app-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
}

.app-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand-primary);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-hero__title {
    color: var(--text-primary);
    font-size: clamp(28px, 5.5vw, 52px);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
}

.app-hero__lead {
    color: rgba(229, 231, 235, 0.88);
    max-width: 540px;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.7;
}

.app-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.1rem;
    padding: 0.5rem 1.1rem;
    border-radius: 12px;
    background: linear-gradient(130deg, #60a5fa, #22d3ee);
    color: #fff;
    font-weight: 600;
    font-size: 0.93rem;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    min-width: auto;
    min-height: auto;
}

.app-hero__cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.16), transparent 40%, rgba(255,255,255,0.12));
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.app-hero__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 45%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.app-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(6, 24, 45, 0.32);
    color: #fff;
}

.app-hero__cta:hover::after {
    opacity: 1;
    transform: translateX(4px);
}

.app-hero__cta:hover::before,
.app-hero__cta:focus-visible::before {
    opacity: 1;
}

.app-hero__cta--ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.app-hero__cta--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.app-hero__media {
    position: relative;
}

.app-hero__media img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}
.app-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(255,255,255,0.06), transparent 40%);
    pointer-events: none;
}

.app-footer {
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.88));
    color: rgba(226, 232, 240, 0.85);
    padding: 2.5rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.app-footer .footer-brand {
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
}

.app-footer .footer-meta {
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.app-footer .footer-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.app-footer .footer-links a {
    color: rgba(226, 232, 240, 0.85);
    font-weight: 500;
    text-decoration: none;
}

.portfolio-page .card-surface {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}

.portfolio-hero {
    display: grid;
    gap: 1.5rem;
    position: relative;
    margin-top: -30px;
}

.portfolio-hero__grid {
    display: grid;
    grid-template-columns: 240px 1fr 200px;
    gap: 0.85rem 1.1rem;
    align-items: start;
}

.portfolio-avatar {
    width: 180px;
    height: 180px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.18), rgba(17, 24, 39, 0.9));
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}

.portfolio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.portfolio-avatar__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #e5e7eb;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: 1.25rem;
}

.portfolio-hero::after {
    content: "";
    position: absolute;
    inset: 8px 10px;
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(96, 165, 250, 0.12), transparent 50%);
    pointer-events: none;
    opacity: 0.7;
}

.portfolio-hero__avatar-wrap {
    display: grid;
    gap: 0.75rem;
    justify-items: start;
}

.portfolio-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.12);
    color: #e5edff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    margin-top: -24px;
}

.portfolio-hero__title h1 {
    margin: 0.25rem 0;
    font-size: clamp(30px, 3vw, 38px);
}

.portfolio-hero__title p {
    margin: 0;
    color: rgba(226, 232, 240, 0.8);
}

.portfolio-hero__info {
    display: grid;
    gap: 0.9rem;
    align-self: start;
}

.portfolio-hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    align-self: start;
}
.meta-item--compact {
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
}
.btn-soft {
    padding: 0.55rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
}

.portfolio-hero__meta .meta-item {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-hero__meta span {
    display: block;
    color: rgba(226, 232, 240, 0.65);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.portfolio-hero__meta strong {
    color: #f9fafb;
}

.portfolio-hero__cta-col {
    display: grid;
    gap: 0.65rem;
    align-content: start;
}

.portfolio-hero__cta-col .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 12px;
    font-size: 0.93rem;
    line-height: 1.2;
    min-width: auto;
    width: 100%;
}

.portfolio-hero__right {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    min-height: 84px;
    display: grid;
    gap: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.14);
}

.contact-card--wide {
    grid-column: span 2;
}

.gallery-section {
    margin-top: 1rem;
}

.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
}

.gallery-card {
    position: relative;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    break-inside: avoid;
    margin-bottom: 1rem;
    transform: perspective(800px) rotateX(0) rotateY(0);
}

.gallery-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: blur(8px) brightness(0.9);
    transform: scale(1);
    transition: transform 0.3s ease, filter 0.4s ease;
}

.gallery-card:hover {
    transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.gallery-card .gallery-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.28), rgba(34, 211, 238, 0.2));
    opacity: 0;
    transition: opacity 0.25s ease;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover img {
    transform: scale(1.04);
    filter: blur(0) brightness(1);
}

.gallery-card img.loaded {
    filter: blur(0) brightness(1);
}

.gallery-overlay::before {
    content: "";
    margin-right: 0;
    font-size: 0;
}

.modal-dark {
    background: rgba(17, 24, 39, 0.92);
    border-radius: 14px;
}

#galleryModalImage {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background: #0f172a;
    border-radius: 12px;
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav--prev { left: 12px; }
.gallery-nav--next { right: 12px; }

@media (max-width: 991px) {
    .gallery-grid { column-count: 2; }
}

@media (max-width: 575px) {
    .gallery-grid { column-count: 1; }
}

.meta-label {
    color: rgba(226, 232, 240, 0.65);
    font-size: 0.9rem;
    font-weight: 600;
}

.meta-value {
    color: #fff;
    font-weight: 700;
    line-height: 1.4;
}

.cta-card {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 14px;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}

.cta-card--ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.portfolio-hero__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.portfolio-hero__skills .pill {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portfolio-hero__skills .pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.app-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-top: 1.35rem;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
    border-color: rgba(255, 255, 255, 0.14);
}

.stat-card__label {
    color: rgba(229, 231, 235, 0.7);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.stat-card__value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.01em;
}

.stat-card__hint {
    margin-top: 4px;
    color: rgba(229, 231, 235, 0.65);
    font-size: 0.9rem;
}

.portfolio-hero .btn-soft {
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-hero .btn-soft:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.16);
}

.card-timeline .timeline__item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 14px;
    padding: 14px 14px 18px 44px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.03));
    border: 1px solid transparent;
}

.card-timeline .timeline__item:hover {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.app-navbar .navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
}

.app-navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.app-navbar .navbar-nav .nav-link:hover::after,
.app-navbar .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    margin: 0;
}

.section-title {
    margin: 0.15rem 0 0;
    font-size: 1.3rem;
}

.card-header-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.link-primary {
    position: relative;
    color: var(--brand-secondary);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.link-primary::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.link-primary:hover::after {
    transform: scaleX(1);
}

.card-timeline .timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.card-timeline .timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.55), rgba(34, 211, 238, 0.45));
}

.timeline__item {
    position: relative;
    padding-left: 44px;
    padding-bottom: 18px;
}

.timeline__point {
    position: absolute;
    left: 6px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0b1224;
    border: 4px solid var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

.timeline__body h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.timeline__meta {
    display: flex;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.timeline__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(14, 165, 233, 0.2);
    font-weight: 600;
}

.timeline__body p {
    margin: 0;
    color: var(--text-muted);
}

.app-footer .footer-links a:hover {
    color: #fff;
}

.badge-soft {
    background: rgba(59, 130, 246, 0.12);
    color: var(--brand-primary);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-weight: 500;
    font-size: 0.85rem;
}

.card-surface {
    background: var(--surface-foreground);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.32);
    padding: 1.5rem;
}

.card-surface h5 {
    font-weight: 600;
    color: var(--text-primary);
}

.card-surface p {
    color: var(--text-muted);
}

.home-section {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}
.home-section:first-of-type {
    margin-top: 0;
}
.home-section__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.home-section__title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
}
.home-section__subtitle {
    color: var(--text-muted);
    margin: 0;
}
.home-featured-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.home-featured-card {
    border-radius: 22px;
    background: var(--surface-foreground);
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 1.8rem;
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 0.9rem;
}
.home-featured-card::after {
    content: "";
    position: absolute;
    inset: auto -40% -40% auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.28), transparent 70%);
    opacity: 0.7;
}
.home-featured-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(59, 130, 246, 0.15);
    color: var(--brand-primary);
    font-size: 1.35rem;
    font-weight: 600;
}
.home-featured-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-dark);
}
.home-featured-card p {
    margin: 0;
    color: var(--text-muted);
}
.home-latest-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.home-latest-card {
    background: var(--surface-foreground);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 26px 48px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-latest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 52px rgba(15, 23, 42, 0.16);
}
.home-latest-card__media {
    position: relative;
    padding-top: 58%;
    background: rgba(226, 232, 240, 0.6);
    overflow: hidden;
}
.home-latest-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-latest-card__body {
    padding: 1.6rem;
    display: grid;
    gap: 0.75rem;
}
.home-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 600;
}
.news-filter {
    background: var(--surface-foreground);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.8rem;
}
.news-filter form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.news-search {
    flex: 1 1 300px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(241, 245, 255, 0.7);
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.news-search input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 0.95rem;
    outline: none;
}
.news-search .icon {
    color: var(--brand-primary);
    font-size: 1.1rem;
}
.news-filter .btn-filter {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
}
.news-grid {
    display: grid;
    gap: 1.5rem;
}
.news-card {
    background: var(--surface-foreground);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    box-shadow: 0 26px 46px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    display: grid;
    gap: 0;
}
.news-card__media {
    position: relative;
    padding-top: 50%;
    background: rgba(226, 232, 240, 0.6);
}
.news-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card__body {
    padding: 1.8rem;
    display: grid;
    gap: 0.75rem;
}
.news-card__title a {
    color: var(--brand-dark);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}
.news-card__title a:hover {
    color: var(--brand-primary);
}
.news-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.news-card__excerpt {
    margin-bottom: 0;
    color: var(--text-muted);
}
.sidebar-stack {
    display: grid;
    gap: 1.2rem;
}
.sidebar-card {
    background: var(--surface-foreground);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.1);
    padding: 1.6rem;
}
.sidebar-card__title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--brand-dark);
}
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}
.sidebar-list__item {
    transition: transform 0.2s ease;
}
.sidebar-list__item:hover {
    transform: translateX(4px);
}
.sidebar-list__item a {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.8rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}
.sidebar-list__item a:hover {
    opacity: 0.85;
}
.sidebar-list__item a:hover .sidebar-list__title {
    color: var(--brand-primary);
}
.sidebar-list__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(226, 232, 240, 0.6);
}
.sidebar-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-list__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 0.2rem;
}
.sidebar-list__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.input-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(241, 245, 255, 0.7);
    padding: 0.6rem 1.1rem;
}
.input-pill .icon {
    font-size: 1.1rem;
    color: var(--brand-primary);
}
.input-pill input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
    color: var(--brand-dark);
}
.input-pill input::placeholder {
    color: rgba(100, 116, 139, 0.7);
}

@media (max-width: 992px) {
    body {
        font-size: 15px;
    }

    .app-main {
        padding-top: 1.8rem;
        padding-bottom: 1.8rem;
    }

    .app-navbar .navbar-collapse {
        margin-top: 1rem;
        background: rgba(15, 23, 42, 0.9);
        border-radius: var(--radius-lg);
        padding: 1rem;
    }

    .app-navbar .navbar-nav .nav-link {
        display: inline-flex;
        width: 100%;
        font-size: 0.95rem;
    }

    .app-navbar .navbar-toggler {
        border: 1px solid rgba(15, 23, 42, 0.2);
        padding: 0.4rem 0.6rem;
    }

    .app-navbar .navbar-toggler:focus {
        outline: 2px solid rgba(37, 99, 235, 0.4);
        outline-offset: 2px;
    }

    .app-navbar .navbar-toggler-icon {
        background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 23, 42, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\");
    }

    .app-hero {
        padding: clamp(28px, 5vw, 40px);
    }

    .app-hero__title {
        font-size: clamp(24px, 5vw, 36px) !important;
    }

    .app-hero__lead {
        font-size: clamp(0.95rem, 1.1vw, 1.1rem) !important;
    }

    .app-hero--with-media .app-hero__grid {
        grid-template-columns: 1fr;
        gap: clamp(20px, 3vw, 32px);
    }

    .news-filter {
        padding: 1.2rem;
    }

    .news-filter form {
        justify-content: flex-start;
    }

    .news-filter .btn-filter {
        width: 100%;
    }

    .news-card__body {
        padding: 1.5rem;
    }

    .news-card__title a {
        font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    }

    .home-section__title {
        font-size: clamp(20px, 3vw, 28px) !important;
    }
}

@media (max-width: 768px) {
    .app-hero {
        padding: clamp(24px, 4vw, 36px) !important;
        border-radius: 20px;
    }

    .app-hero__title {
        font-size: clamp(22px, 5vw, 28px) !important;
        margin-bottom: 0.6rem;
    }

    .app-hero__lead {
        font-size: 0.95rem !important;
    }

    .news-card__body {
        padding: 1.3rem;
    }

    .home-featured-card,
    .home-latest-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .app-main {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .app-navbar {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .app-navbar .brand-mark {
        width: 36px;
        height: 36px;
    }

    .app-navbar .navbar-brand {
        font-size: 0.95rem;
    }

    .app-navbar .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .app-hero {
        padding: 20px 18px 28px !important;
        margin-bottom: 2rem;
    }

    .app-hero__title {
        font-size: 20px !important;
    }

    .app-hero__lead {
        font-size: 0.9rem !important;
    }

    .app-footer {
        padding: 2rem 0 1.5rem;
    }

    .app-footer .footer-links {
        gap: 0.8rem;
        font-size: 0.85rem;
        flex-direction: column;
    }

    .news-card__body {
        padding: 1.2rem;
    }

    .news-card__title a {
        font-size: 1.05rem;
    }

    .home-featured-card,
    .home-latest-card {
        padding: 1.3rem;
    }

    .home-featured-card h3 {
        font-size: 18px;
    }

    .sidebar-card {
        padding: 1.3rem;
    }
}

/* ============================================
   ANIMASI SMOOTH & ATRAKTIF
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Smooth Transitions untuk Semua Elemen */
.app-navbar {
    animation: fadeInDown 0.6s ease-out;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.app-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}

.app-hero {
    animation: fadeIn 0.8s ease-out;
}

.app-hero__title {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.app-hero__lead {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.app-hero__cta {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.app-hero__media {
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

.app-hero__media img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.app-hero__media:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Home Section Animations */
.home-section {
    animation: fadeIn 0.6s ease-out;
}

.home-section__title {
    animation: fadeInLeft 0.6s ease-out;
}

.home-featured-card {
    animation: fadeInUp 0.6s ease-out both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-featured-card:nth-child(1) {
    animation-delay: 0.1s;
}

.home-featured-card:nth-child(2) {
    animation-delay: 0.2s;
}

.home-featured-card:nth-child(3) {
    animation-delay: 0.3s;
}

.home-featured-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 32px 56px rgba(15, 23, 42, 0.18);
}

.home-featured-card__icon {
    transition: transform 0.3s ease, background 0.3s ease;
}

.home-featured-card:hover .home-featured-card__icon {
    transform: scale(1.1) rotate(5deg);
}

.home-latest-card {
    animation: fadeInUp 0.6s ease-out both;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.home-latest-card:nth-child(1) {
    animation-delay: 0.1s;
}

.home-latest-card:nth-child(2) {
    animation-delay: 0.2s;
}

.home-latest-card:nth-child(3) {
    animation-delay: 0.3s;
}

.home-latest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 36px 60px rgba(15, 23, 42, 0.2);
}

.home-latest-card__media {
    overflow: hidden;
}

.home-latest-card__media img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.home-latest-card:hover .home-latest-card__media img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

/* News Card Animations */
.news-card {
    animation: fadeInUp 0.5s ease-out both;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 56px rgba(15, 23, 42, 0.16);
}

.news-card__media {
    overflow: hidden;
}

.news-card__media img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-card__media img {
    transform: scale(1.08);
}

.news-card__title a {
    transition: color 0.3s ease;
}

.news-card:hover .news-card__title a {
    color: var(--brand-primary);
}

/* Sidebar Animations */
.sidebar-card {
    animation: fadeInRight 0.5s ease-out;
}

.sidebar-list__item {
    animation: fadeInRight 0.4s ease-out both;
}

.sidebar-list__item:nth-child(1) { animation-delay: 0.1s; }
.sidebar-list__item:nth-child(2) { animation-delay: 0.2s; }
.sidebar-list__item:nth-child(3) { animation-delay: 0.3s; }
.sidebar-list__item:nth-child(4) { animation-delay: 0.4s; }
.sidebar-list__item:nth-child(5) { animation-delay: 0.5s; }

.sidebar-list__thumb {
    overflow: hidden;
}

.sidebar-list__thumb img {
    transition: transform 0.4s ease;
}

.sidebar-list__item:hover .sidebar-list__thumb img {
    transform: scale(1.1);
}

/* Button Animations */
.btn,
.btn-filter,
.app-hero__cta {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before,
.btn-filter::before,
.app-hero__cta::before {
    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:hover::before,
.btn-filter:hover::before,
.app-hero__cta:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover,
.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
}

.btn:active,
.btn-filter:active {
    transform: translateY(0);
}

.app-hero__cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 24px 48px rgba(59, 130, 246, 0.4);
}

/* Badge Animations */
.badge-soft {
    animation: scaleIn 0.4s ease-out;
    transition: transform 0.2s ease, background 0.2s ease;
}

.badge-soft:hover {
    transform: scale(1.1);
}

/* Card Surface Animations */
.card-surface {
    animation: fadeInUp 0.5s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-surface:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* News Filter Animations */
.news-filter {
    animation: fadeInDown 0.5s ease-out;
}

.news-search {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-search:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

/* Loading State */
@keyframes skeleton {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

/* Scroll Animations (akan diaktifkan dengan JavaScript) */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-on-scroll[data-variant="slide-left"].visible {
    transform: translateX(0);
}

.fade-in-on-scroll[data-variant="slide-left"] {
    transform: translateX(24px);
}

.fade-in-on-scroll[data-variant="scale-up"] {
    transform: scale(0.96);
}

.fade-in-on-scroll[data-variant="scale-up"].visible {
    transform: scale(1);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Reduce Motion untuk Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
