/* =========================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

a { text-decoration: none; }
ul { list-style: none; }

/* =========================================
   2. NAVBAR & HEADER
   ========================================= */
/* =========================================
   2. NAVBAR & HEADER
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: transparent; /* Bening di awal */
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Teks Logo: Putih saat transparan */
.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    transition: color 0.3s ease;
}
.logo-text p {
    font-size: 0.8rem;
    color: #ddd;
    margin: 0;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

/* Teks Menu: Putih saat transparan */
.nav-links a, .nav-btn {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

/* Hover Menu saat transparan: Kuning emas */
.nav-links a:hover, .nav-btn:hover, .nav-links a.active {
    color: #ffcc00;
}

.btn-nav-ppdb {
    background-color: #28a745;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}
.btn-nav-ppdb:hover {
    background-color: #218838;
}

/* =========================================
   CLASS .scrolled (DI-INJECT OLEH JS)
   ========================================= */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    padding: 10px 50px; /* Navbar sedikit mengecil agar dinamis */
}

/* Kembalikan warna teks jadi gelap saat navbar berubah putih */
.navbar.scrolled .logo-text h1 { color: #0056b3; }
.navbar.scrolled .logo-text p { color: #666; }
.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-btn { color: #333; }

/* Hover biru saat navbar putih */
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-btn:hover,
.navbar.scrolled .nav-links a.active {
    color: #0056b3;
}
.btn-nav-ppdb {
    background-color: #28a745;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.btn-nav-ppdb:hover {
    background-color: #218838;
}

/* =========================================
   3. HERO SECTION (VIDEO BG)
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding-top: 70px; /* Offset navbar */
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 32, 96, 0.6);
    z-index: -1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 30px;
    background: #ffcc00;
    color: #222;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: white;
    transform: translateY(-3px);
}

/* =========================================
   4. JURUSAN & BERITA SECTION
   ========================================= */
section {
    padding: 80px 8%;
}

.jurusan-section {
    background: #fff;
}

.title {
    text-align: center;
    font-size: 2.2rem;
    color: #0056b3;
    margin-bottom: 40px;
}

.jurusan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.jurusan-card {
    background: #f8f9fa;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-bottom: 4px solid transparent;
}

.jurusan-card:hover {
    transform: translateY(-10px);
    border-bottom-color: #ffcc00;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.news-section {
    background-color: #f8f9fa;
}

.fb-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* =========================================
   5. MODAL / POPUP SYSTEM
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #dc3545;
}

.modal-header h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #0056b3;
}

/* =========================================
   6. TOMBOL PROFIL GRID (Dalam Modal)
   ========================================= */
.profil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.btn-profil {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    gap: 10px;
}

.btn-profil:hover {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

.btn-profil:last-child {
    grid-column: 1 / -1;
    justify-content: center;
}

/* =========================================
   7. FOOTER
   ========================================= */
.main-footer {
    background-color: #1a1a1a;
    color: #d1d5db;
    padding: 60px 8% 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-box h3 {
    color: #ffcc00;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul a {
    color: #ccc;
    transition: color 0.2s;
}

.footer-box ul a:hover {
    color: #ffcc00;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #333;
    color: white;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: #0056b3;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #777;
}
