/* ===================================================
   RESET & ROOT VARIABLES
   =================================================== */
:root {
    /* Palet Warna BPS */
    --primary-color: #3e83f0;
    --primary-color-dark: #1e4a8e;
    --accent-color: #ff6600;
    --accent-color-dark: #e65c00;

    /* Warna Netral */
    --title-color: #1a202c;
    --text-color: #4a5568;
    --body-color: #f7fafc;
    --container-color: #ffffff;
    --border-color: #e2e8f0;

    /* Tipografi */
    --body-font: "Inter", sans-serif;
    --h1-font-size: 3rem;
    --h2-font-size: 2.25rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;

    /* Properti Layout */
    --header-height: 5rem;
    --z-fixed: 100;
    --z-modal: 1000;
    --border-radius: 0.75rem;
    --box-shadow: 0 4px 12px rgba(26, 32, 44, 0.06);
}

/* ===================================================
   BASE & UTILITIES
   =================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--title-color);
    font-weight: 700;
}

ul { list-style: none; }
a { text-decoration: none; color: var(--primary-color); }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section-container {
    padding: 6rem 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: var(--h2-font-size);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: var(--normal-font-size);
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--accent-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-secondary:hover {
    background-color: var(--primary-color-dark);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.btn-outline:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* ===================================================
   HEADER & NAVIGATION
   =================================================== */
.site-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--container-color);
    box-shadow: var(--box-shadow);
    height: var(--header-height);
    transition: height 0.3s ease;
}

.site-header.scrolled {
    --header-height: 4.5rem;
}

.main-nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--title-color);
}
.nav-logo img { width: 80px; }
.logo-text { font-size: var(--small-font-size); line-height: 1.2; }
.logo-text strong { font-weight: 700; }

.nav-list {
    display: flex;
    gap: 2.5rem;
}
.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--primary-color);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle, .nav-close { font-size: 1.5rem; cursor: pointer; display: none; color: var(--title-color); }

.login-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background-color: var(--container-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s, visibility .3s;
}
.dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    transition: background-color 0.2s;
}
.dropdown-item:hover { background-color: #f0f5ff; }

/* ===================================================
   HERO SECTION
   =================================================== */
.main-content {
    padding-top: var(--header-height);
}
   
.hero-section {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('asset/bahan/kantor.png') no-repeat center center/cover;
    z-index: 1;
}

.hero-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 74, 142, 0.75); 
    z-index: 2;
}

.hero-content { 
    position: relative; 
    z-index: 3; 
}
.hero-title {
    font-size: var(--h1-font-size);
    color: #fff;
    margin-bottom: 1rem;
}
.hero-subtitle {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
    opacity: 0.9;
}
.hero-cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ===================================================
   DEPARTMENTS SECTION
   =================================================== */
.department-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.department-card {
    background-color: var(--container-color);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 12px rgba(26, 32, 44, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}
.department-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
}
.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.card-title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.75rem;
}

/* ===================================================
   ABOUT SECTION
   =================================================== */
.about-section {
    background-color: var(--container-color);
    padding-top: 2rem; /* Reduce top padding for better flow */
}
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.about-image { flex: 1; text-align: center; }
.about-image img { max-width: 400px; }
.about-content { flex: 1.2; }
.about-title { font-size: var(--h2-font-size); margin-bottom: 1rem; }
.about-description { margin-bottom: 2rem; }

/* ===================================================
   TIMELINE SECTION
   =================================================== */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-container::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(even)::after { left: -10px; }

.timeline-content {
    padding: 1.5rem;
    background-color: var(--container-color);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.timeline-step {
    font-size: var(--small-font-size);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}
.timeline-title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.timeline-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.2;
}
.timeline-cta { text-align: center; margin-top: 3rem; }

/* ===================================================
   FAQ SECTION
   =================================================== */
.faq-section { background-color: var(--container-color); }
.faq-accordion { max-width: 750px; margin: 0 auto; }
.faq-item {
    background-color: var(--container-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden; /* Helps with smooth animation */
}
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
}
.faq-question { font-size: var(--normal-font-size); font-weight: 600; }
.faq-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq-content p { padding: 0 1.5rem 1.25rem; }

.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-item.active .faq-content { max-height: 250px; }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
    background-color: var(--primary-color-dark);
    color: #a0aec0;
    padding: 5rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #4a5568;
}
.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.footer-column.about .footer-logo { margin-bottom: 1rem; }
.footer-column.about p { margin-bottom: 1rem; }
.footer-secondary-logo { width: 150px; }
.footer-column.contact p { margin-bottom: 0.5rem; }
.footer-column.contact i { margin-right: 0.5rem; }
.social-links { display: flex; gap: 1rem; }
.social-links a {
    color: #a0aec0;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}
.social-links a:hover { color: #fff; transform: translateY(-3px); }
.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    font-size: var(--small-font-size);
}

/* ===================================================
   SCROLL-TRIGGERED ANIMATIONS
   =================================================== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll[data-animation="fade-up"] { transform: translateY(30px); }
.animate-on-scroll[data-animation="fade-right"] { transform: translateX(-30px); }
.animate-on-scroll[data-animation="fade-left"] { transform: translateX(30px); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===================================================
   RESPONSIVE DESIGN (Media Queries)
   =================================================== */
@media screen and (max-width: 992px) {
    .department-grid { grid-template-columns: repeat(2, 1fr); }
    .about-container { flex-direction: column; gap: 2rem; text-align: center; }
    .about-content { order: 2; }
    .about-image { order: 1; }
}

@media screen and (max-width: 768px) {
    :root {
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.75rem;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: var(--container-color);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
    }
    .nav-list { flex-direction: column; text-align: center; gap: 2.5rem; }
    .nav-link { font-size: 1.1rem; }
    .nav-close { position: absolute; top: 1.5rem; right: 1.5rem; display: block; }
    .nav-toggle { display: block; }
    .nav-menu.show-menu { right: 0; }

    .department-grid { grid-template-columns: 1fr; }

    .timeline-container::before { left: 10px; }
    .timeline-item { width: 100%; padding-left: 40px; padding-right: 1rem; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 0; }

    .footer-grid { text-align: center; }
    .social-links { justify-content: center; }
}