/* ============================================ */
/* 1. PENGATURAN DASAR & VARIABEL */
/* ============================================ */
:root {
    --primary-color: #3B7CCA;
    --secondary-color: #F39C12;
    --dark-color: #1a1a1a;
    --light-color: #f9f9f9;
    --grey-color: #666;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background: #ffffff;
    overflow-x: hidden;
}

/* PAGE TRANSITION */
body {
    animation: pageLoad 0.5s ease-in-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.page-transition {
    animation: pageUnload 0.3s ease-in-out forwards;
}

@keyframes pageUnload {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}
.profil-text .section-title { text-align: left; }
.section-padding { padding: 60px 0; }
.bg-light { background: var(--light-color); }
.text-center { text-align: center; margin-top: 2rem; }

/* Border Oranye */
#home-layanan.bg-light,
#home-kontak {
    border-top: 4px solid var(--secondary-color);
    border-bottom: 4px solid var(--secondary-color);
}

/* ============================================ */
/* 2. NAVBAR - RESPONSIVE WITH HAMBURGER */
/* ============================================ */
.navbar {
    position: sticky; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000;
    background: #ffffff; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease-in-out;
}

.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.navbar .logo { 
    display: block;
    z-index: 1001;
}

.navbar .logo img {
    height: 50px;
    width: auto;
    transition: height 0.3s ease-in-out;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar .nav-menu { 
    display: flex; 
    gap: 2rem; 
}

.navbar .nav-menu a { 
    color: var(--dark-color); 
    font-weight: 600; 
    transition: color 0.3s ease; 
}

.navbar .nav-menu a:hover { 
    color: var(--primary-color); 
}

/* Active Navigation Indicator */
.nav-menu a.nav-link {
    position: relative;
    display: inline-block;
}

.nav-menu a.nav-link.active {
    color: var(--primary-color);
}

.nav-menu a.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

.btn-primary-nav {
    background: var(--primary-color); 
    color: #fff; 
    padding: 0.6rem 1.2rem;
    border-radius: 5px; 
    font-weight: 600; 
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary-nav:hover { 
    background: var(--secondary-color); 
    color: var(--dark-color); 
}

.navbar.scrolled { 
    padding: 0.5rem 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
}

.navbar.scrolled .logo img {
    height: 40px;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ============================================ */
/* 3. HERO SLIDER */
/* ============================================ */
.hero-slider {
    width: 100%;
    height: 90vh;
    min-height: 600px;
    position: relative;
    background: var(--dark-color);
}

.hero-slider .swiper-slide {
    display: flex; 
    justify-content: center; 
    align-items: center;
    text-align: center; 
    color: #fff;
    position: relative;
    background-color: #222;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: #fff; 
    opacity: 0.7; 
    transition: opacity 0.3s ease;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover { 
    opacity: 1; 
}

.hero-slider .swiper-pagination-bullet { 
    background: rgba(255,255,255,0.7); 
    width: 10px; 
    height: 10px; 
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* ============================================ */
/* 4. TOMBOL */
/* ============================================ */
.btn {
    display: inline-block; 
    border-radius: 5px; 
    font-weight: 600;
    padding: 0.8rem 2rem; 
    transition: all 0.3s ease; 
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color); 
    color: #fff; 
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color); 
    border-color: var(--secondary-color);
    color: var(--dark-color); 
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent; 
    color: var(--primary-color);
    border: 2px solid var(--primary-color); 
    margin-top: 1rem;
}

.btn-secondary:hover { 
    background: var(--primary-color); 
    color: #fff; 
}

/* ============================================ */
/* 5. RINGKASAN PROFIL */
/* ============================================ */
.profil-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 3rem; 
    align-items: center; 
}

.profil-text p { 
    margin-bottom: 1rem; 
    color: var(--grey-color); 
}

.profil-text p:first-of-type { 
    font-size: 1.1rem; 
    font-weight: 400; 
    color: var(--dark-color); 
}

.profil-image {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
}

.profil-image img.profil-logo {
    max-width: 300px;
    display: block;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
    position: relative;
    z-index: 2;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.profil-bg-icon {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    font-size: 350px;
    color: var(--secondary-color);
    opacity: 0.15;
    animation: pulse 5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.05); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.15; }
}

/* ============================================ */
/* 6. RINGKASAN LAYANAN */
/* ============================================ */
.layanan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.layanan-card {
    background: #fff; 
    padding: 2rem 1.5rem; 
    text-align: center;
    border-radius: 10px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.layanan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.layanan-card .layanan-icon {
    font-size: 2.5rem;
    width: 80px; 
    height: 80px;
    line-height: 80px;
    margin: 0 auto 1.5rem auto;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
}

.layanan-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.layanan-card p { 
    font-size: 0.9rem; 
    color: var(--grey-color); 
}

/* ============================================ */
/* 7. SECTION KONTAK */
/* ============================================ */
.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--grey-color);
    max-width: 600px;
    margin: -2rem auto 2.5rem auto;
}

.kontak-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.kontak-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.kontak-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.kontak-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.kontak-card:hover .icon {
    color: var(--secondary-color);
}

.kontak-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.kontak-card p {
    font-size: 0.95rem;
    color: var(--grey-color);
    line-height: 1.6;
}

/* ============================================ */
/* 8. FOOTER */
/* ============================================ */
.footer {
    color: var(--dark-color);
    padding: 60px 0 20px 0;
    position: relative;
    background-image: url('assets/Background\ 2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-color: rgb(249, 249, 249); 
    z-index: -1;
}

.footer-grid,
.footer-bottom {
    position: relative;
    z-index: 2;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 2rem; 
}

.footer-col .footer-logo { 
    display: block; 
}

.footer-col .footer-logo img {
    height: 45px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-col p { 
    margin-bottom: 0.5rem; 
    font-size: 0.9rem; 
}

.footer-col h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative; 
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0;
    width: 40px; 
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul li { 
    margin-bottom: 0.5rem; 
}

.footer-col ul li a {
    color: var(--grey-color);
    font-size: 0.9rem; 
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-media a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    color: var(--primary-color);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-col iframe {
    width: 100%;
    height: 200px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.footer-bottom {
    text-align: center; 
    margin-top: 3rem;
    border-top: 1px solid #ddd;
    padding-top: 1.5rem; 
    font-size: 0.9rem;
}

.footer-bottom strong {
    color: var(--secondary-color);
}

/* ============================================ */
/* 9. RESPONSIVE DESIGN - MEDIA QUERIES */
/* ============================================ */

/* TABLET & SMALL LAPTOP (992px and below) */
@media (max-width: 992px) {
    /* Typography */
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Profil Grid */
    .profil-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    
    .profil-text .section-title { 
        text-align: center; 
    }
    
    .profil-image img.profil-logo { 
        order: -1; 
        margin-bottom: 2rem; 
        max-width: 250px; 
    }
    
    .profil-bg-icon { 
        font-size: 300px; 
    }
    
    /* Layanan Grid */
    .layanan-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Kontak Grid */
    .kontak-card-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }
    
    /* Footer Grid */
    .footer-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
}

/* TABLET (768px and below) */
@media (max-width: 768px) {
    /* Container Padding */
    .container {
        padding: 0 15px;
    }
    
    /* Section Padding */
    .section-padding {
        padding: 40px 0;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* NAVBAR - MOBILE HAMBURGER */
    .hamburger {
        display: flex;
    }
    
    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        z-index: 1000;
    }
    
    .nav-right.active {
        right: 0;
    }
    
    .navbar .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .navbar .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
    }
    
    .nav-menu a.nav-link.active::after {
        bottom: 10px;
        left: 2rem;
        width: 30px;
    }
    
    .btn-primary-nav {
        margin: 1.5rem 2rem;
        text-align: center;
        display: block;
    }
    
    /* Hero Slider */
    .hero-slider { 
        height: 60vh; 
        min-height: 400px; 
    }
    
    /* Layanan Grid */
    .layanan-grid { 
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .layanan-card {
        padding: 1.5rem;
    }
    
    /* Profil */
    .profil-bg-icon { 
        font-size: 250px; 
    }
    
    .profil-text p:first-of-type {
        font-size: 1rem;
    }
    
    /* Kontak Card */
    .kontak-card {
        padding: 2rem 1.5rem;
    }
    
    .kontak-card .icon {
        font-size: 2.5rem;
    }
    
    .kontak-card h3 {
        font-size: 1.2rem;
    }
    
    /* Button */
    .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer {
        padding: 40px 0 20px 0;
    }
}

/* MOBILE (576px and below) */
@media (max-width: 576px) {
    /* Container */
    .container {
        padding: 0 12px;
    }
    
    /* Section Padding */
    .section-padding {
        padding: 30px 0;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        margin: -1.5rem auto 2rem auto;
    }
    
    /* Navbar */
    .navbar .logo img {
        height: 40px;
    }
    
    .navbar.scrolled .logo img {
        height: 35px;
    }
    
    .nav-right {
        width: 260px;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .hero-slider .swiper-button-next::after,
    .hero-slider .swiper-button-prev::after {
        font-size: 18px;
    }
    
    .hero-slider .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    
    /* Profil */
    .profil-grid {
        gap: 1.5rem;
    }
    
    .profil-bg-icon { 
        font-size: 200px; 
    }
    
    .profil-image img.profil-logo {
        max-width: 200px;
    }
    
    .profil-text p {
        font-size: 0.9rem;
    }
    
    /* Layanan Card */
    .layanan-card {
        padding: 1.5rem 1rem;
    }
    
    .layanan-card .layanan-icon {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .layanan-card h3 {
        font-size: 1rem;
    }
    
    .layanan-card p {
        font-size: 0.85rem;
    }
    
    /* Kontak Card */
    .kontak-card {
        padding: 1.8rem 1.2rem;
    }
    
    .kontak-card .icon {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .kontak-card h3 {
        font-size: 1.1rem;
    }
    
    .kontak-card p {
        font-size: 0.9rem;
    }
    
    /* Button */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 15px 0;
    }
    
    .footer-col .footer-logo img {
        height: 40px;
    }
    
    .footer-col h4 {
        font-size: 1rem;
    }
    
    .footer-col p,
    .footer-col ul li a {
        font-size: 0.85rem;
    }
    
    .social-media a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-col iframe {
        height: 180px;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        margin-top: 2rem;
        padding-top: 1rem;
    }
}

/* EXTRA SMALL MOBILE (400px and below) */
@media (max-width: 400px) {
    .section-title {
        font-size: 1.3rem;
    }
    
    .hero-slider {
        height: 45vh;
        min-height: 300px;
    }
    
    .profil-bg-icon {
        font-size: 150px;
    }
    
    .nav-right {
        width: 240px;
    }
}