@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-surface: #f8fafc;
    --bg-blue-tint: #f0f7ff;
    --blue-deep: #0b2545;       /* Deep Oxford Blue */
    --blue-primary: #1d4ed8;    /* Royal Blue */
    --blue-bright: #3b82f6;     /* Sky Accent */
    --blue-soft: #dbeafe;
    --text-heading: #0f172a;
    --text-body: #475569;
    --text-muted: #64748b;
    --border-light: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 4px 20px -2px rgba(11, 37, 69, 0.04);
    --shadow-md: 0 20px 40px -12px rgba(11, 37, 69, 0.08);
    --shadow-blue: 0 14px 30px -6px rgba(29, 78, 216, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-body);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, .display-serif {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--blue-deep);
    letter-spacing: -0.03em;
}

.serif-accent {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--blue-primary);
}

/* Floating Glass Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.95rem 0;
    transition: all 0.35s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.brand-logo {
    width: 50px;
    height: 44px;
    border-radius: 12px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
}

.nav-link {
    color: var(--text-body) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--blue-primary) !important;
    background-color: var(--bg-blue-tint);
}

/* Modern Pill & Rounded Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 100%);
    color: #ffffff;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-blue);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px -6px rgba(29, 78, 216, 0.35);
    color: #ffffff;
}

.btn-soft-outline {
    background-color: #ffffff;
    color: var(--blue-deep);
    border: 1px solid #cbd5e1;
    padding: 0.9rem 2rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-soft-outline:hover {
    border-color: var(--blue-primary);
    background-color: var(--bg-blue-tint);
    color: var(--blue-primary);
    transform: translateY(-2px);
}

/* Section Labels */
.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1.1rem;
    background-color: var(--bg-blue-tint);
    color: var(--blue-primary);
    border: 1px solid var(--blue-soft);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.section-padding {
    padding: 110px 0;
}

.section-heading {
    font-size: 2.65rem;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1.25rem;
}

/* Hero Section with Ambient Glow */
.hero-wrapper {
    position: relative;
    padding: 75px 0 115px;
    background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.13;
    margin-bottom: 1.5rem;
    color: var(--blue-deep);
}

.hero-title .serif-accent {
    font-size: 4rem;
    font-weight: 400;
}

.hero-media-card {
    position: relative;
    border-radius: 28px;
    padding: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.hero-media-card img {
    width: 100%;
    height: 470px;
    object-fit: cover;
    border-radius: 20px;
}

.floating-glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 1rem 1.4rem;
    box-shadow: 0 20px 40px rgba(11, 37, 69, 0.12);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: floatSlow 5s ease-in-out infinite;
}

.floating-glass-card.card-bottom {
    bottom: 28px;
    left: -24px;
}

.floating-glass-card.card-top {
    top: 28px;
    right: -20px;
    animation-delay: 2s;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Floating Stats Bar */
.stats-container {
    margin-top: -55px;
    position: relative;
    z-index: 10;
}

.stats-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

/* Bento Cards (Visi Misi & Profil) */
.bento-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.75rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.35s ease;
}

.bento-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.bento-card.blue-featured {
    background: linear-gradient(145deg, var(--blue-deep) 0%, #173b6c 100%);
    color: #ffffff;
    border: none;
}

.bento-card.blue-featured h3 {
    color: #ffffff;
}

.mission-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 1.1rem;
    border-radius: 16px;
    background-color: var(--bg-surface);
    margin-bottom: 0.9rem;
    transition: background 0.3s ease;
}

.mission-item:hover {
    background-color: var(--bg-blue-tint);
}

.mission-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #ffffff;
    color: var(--blue-primary);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

/* Program Cards */
.program-modern-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem 2.2rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.program-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-soft);
}

.icon-circle-blue {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--bg-blue-tint);
    color: var(--blue-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.6rem;
    transition: all 0.35s ease;
}

.program-modern-card:hover .icon-circle-blue {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-primary));
    color: #ffffff;
    transform: scale(1.06) rotate(-3deg);
}

/* Modern Gallery Cards */
.gallery-modern {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    height: 340px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 37, 69, 0) 35%, rgba(11, 37, 69, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    color: #ffffff;
    transition: all 0.4s ease;
}

.gallery-modern:hover img {
    transform: scale(1.08);
}

.gallery-tag {
    display: inline-block;
    width: fit-content;
    padding: 0.25rem 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

/* PPDB Rounded Banner */
.ppdb-modern-banner {
    background: linear-gradient(135deg, #0b2545 0%, #1d4ed8 100%);
    border-radius: 32px;
    padding: 4.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(29, 78, 216, 0.3);
}

.ppdb-modern-banner::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    top: -120px;
    right: -80px;
}

/* Contact Inputs */
.form-modern {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 0.95rem 1.2rem;
    font-size: 0.95rem;
    color: var(--text-heading);
    transition: all 0.25s ease;
}

.form-modern:focus {
    background-color: #ffffff;
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    outline: none;
}

/* Footer */
footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 5rem 0 2.5rem;
}

@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hero-title .serif-accent { font-size: 2.9rem; }
    .floating-glass-card.card-bottom { left: 10px; bottom: 15px; }
    .floating-glass-card.card-top { right: 10px; top: 15px; }
    .ppdb-modern-banner { padding: 2.5rem; border-radius: 24px; }
}