/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #5fb9b4; /* Biru Utama */
    --secondary-color: #0056b3; /* Biru Gelap */
    --accent-color: #28a745; /* Hijau */
    --bg-intro: #7ad1cd;      /* Background Intro sesuai request */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- INTRO / LOADING SCREEN --- */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-intro);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#intro-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.intro-content {
    max-width: 600px;
    animation: fadeIn Up 1s ease-out;
}

.intro-logo {
    max-width: 200px;
    margin-bottom: 20px;
    background-color: #ffffff; /* Warna background (misal: putih) */
    border-radius: 50%;        /* Membuat bentuk menjadi bulat sempurna */
    padding: 20px;             /* Memberi jarak antara logo dan tepi lingkaran */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Opsional: memberi bayangan agar lebih pop-up */
}

.intro-headline {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0056b3; /* Sedikit lebih gelap agar kontras dengan #a1ffe9 */
    margin-bottom: 15px;
}

.intro-sub h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.intro-sub p {
    font-size: 1rem;
    color: #444;
}

/* Animasi Loading Bar opsional */
.loading-bar {
    width: 0%;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
    border-radius: 2px;
    animation: loadProgress 5s linear forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* --- MAIN CONTENT TRANSITION --- */
#main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

#main-content.visible {
    opacity: 1;
}

/* --- NAVBAR --- */
.navbar {
    background: transparent; /* Transparan sesuai request */
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s;
}

/* Jika ingin navbar jadi putih saat di-scroll (opsional), bisa ditambahkan JS nanti */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px; /* Ukuran disesuaikan agar pas di header */
}

.logo-center{
    height: 100px;
    text-align: center;
    margin-bottom: 50px;
}

.tentang {
        text-align: center;
        margin-bottom: 50px;
        border-radius: 20px;
        margin-top: 50px;
}

.btn-tentang {
    background: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    text-align: center;
}

.btn-nav {
    background: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.btn-nav:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* --- ROLES SECTION --- */
.roles {
    padding: 120px 0 80px; /* Padding atas besar karena navbar fixed */
    background: #7ad1cd;
    min-height: 80vh; /* Agar mengisi layar setelah intro */
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
}

/* Link Wrapper untuk Card */
.role-card-link {
    display: block;
    height: 100%;
}

.role-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
    cursor: pointer;
}

.role-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.icon-bg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--white);
    transition: transform 0.3s;
}

.role-card:hover .icon-bg {
    transform: scale(1.1);
}

.icon-bg.blue { background: var(--primary-color); }
.icon-bg.orange { background: #fd7e14; }
.icon-bg.green { background: var(--accent-color); }

.role-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.role-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- FOOTER --- */
footer {
    background: #ffffff;
    color: #1a1a1a;
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
    margin-bottom: 40px;
}

.footer-col {
    display: flex;          
    align-items: center;    
    gap: 15px;              
    color: var(--text-dark);
    margin-bottom: 20px;
}
.footer-contact {
    flex-direction: column; 
    align-items: flex-start;
    gap: 10px; 
}

.social-links {
    display: flex; 
    gap: 15px;    
    margin-top: 10px;
}

.social-links a {
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: #007bff; 
}

.footer-col p {
    margin: 0;             
    line-height: 1.5;     
}
.footer-col h4 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.social-links a {
    font-size: 20px;
    margin-right: 15px;
    color: var(--text-light);
    transition: 0.3s;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}
/* --- MOBILE RESPONSIVE FOOTER --- */
@media screen and (max-width: 768px) {
    
    /* 1. Ubah container menjadi 1 kolom */
    .footer-container {
        grid-template-columns: 1fr; /* Satu kolom penuh */
        text-align: center;         /* Ratakan teks ke tengah */
        gap: 40px;                  /* Tambah jarak antar bagian agar tidak nempel */
    }

    /* 2. Bagian Logo & Deskripsi: Ubah jadi menurun (Logo atas, Teks bawah) */
    .footer-col {
        flex-direction: column; /* Ubah arah flex jadi vertikal */
        text-align: center;     /* Pastikan teks deskripsi rata tengah */
    }

    /* 3. Bagian Kontak: Pastikan item contact juga rata tengah */
    .footer-contact {
        align-items: center; /* Menengahkan teks kontak & no hp */
    }

    /* 4. Bagian Social Media: Tengahkan icon */
    .social-links {
        justify-content: center; /* Membuat icon medsos berada di tengah */
        width: 100%;             /* Pastikan container mengambil lebar penuh */
    }

    /* 5. Sedikit penyesuaian padding footer agar tidak terlalu tebal di HP */
    footer {
        padding: 40px 20px 20px; /* Atas 40px, Kanan-Kiri 20px, Bawah 20px */
    }
}
/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .intro-headline {
        font-size: 1.8rem;
    }
    
    .intro-sub h3 {
        font-size: 1.1rem;
    }

    .navbar {
        padding: 10px 0;
    }

    .logo img {
        height: 70px;
    }
    
    .roles {
        padding-top: 100px; /* Sesuaikan padding mobile */
    }
    
    .nav-container {
        /* Memastikan logo dan tombol login sejajar rapi di mobile */
        padding: 0 15px; 
    }
}