/* --- Pengaturan Global & Variabel Warna --- */
:root {
    --primary-color: #00897B;
    --secondary-color: #FF9800;
    --accent-color: #26A69A;
    --dark-color: #212121;
    --light-color: #F5F5F5;
    --white-color: #FFFFFF;
    --text-color: #555555;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, #FF6B6B, var(--secondary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden; /* Mencegah scroll horizontal */
}

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

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* --- Animasi --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.portal-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
}

/* --- Hero Section --- */
.hero {
    background: var(--gradient-primary);
    color: var(--white-color);
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.6);
    background-color: #e68900;
}

/* Elemen Dekoratif Hero */
.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}
.shape-1 { width: 80px; height: 80px; background: var(--white-color); border-radius: 50%; top: 10%; left: 10%; animation-delay: 0s; }
.shape-2 { width: 120px; height: 120px; background: var(--white-color); top: 70%; right: 10%; animation-delay: 2s; }
.shape-3 { width: 60px; height: 60px; background: var(--white-color); bottom: 10%; left: 30%; animation-delay: 4s; }

/* --- Layanan Section --- */
.services {
    padding: 100px 0;
    background-color: var(--light-color);
}

.services h3 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--dark-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white-color);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem auto;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 137, 123, 0.3);
}

.card-icon {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.2);
}

.service-card h4 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    margin-bottom: 2rem;
    min-height: 60px;
    font-size: 1rem;
}

.card-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white-color);
    padding: 14px 35px;
    border-radius: 10px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-button:hover {
    box-shadow: 0 5px 15px rgba(0, 137, 123, 0.4);
    transform: translateY(-2px);
}

/* --- Mengapa Section --- */
.why-section {
    padding: 100px 0;
    text-align: center;
    background: var(--white-color);
}

.why-section h3 {
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--dark-color);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.why-item {
    transition: transform 0.3s ease;
}

.why-item:hover {
    transform: translateY(-10px);
}

.why-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem auto;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.why-item:hover .why-icon-wrapper {
    transform: scale(1.1);
}

.why-icon {
    font-size: 2.5rem;
}

.why-item h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 40px 0;
}

footer p {
    margin-bottom: 0.5rem;
}

/* --- Tombol Kembali ke Atas --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services h3, .why-section h3 {
        font-size: 2.2rem;
    }
    
    .services-grid, .why-grid {
        grid-template-columns: 1fr;
    }
}