/* Variables & Overrides */
:root {
    --bs-primary: #004a99; /* Academic Blue Override Bootstrap Primary */
    --academic-blue: #004a99;
    --academic-accent: #eef5ff;
    --text-dark: #333333;
    --section-bg: #f8faff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
}

/* Utility Classes Kustom */
.academic-text {
    color: var(--academic-blue) !important;
}

.section-bg {
    background-color: var(--section-bg);
}

/* Navbar Styling */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: var(--transition);
}

.navbar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--academic-blue);
    letter-spacing: 1px;
    line-height: 1;
}

.logo-subtext {
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin-left: 1rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--academic-blue) !important;
}

/* --- LOGO ICON STYLE --- */

.logo-icon-wrapper {
    background: #141C64; /* Warna Deep Blue agar ikon putih menonjol */
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(20, 28, 100, 0.2);
    transition: all 0.3s ease;
}

/* Warna Ikon didalam Logo */
.logo-icon-wrapper i {
    color: #FFFFFF; /* Putih bersih */
    font-size: 1.4rem;
    transition: all 0.5s ease;
}

/* Animasi Spin saat Navbar di-hover */
.logo:hover .logo-icon-wrapper i {
    transform: rotate(180deg); /* Berputar saat kursor diarahkan ke logo */
    color: #00a8ff; /* Berubah jadi biru muda saat hover */
}

.logo:hover .logo-icon-wrapper {
    background: #001a33;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.4); /* Efek Glowing */
}

/* Menyesuaikan teks logo agar sejajar dengan ikon */
.logo-text-group {
    line-height: 1;
}

.logo-text {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #141C64;
    letter-spacing: -0.5px;
}

.logo-subtext {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: #666;
    font-weight: 700;
}

/* Warna kustom untuk text-academic-blue jika belum ada */
.text-academic-blue {
    color: #141C64;
}




/* Hero Section Styling */
/* Hero Section dengan Parallax & Transparansi */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    overflow: hidden;
    background-color: #ffffff; /* Warna dasar */
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* REVISI: Background Image & Parallax */
    background-image: url('../img/gedungfmipa2.webp');
    background-attachment: fixed; /* Ini menciptakan efek Parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* REVISI: Transparansi 25% (Opacity 0.25) */
    opacity: 0.25; 
    z-index: 1;
}

/* Memastikan konten tetap di atas background */
.hero-section .container {
    z-index: 2;
}

/* Optimasi Mobile: Parallax seringkali berat/tidak stabil di mobile */
@media (max-width: 991.98px) {
    .hero-section::before {
        background-attachment: scroll; /* Matikan parallax di mobile untuk performa */
    }
    
    .hero-title {
        font-size: 2.8rem;
        background: rgba(255, 255, 255, 0.7); /* Background tipis agar teks lebih terbaca di mobile */
        display: inline-block;
        padding: 5px 15px;
        border-radius: 8px;
    }
}
.hero-title {
    font-size: 3.5rem;
    color: var(--academic-blue);
    line-height: 1.1;
}

/* === Section Panduan ===*/

/* --- CSS UNTUK TOMBOL ACADEMIC --- */

.btn-academic-primary {
    background-color: #004a99; /* Biru Akademik */
    border-color: #004a99;
    color: #FFFFFF !important; /* Warna teks putih */
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 74, 153, 0.3);
}

.btn-academic-primary:hover {
    background-color: #003366; /* Biru lebih gelap saat hover */
    border-color: #003366;
    color: #FFFFFF !important;
    transform: translateY(-3px); /* Efek melompat sedikit */
    box-shadow: 0 6px 20px rgba(0, 74, 153, 0.4);
}

.btn-outline-academic {
    color: #004a99;
    border: 2px solid #004a99;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-academic:hover {
    background-color: rgba(0, 74, 153, 0.1);
    color: #003366;
    border-color: #003366;
    transform: translateY(-3px);
}

/* Pastikan pembungkus tombol memiliki margin atas agar tidak menempel ke teks */
.hero-btns {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* == section layanan digital==*/

/* --- ANIMASI HOVER LAYANAN DIGITAL --- */

.service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efek pegas/bounce */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Garis aksen biru yang muncul dari bawah saat hover */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #004a99; /* Warna Biru Akademik */
    transition: all 0.3s ease;
    z-index: -1;
}

/* Efek Kartu saat Mouse On Hover */
.service-card:hover {
    transform: translateY(-15px); /* Kartu naik ke atas */
    box-shadow: 0 20px 40px rgba(0, 74, 153, 0.15); /* Bayangan lebih dalam */
    border-color: #004a99;
}

/* Animasi Ikon saat Hover */
.service-card:hover .academic-text {
    transform: scale(1.1) ease-in-out; /* Ikon membesar dan sedikit miring */
    color: #004a99 !important;
    transition: all 0.3s ease;
}

.service-card .academic-text {
    transition: all 0.3s ease;
    display: inline-block;
}

/* Animasi Tombol/Teks Link saat Hover */
.service-card .btn-text {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.service-card:hover .btn-text {
    letter-spacing: 1px; /* Teks sedikit merenggang */
    color: #003366 !important;
}

.service-card:hover .btn-text i {
    transform: translateX(8px); /* Panah bergerak ke kanan */
    transition: all 0.3s ease;
}

/* Efek khusus untuk ikon */
.icon-box {
    background: #f8faff;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background: #eef5ff;
}



/* Section Cara Pengisian */
.cara-pengisian {
    position: relative;
    background-color: #141C64; /* Background sesuai permintaan */
    overflow: hidden;
}

/* Background Parallax dengan Transparansi 25% */
.cara-pengisian::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/gedungfmipa2.webp');
    background-attachment: fixed; /* True Parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.25; /* Transparansi 25% */
    z-index: 1;
}

/* Garis dekorasi di bawah header */
.header-line {
    width: 60px;
    height: 3px;
    background-color: #FFFFFF;
}

/* Card Styling */
.step-card {
    background: rgba(255, 255, 255, 0.08); /* Background kartu semi-transparan */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease-in-out;
}

.step-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #FFFFFF;
}

/* Icon & Number Styling */
.step-icon-wrapper {
    position: relative;
    display: inline-block;
}

/* REVISI: Warna Ikon Putih #FFFFFF */
.white-icon {
    color: #FFFFFF !important;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.step-number {
    position: absolute;
    top: -5px;
    right: -25px;
    background: #FFFFFF;
    color: #141C64; /* Angka menggunakan warna Navy agar kontras */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Responsivitas Mobile */
@media (max-width: 991px) {
    .cara-pengisian::before {
        background-attachment: scroll; /* Parallax dimatikan di mobile agar lancar */
    }
}






/* Footer Deep Blue Ocean Theme */
.footer-section {
    /* Perpaduan warna Navy pekat dan Ocean Blue */
    background: linear-gradient(135deg, #1f104f 0%, #002d59 50%, #001a33 100%);
    position: relative;
}

/* Garis bawah tipis pada heading footer */
.footer-heading {
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #00a8ff; /* Warna aksen biru terang */
}

/* Styling Logo Footer */
.footer-logo {
    max-height: 75px;
    width: auto;
    
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Sosial Media Buttons */
.social-links .btn-outline-light {
    width: 35px;
    height: 35px;
    padding: 0;
    line-height: 33px;
    border-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.social-links .btn-outline-light:hover {
    background-color: #00a8ff;
    border-color: #00a8ff;
    transform: translateY(-3px);
}

/* Aksen teks info */
.text-info {
    color: #ffffff !important;
}

/* Badge Libur agar lebih soft */
.bg-danger {
    background-color: #dc3545 !important;
	font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 120px;
        text-align: center;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-img {
        max-height: 300px; /* Batasi tinggi gambar di mobile agar tidak terlalu dominan */
        margin-top: 2rem;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }
}