/* ==============================
    ROOT & RESET
============================== */
:root {
    --primary: #1b4332;
    --accent: #40916c;
    --light-green: #d8f3dc;
    --dark: #081c15;
    --white: #ffffff;
    --gray: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ==============================
    TYPOGRAPHY
============================== */
h1, h2, h3, .logo, .section-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
}

/* ==============================
    NAVIGATION
============================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.logo { 
    font-size: 1.4rem; 
    text-decoration: none; 
    letter-spacing: 1px;
    display: inline-block; 
}

.logo span { color: var(--accent); }

nav ul {
    display: flex;
    list-style: none;
}

nav ul li { margin-left: 25px; }

nav ul li a {
    text-decoration: none;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--accent);
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 5px;
}

.menu-toggle { 
    display: none; 
    font-size: 1.8rem; 
    color: var(--primary); 
    cursor: pointer; 
    z-index: 2000; 
}

/* ==============================
    HERO SECTION
============================== */
.hero {
    height: 100vh;
    background:
        linear-gradient(rgba(8, 28, 21, 0.5), rgba(8, 28, 21, 0.6)),
        url('assets/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    animation: fadeUp 1.2s ease;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.4);
}

.hero-content p {
    margin-bottom: 40px; 
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

/* ==============================
    ALUR KERJA
============================== */
.animated-icon {
    width: 80px; 
    height: 80px; 
    background: var(--primary); 
    color: #fff; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 20px; 
    font-size: 28px; 
    box-shadow: 0 10px 20px rgba(27,67,50,0.2);
    animation: pulseIcon 2.5s infinite ease-in-out;
}

@keyframes pulseIcon {
    0% { transform: scale(1); box-shadow: 0 10px 20px rgba(27,67,50,0.2); }
    50% { transform: scale(1.08); box-shadow: 0 15px 30px rgba(27,67,50,0.4); }
    100% { transform: scale(1); box-shadow: 0 10px 20px rgba(27,67,50,0.2); }
}

/* ==============================
    SERVICES
============================== */
section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary);
}

#services { background: var(--gray); }

.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: 0.4s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* ==============================
    PORTFOLIO
============================== */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 10px 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.filter-container::-webkit-scrollbar { display: none; }

.filter-btn {
    flex: 0 0 auto;
    padding: 10px 25px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* --- PERBAIKAN ANIMASI OVERLAY --- */
.portfolio-item {
    position: relative;
    aspect-ratio: 3 / 2; 
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Gradasi gelap agar teks terbaca */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    color: white;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    
    /* Animasi awal tersembunyi */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease-in-out;
    z-index: 2;
}

/* Efek saat mouse mendekat (Hover) */
.portfolio-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Styling isi teks dalam overlay */
.portfolio-item .overlay span {
    align-self: flex-start;
    background: #ff9f43; /* Warna sesuai foto yang dilingkari */
    color: white;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-item .overlay h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: white;
}

.portfolio-item .overlay p {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.8;
}

/* ==============================
    VIDEO CARDS & OTHERS
============================== */
.video-card { 
    cursor: pointer; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    position: relative; 
}
.video-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.2); }

#contact { background: var(--light-green); }
.contact-box { max-width: 600px; margin: 0 auto; background: white; padding: 40px; border-radius: 20px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

input, textarea, .btn-submit {
    font-family: 'Montserrat', sans-serif;
}

input, textarea { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; outline: none; }
.btn-submit { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s; }

footer { text-align: center; padding: 50px; background: var(--dark); color: white; }
.float-wa { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white; padding: 12px 25px; border-radius: 50px; text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: bold; z-index: 1000; box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: 0.3s; }

/* ==============================
    SOCIAL MEDIA ICONS (Footer) - Final Check
============================== */
.social-links {
    margin-top: 30px;
    margin-bottom: 45px; /* Memberi jarak yang cukup ke angka kunjungan */
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 2rem; /* Ukuran ikon di dalam lingkaran disesuaikan */
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.social-links a:hover {
    color: white;
    transform: translateY(-10px) scale(1.1);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Warna Hover Medsos */
.social-links a.tt:hover { background: #000000; }
.social-links a.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-links a.yt:hover { background: #FF0000; }

/* Tooltip - Disesuaikan posisinya karena lingkaran Bapak besar (75px) */
.social-links a::before {
    content: attr(data-name);
    position: absolute;
    top: -45px; /* Dinaikkan sedikit lagi agar tidak tertutup */
    font-size: 13px;
    background: var(--accent);
    padding: 6px 12px;
    border-radius: 5px;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    font-weight: 700;
    white-space: nowrap;
}

.social-links a:hover::before {
    opacity: 1;
    top: -55px; /* Efek meluncur ke atas saat hover */
}

/* Statistik Kunjungan */
.footer-stats {
    margin-bottom: 20px; 
    font-size: 18px; /* Ukuran 18px-20px sudah sangat ideal */
    color: rgba(255, 255, 255, 0.9);
}

.footer-stats span {
    font-weight: 800;
    color: var(--accent);
    margin-left: 8px;
}
/* ==============================
    RESPONSIVE
============================== */
@media (max-width: 768px) {
    .hero {
        background-size: cover !important; 
        background-position: center !important; 
        background-color: var(--dark) !important; 
        background-attachment: scroll !important; 
        height: auto !important; 
        min-height: 85vh !important; 
        padding-top: 120px; 
        padding-bottom: 40px;
        display: flex;
        align-items: center; 
    }
    .hero-content h1 { font-size: 1.8rem !important; }
    .filter-container { justify-content: flex-start; }
    .menu-toggle { display: block; }
    nav ul#nav-list { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 70px; 
        left: 0; 
        width: 100%; 
        background: white; 
        padding: 20px 0; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); 
    }
    nav ul#nav-list.active { display: flex; }
    nav ul li { margin: 15px 0; text-align: center; }
}

@keyframes fadeUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.contact-minimal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.contact-info-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.contact-map-card {
    flex: 1.5;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    height: 350px;
}

.info-detail {
    margin-bottom: 30px;
}

.info-detail h4 {
    color: #1b4332;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-detail p {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Container Artikel */
.article-section {
    padding: 100px 0;
    background: #f9f9f9;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Card Artikel */
.article-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(27, 67, 50, 0.1);
}

.article-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.article-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img-wrapper img {
    transform: scale(1.1);
}

.article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #1b4332;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.article-body {
    padding: 25px;
}

.article-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.article-title {
    font-size: 20px;
    color: #1b4332;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.article-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read {
    color: #1b4332;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-read:hover i {
    transform: translateX(5px);
    transition: 0.3s;
}