/* ============================================================
   DESIGN SYSTEM FRONT-END — PT NEXUS RESEARCH PUBLISHING
   Palet: Navy #0b1c3f | Biru #0d47a1 | Emas #c99c33
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --nexus-navy: #0b1c3f;
    --nexus-blue: #0d47a1;
    --nexus-blue-light: #1565c0;
    --nexus-gold: #c99c33;
    --nexus-gold-soft: #e6c266;
    --nexus-light: #f4f7fc;
    --nexus-border: #e3e9f3;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333f56;
    background-color: #ffffff;
    overflow-x: hidden;
}

section[id],
div[id] {
    scroll-margin-top: 84px;
}

/* Kelas bantu legacy (dipakai di services.php & contact.php) */
.bg-nexus {
    background-color: var(--nexus-blue) !important;
}

.text-nexus {
    color: var(--nexus-blue) !important;
}

/* ---------- BUTTONS ---------- */
.btn-gold {
    background: linear-gradient(135deg, var(--nexus-gold-soft), var(--nexus-gold));
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 50rem;
    padding: 0.75rem 1.9rem;
    box-shadow: 0 10px 24px rgba(201, 156, 51, 0.38);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(201, 156, 51, 0.5);
    color: #fff;
}

.btn-outline-light-nexus {
    border: 2px solid rgba(255, 255, 255, 0.75);
    color: #fff;
    font-weight: 600;
    border-radius: 50rem;
    padding: 0.7rem 1.8rem;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light-nexus:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
    transform: translateY(-3px);
}

.btn-nexus {
    background: linear-gradient(135deg, var(--nexus-blue-light), var(--nexus-blue));
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 50rem;
    padding: 0.7rem 1.8rem;
    box-shadow: 0 10px 24px rgba(13, 71, 161, 0.3);
    transition: all 0.3s ease;
}

.btn-nexus:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(13, 71, 161, 0.45);
    color: #fff;
}

/* ---------- NAVBAR ---------- */
.nexus-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(11, 28, 63, 0.08);
    padding: 0.65rem 0;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.nexus-navbar .navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.nexus-navbar .navbar-brand img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nexus-navbar .navbar-brand:hover img {
    transform: scale(1.03);
}

.nexus-navbar .btn-nexus {
    padding: 0.5rem 1.4rem;
    font-size: 0.9rem;
}

.nexus-navbar .navbar-nav .nav-link {
    color: var(--nexus-navy);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    padding: 0.55rem 1rem;
    margin: 0 0.15rem;
    position: relative;
    transition: color 0.3s ease;
}

.nexus-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--nexus-gold), var(--nexus-gold-soft));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nexus-navbar .navbar-nav .nav-link:hover,
.nexus-navbar .navbar-nav .nav-link.active {
    color: var(--nexus-blue);
}

.nexus-navbar .navbar-nav .nav-link:hover::after,
.nexus-navbar .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.nexus-navbar .navbar-toggler {
    border: 1.5px solid var(--nexus-navy);
    border-radius: 10px;
    padding: 0.35rem 0.6rem;
}

.nexus-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
}

.nexus-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(11,28,63,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .nexus-navbar .navbar-collapse {
        background: #fff;
        border-radius: 16px;
        margin-top: 0.8rem;
        padding: 1rem 1.25rem;
        box-shadow: 0 18px 40px rgba(11, 28, 63, 0.15);
        border: 1px solid var(--nexus-border);
    }

    .nexus-navbar .navbar-nav .nav-link {
        padding: 0.8rem 0.5rem;
        border-bottom: 1px dashed var(--nexus-border);
    }

    .nexus-navbar .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .nexus-navbar .navbar-nav .nav-link::after {
        display: none;
    }

    .nexus-navbar .navbar-nav .nav-link.active {
        color: var(--nexus-blue);
        font-weight: 700;
    }

    .nexus-navbar .navbar-brand img {
        max-height: 44px;
    }
}

@media (max-width: 380px) {
    .nexus-navbar .navbar-brand img {
        max-height: 38px;
    }
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: 7rem 0 6rem;
    background:
        radial-gradient(1100px 520px at 85% -10%, rgba(21, 101, 192, 0.55), transparent 60%),
        radial-gradient(900px 480px at -10% 110%, rgba(201, 156, 51, 0.22), transparent 55%),
        linear-gradient(135deg, #081631 0%, #0b1c3f 45%, #0d47a1 100%);
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px);
    background-size: 26px 26px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    color: #f2d789;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.5rem 1.1rem;
    border-radius: 50rem;
    margin-bottom: 1.6rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.4rem;
}

.hero h1 .accent {
    color: var(--nexus-gold-soft);
    font-style: italic;
}

.hero-lead {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.2rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.4rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat .num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #f2d789;
    line-height: 1;
}

.hero-stat .lbl {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.4rem;
}

/* Kolase sampul jurnal */
.hero-visual {
    position: relative;
    min-height: 380px;
}

.hero-cover {
    position: absolute;
    width: 158px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(2, 10, 30, 0.55);
    border: 3px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-cover img {
    width: 100%;
    display: block;
}

.hero-cover.c1 { top: 4%;  left: 4%;  transform: rotate(-8deg); z-index: 2; }
.hero-cover.c2 { top: 18%; left: 34%; transform: rotate(3deg);  z-index: 4; }
.hero-cover.c3 { top: 52%; left: 6%;  transform: rotate(9deg);  z-index: 3; }
.hero-cover.c4 { top: 56%; left: 40%; transform: rotate(-5deg); z-index: 5; }

.hero-cover:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.06);
    z-index: 10;
    box-shadow: 0 40px 80px rgba(2, 10, 30, 0.7);
}

.hero-float-badge {
    position: absolute;
    right: 2%;
    bottom: 2%;
    z-index: 12;
    background: linear-gradient(135deg, var(--nexus-gold-soft), var(--nexus-gold));
    color: #fff;
    border-radius: 16px;
    padding: 0.9rem 1.2rem;
    box-shadow: 0 18px 40px rgba(201, 156, 51, 0.45);
    animation: floatY 4.5s ease-in-out infinite;
}

.hero-float-badge .bi {
    font-size: 1.4rem;
}

.hero-float-badge small {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@media (max-width: 991.98px) {
    .hero { padding: 4rem 0 3.5rem; }
    .hero-visual { margin-top: 3rem; min-height: 300px; }
    .hero-cover { width: 128px; }
}

@media (max-width: 420px) {
    .hero-cover { width: 100px; }
}

/* ---------- SECTION HEADINGS ---------- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--nexus-gold);
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--nexus-navy);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 1rem;
}

.section-title .dot {
    color: var(--nexus-gold);
}

.section-sub {
    color: #64748b;
    font-size: 0.98rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.divider {
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--nexus-gold), var(--nexus-gold-soft));
    margin: 0 auto;
}

/* ---------- ABOUT ---------- */
.about-img-wrap {
    position: relative;
}

.about-img-wrap img {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(11, 28, 63, 0.18);
}

.about-img-wrap::after {
    content: '';
    position: absolute;
    inset: -18px 18px 18px -18px;
    border: 3px solid var(--nexus-gold);
    border-radius: 20px;
    z-index: -1;
}

.about-check-list li {
    padding: 0.55rem 0;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: #475569;
}

.about-check-list .bi {
    color: var(--nexus-blue);
    font-size: 1.15rem;
    margin-top: 0.1rem;
}

/* ---------- CARDS VISI MISI & LAYANAN ---------- */
.nexus-card {
    background: #fff;
    border: 1px solid var(--nexus-border);
    border-radius: 18px;
    padding: 1.9rem;
    height: 100%;
    box-shadow: 0 6px 20px rgba(11, 28, 63, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.nexus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nexus-gold), var(--nexus-gold-soft));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.nexus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(11, 28, 63, 0.14);
    border-color: rgba(201, 156, 51, 0.4);
}

.nexus-card:hover::before {
    transform: scaleX(1);
}

.nexus-card .icon-circle {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--nexus-blue-light), var(--nexus-blue));
    box-shadow: 0 12px 24px rgba(13, 71, 161, 0.28);
    margin-bottom: 1.3rem;
    transition: transform 0.35s ease;
}

.nexus-card:hover .icon-circle {
    transform: scale(1.08) rotate(-6deg);
}

.nexus-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--nexus-navy);
    margin-bottom: 0.7rem;
}

.nexus-card p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ---------- STRIP BIRU ---------- */
.nexus-strip {
    background:
        radial-gradient(800px 300px at 10% 0%, rgba(21, 101, 192, 0.5), transparent 60%),
        linear-gradient(135deg, #0b1c3f, #0d47a1);
    border-radius: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.nexus-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
}

.nexus-strip .display-6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* ---------- CARD JURNAL ---------- */
.journal-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--nexus-border);
    padding: 1.2rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 8px 24px rgba(11, 28, 63, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.journal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(11, 28, 63, 0.16);
}

.journal-card img {
    max-height: 230px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(11, 28, 63, 0.22);
    transition: transform 0.4s ease;
}

.journal-card:hover img {
    transform: scale(1.04);
}

.journal-card h5 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--nexus-navy);
    line-height: 1.5;
    margin-top: 1rem;
}

.journal-card .j-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nexus-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.journal-card .j-link:hover {
    color: var(--nexus-gold);
    gap: 0.6rem;
}

/* ---------- LEGALITAS ---------- */
.legal-card {
    border: 1px solid var(--nexus-border);
    border-top: 4px solid var(--nexus-gold);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(11, 28, 63, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.legal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(11, 28, 63, 0.16);
}

.legal-card iframe {
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
}

/* ---------- ANIMASI REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
