/* --- Variabel Warna & Font "OCEANIC TEAL" --- */
:root {
    --bs-primary: #0083B0; /* Biru Laut Dalam */
    --bs-primary-rgb: 0, 131, 176;
    --gradient-start: #0575E6; /* Biru Cerah */
    --gradient-end: #00F260;   /* Hijau Neon */
    --bs-font-sans-serif: 'Poppins', sans-serif;
}

/* --- Tombol dengan Efek Glow --- */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #006b8f;
    --bs-btn-hover-border-color: #006b8f;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.2);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(var(--bs-primary-rgb), 0.4);
}
.text-primary { color: var(--bs-primary) !important; }

/* --- Gaya Global --- */
body {
    padding-top: 70px;
    background-color: #f8f9fa;
}

/* --- Hero Section dengan Partikel & Gradien Baru --- */
.hero {
    position: relative; /* Penting untuk partikel */
    overflow: hidden; /* Penting untuk partikel */
    /* FIX: Menggabungkan gradien transparan dengan gambar background */
    background: linear-gradient(45deg, rgba(5, 117, 230, 0.8), rgba(0, 242, 96, 0.7)), url('assets/images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Bonus: Efek parallax sederhana */
    min-height: 90vh;
}
.hero-content { position: relative; z-index: 2; }
#particles-js { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 1; }

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Typed.js (Efek Ketik) --- */
.typed-cursor {
    color: #00F260; /* Warna kursor mengetik */
    animation: typedjsBlink 0.7s infinite;
}
@keyframes typedjsBlink { 50% { opacity: 0.0; } }

/* --- Navbar dengan Efek Glassmorphism --- */
.navbar { transition: background-color 0.4s ease-out; }
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* --- Kartu dengan Efek Tilt 3D --- */
.card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    transform-style: preserve-3d; /* Penting untuk efek tilt */
    transform: perspective(1000px); /* Penting untuk efek tilt */
}
.card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1)!important;
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

/* Sisanya sama */
.portfolio-card { cursor: pointer; }
.portfolio-card .card-img-top { aspect-ratio: 16 / 10; object-fit: cover; }
.portfolio-card .card-footer { padding-top: 0; }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: rgba(0, 0, 0, 0.5); border-radius: 50%; padding: 20px; }
.about-photo { max-width: 350px; border: 7px solid #fff; }

/* --- Bagian CTA & Client yang Di-upgrade --- */
.cta-section {
    background: linear-gradient(45deg, var(--gradient-end), var(--gradient-start));
    background-size: 200% 200%;
    animation: gradient-animation 15s ease infinite;
    padding: 60px 0;
    color: #fff;
    border-radius: 1.5rem;
}
.client-logos img { max-height: 40px; filter: grayscale(100%) opacity(0.7); transition: all 0.3s ease; }
.client-logos img:hover { filter: grayscale(0%) opacity(1); }
.cta-section .btn-light { color: var(--bs-primary); transition: all 0.3s ease; }
.cta-section .btn-light:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* --- Tombol Scroll-To-Top --- */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 18px;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #f8f9fa; /* Warna latar belakang */
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(var(--bs-primary-rgb), 0.2);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.page-header {
    padding: 80px 0;
    background-color: #e9f5ff; /* Warna biru muda yang lembut */
    text-align: center;
}

.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1)!important;
}

.blog-card .img-fluid {
    height: 100%;
    object-fit: cover;
}

.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content blockquote {
    border-left: 4px solid var(--bs-primary);
    padding-left: 1.5rem;
    font-style: italic;
    color: #6c757d;
    margin: 2rem 0;
}

/* --- Halaman Studi Kasus --- */
.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--bs-primary);
}

/* --- Formulir Kontak --- */
.contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
}
.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}