/* ==========================================================================
   AI CLEAN - Modern & Humanised Service Layout
   ========================================================================== */

:root {
    --primary: #0096B0;          /* Teal dari Logo */
    --primary-dark: #00778B;
    --accent: #E63956;           /* Pink/Magenta Accent dari Logo */
    --accent-hover: #C92642;
    --text-heading: #0F172A;
    --text-body: #475569;
    --bg-light: #F8FAFC;
    --bg-surface: #FFFFFF;
    --border-color: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --shadow-soft: 0 10px 30px -10px rgba(0, 150, 176, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-body);
    line-height: 1.6;
}

/* --- NAVBAR --- */
.navbar {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-heading);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.btn-cta {
    background-color: var(--accent);
    color: #FFFFFF !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(230, 57, 86, 0.3);
    transition: all 0.2s ease !important;
}

.btn-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-heading);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, #E6F7F9 0%, #FFFFFF 100%);
    padding: 70px 8%;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1.1;
}

.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 150, 176, 0.1);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 18px;
    font-weight: 700;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-body);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFF;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 150, 176, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--text-heading);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    background: #FFF;
}

.hero-image-wrap {
    flex: 0.9;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-wrap img {
    width: 100%;
    max-width: 440px;
    height: auto;
    border-radius: var(--radius-md);
}

/* --- GALLERY BEFORE / AFTER --- */
.portfolio-section {
    background-color: var(--bg-surface);
    padding: 80px 8%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gallery-group {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-before {
    background-color: #EF4444;
    color: #FFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.badge-after {
    background-color: #10B981;
    color: #FFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 5;
    background-color: #CBD5E1;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.8));
    color: #FFF;
    padding: 12px 10px 8px;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- STATS STRIP --- */
.stats-strip {
    background-color: var(--bg-surface);
    border-y: 1px solid var(--border-color);
    padding: 30px 8%;
    box-shadow: var(--shadow-card);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--text-body);
}

/* --- SECTION COMMON --- */
.section {
    padding: 80px 8%;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-header .tag {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 2.1rem;
    color: var(--text-heading);
    margin-top: 6px;
}

/* --- SERVICE CARDS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary);
}

.service-icon {
    width: 54px;
    height: 54px;
    background-color: rgba(0, 150, 176, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--text-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.link-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- PAGE HEADER --- */
.page-header {
    background: linear-gradient(135deg, #0096B0 0%, #0B132B 100%);
    color: #FFF;
    padding: 60px 8%;
    text-align: center;
}

.page-header h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.page-header p {
    color: #CBD5E1;
}

/* --- FAQ & ABOUT --- */
.faq-container, .about-grid, .contact-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.faq-item h3 {
    font-size: 1.05rem;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.about-grid, .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-md);
}

/* --- FOOTER --- */
footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 60px 8% 24px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h4 {
    color: #FFFFFF;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: #FFF;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    text-align: center;
    padding-top: 24px;
    font-size: 0.85rem;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .topbar { display: none; }

    .hamburger { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        flex-direction: column;
        padding: 20px 8%;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .nav-links.active { display: flex; }

    .hero-wrapper, .about-grid, .contact-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero h1 { font-size: 2rem; }

    .hero-actions { justify-content: center; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframe untuk efek fade in biasa */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Kelas utilitas animasi default */
.hero-text, .hero-image-wrap, .page-header, .service-card, .faq-item, .contact-box, .gallery-group {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Efek jeda (delay) agar elemen muncul berurutan secara estetik */
.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.5s; }
.services-grid .service-card:nth-child(6) { animation-delay: 0.6s; }
.services-grid .service-card:nth-child(7) { animation-delay: 0.7s; }

/* Animasi halus pada card galeri saat kursor mendekat */
.gallery-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Tombol interaktif efek membal ringan */
.btn-primary, .btn-cta, .btn-outline {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover, .btn-outline:hover {
    transform: translateY(-2px);
}