/* =========================================
   1. VARIABLES & RESET
========================================= */
:root {
    --primary: #00a8ff;       /* Biru Langit Segar */
    --primary-dark: #0097e6;
    --accent: #273c75;        /* Biru Navy (untuk teks gelap) */
    --secondary: #f5f6fa;     /* Putih Abu */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --success: #2ed573;       /* Hijau WA */
    
    /* Layout & Effects */
    --shadow: 0 10px 30px rgba(0, 168, 255, 0.1); 
    --radius: 16px;           
    
    /* Fonts */
    --font-head: 'Outfit', sans-serif;       
    --font-body: 'Plus Jakarta Sans', sans-serif; 
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { 
    font-family: var(--font-body); 
    color: var(--text-dark); 
    background: var(--white); 
    line-height: 1.7; 
    overflow-x: hidden; 
    font-size: 16px;
}

/* Typography Setup */
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* =========================================
   2. UTILITIES & BUTTONS
========================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.bg-light { background-color: var(--secondary); }

.section-header { text-align: center; margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; letter-spacing: -0.5px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }

/* Buttons */
.btn { 
    display: inline-flex; align-items: center; gap: 10px; 
    padding: 14px 32px; border-radius: 50px; 
    font-weight: 600; font-size: 1rem; cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: var(--font-head);
}
.btn-primary { 
    background: linear-gradient(135deg, var(--primary), #0984e3); 
    color: white; 
    box-shadow: 0 8px 20px rgba(9, 132, 227, 0.3); 
    border: none;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(9, 132, 227, 0.4); }

.btn-outline { border: 2px solid var(--primary); color: var(--primary); margin-left: 10px; background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }

.btn-white { background: white; color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-white:hover { transform: translateY(-2px); }

/* =========================================
   3. NAVBAR
========================================= */
.navbar { 
    position: fixed; top: 0; left: 0; width: 100%; height: 80px; 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 1000; display: flex; align-items: center; 
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

/* Logo Layout (Gambar + Teks) */
.logo { 
    display: flex; align-items: center; gap: 12px; 
    text-decoration: none;
}
.logo-img {
    height: 55px; width: auto; object-fit: contain;
    border-radius: 8px; 
}
.logo span { 
    font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; 
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, var(--accent), var(--primary)); 
    background-clip: text; -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    color: var(--accent);
}
.logo:hover .logo-img { transform: scale(1.05) rotate(-3deg); transition: 0.3s ease; }

/* Menu */
.nav-menu { display: flex; gap: 35px; align-items: center; }
.nav-link { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); position: relative; }
.nav-link:hover { color: var(--primary); }

.btn-nav { padding: 10px 24px; background: var(--primary); color: white; border-radius: 50px; font-weight: 600; font-size: 0.9rem; font-family: var(--font-head); }
.btn-nav:hover { background: var(--primary-dark); }
.hamburger { display: none; cursor: pointer; }

/* =========================================
   4. HERO SECTION (WIND/RAIN EFFECT)
========================================= */
.hero { 
    padding: 160px 0 100px; 
    background: linear-gradient(180deg, #eef9ff 0%, #ffffff 100%); 
    text-align: center; 
    position: relative; overflow: hidden;
}

/* Rain Container */
.weather-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}
.rain {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(0, 168, 255, 0.4), transparent);
    width: 2px; height: 100px; top: -120px;
    opacity: 0; transform: rotate(20deg);
    animation: rainDrop linear infinite;
}

/* Rain Positions */
.r1 { left: 10%; animation-duration: 2s; animation-delay: 0s; }
.r2 { left: 25%; animation-duration: 2.5s; animation-delay: 1s; height: 80px; }
.r3 { left: 40%; animation-duration: 1.8s; animation-delay: 0.5s; opacity: 0.5; }
.r4 { left: 55%; animation-duration: 2.2s; animation-delay: 2s; }
.r5 { left: 70%; animation-duration: 1.9s; animation-delay: 0.2s; height: 120px; }
.r6 { left: 85%; animation-duration: 2.3s; animation-delay: 1.5s; }
.r7 { left: 15%; animation-duration: 2.1s; animation-delay: 3s; background: rgba(0, 168, 255, 0.2); }
.r8 { left: 50%; animation-duration: 1.7s; animation-delay: 2.5s; }
.r9 { left: 90%; animation-duration: 2.4s; animation-delay: 0.8s; }
.r10 { left: 5%; animation-duration: 2s; animation-delay: 1.2s; }

@keyframes rainDrop {
    0% { opacity: 0; transform: translateY(-120px) translateX(0) rotate(20deg); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(100vh) translateX(50px) rotate(20deg); }
}

/* Hero Content (Text) */
.hero-content { position: relative; z-index: 10; max-width: 850px; margin: 0 auto; }

.badge { 
    display: inline-block; padding: 8px 20px; 
    background: rgba(0, 168, 255, 0.1); color: var(--primary-dark); 
    border-radius: 30px; font-size: 0.9rem; font-weight: 700; 
    margin-bottom: 25px; font-family: var(--font-head);
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.hero h1 { 
    font-size: 4rem; line-height: 1.1; margin-bottom: 25px; 
    letter-spacing: -1.5px; font-weight: 800; 
    background: linear-gradient(to right, var(--accent) 0%, var(--primary) 100%);
    background-clip: text; -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
}
.hero p { font-size: 1.25rem; color: var(--text-light); margin-bottom: 40px; max-width: 650px; margin-left: auto; margin-right: auto; font-weight: 400; }

/* =========================================
   5. SERVICES & BRANDS
========================================= */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }

.card { 
    background: white; padding: 40px 30px; 
    border-radius: var(--radius); 
    border: 1px solid #eff2f7; 
    transition: 0.4s; position: relative; 
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: transparent; }
.icon-box { 
    width: 70px; height: 70px; 
    background: linear-gradient(135deg, #eef9ff, #dff9fb); 
    border-radius: 20px; display: flex; align-items: center; justify-content: center; 
    margin-bottom: 25px; color: var(--primary); 
}
.icon-box svg { width: 32px; height: 32px; }
.card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.card p { font-size: 1rem; color: var(--text-light); line-height: 1.6; }

/* Brand / Partner Grid */
.brand-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; }
.brand-item {
    width: 160px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    background: white; border-radius: 12px; border: 1px solid #eee;
    padding: 10px; transition: all 0.3s ease;
    filter: grayscale(100%); opacity: 0.6;
}
.brand-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-item:hover { filter: grayscale(0%); opacity: 1; transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-color: var(--primary); }

/* =========================================
   6. WHY US & AC ILLUSTRATION
========================================= */
.row-flex { display: flex; align-items: center; gap: 60px; justify-content: space-between; }
.col-text { flex: 1; }
.col-visual { flex: 1; display: flex; justify-content: center; }
.sub-desc { font-size: 1.15rem; color: var(--text-light); margin-bottom: 35px; }

.feature-list li { display: flex; gap: 18px; margin-bottom: 22px; align-items: center; }
.feature-list li div { font-weight: 500; }
.feature-list li div strong { color: var(--accent); font-family: var(--font-head); font-size: 1.1rem; }
.check { 
    background: var(--success); color: white; 
    width: 28px; height: 28px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 0.9rem; flex-shrink: 0; 
    box-shadow: 0 4px 10px rgba(46, 213, 115, 0.3);
}

/* Pure CSS AC Animation */
.ac-illustration { width: 100%; max-width: 420px; height: 260px; background: #e0f2fe; border-radius: 24px; display: flex; align-items: center; justify-content: center; position: relative; }
.ac-unit { width: 85%; height: 110px; background: white; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,168,255,0.15); position: relative; border-bottom: 4px solid #f1f1f1; }
.vent { position: absolute; bottom: 18px; left: 10%; width: 80%; height: 3px; background: #dfe6e9; box-shadow: 0 6px 0 #dfe6e9, 0 12px 0 #dfe6e9; }
.indicator { position: absolute; top: 18px; right: 25px; width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 12px var(--success); }
.wind span { position: absolute; background: rgba(255,255,255,0.8); height: 5px; border-radius: 5px; animation: windFlow 2s infinite linear; }
.wind span:nth-child(1) { width: 60px; top: 130px; left: 15%; animation-delay: 0s; background: var(--primary); opacity: 0.2; }
.wind span:nth-child(2) { width: 90px; top: 150px; left: 25%; animation-delay: 0.4s; background: var(--primary); opacity: 0.15; }
.wind span:nth-child(3) { width: 50px; top: 140px; left: 50%; animation-delay: 0.8s; background: var(--primary); opacity: 0.2; }
@keyframes windFlow { 0% { transform: translateX(0); opacity: 0; } 50% { opacity: 0.5; } 100% { transform: translateX(60px); opacity: 0; } }

/* =========================================
   7. GALLERY & LIGHTBOX
========================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; height: 250px; box-shadow: var(--shadow); }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover .gallery-img { transform: scale(1.1); }
.overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.gallery-item:hover .overlay { opacity: 1; }
.zoom-icon { color: white; font-size: 2rem; font-weight: 300; background: rgba(255,255,255,0.2); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 2000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease; }
.lightbox.active { opacity: 1; }
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; border-radius: 8px; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
.caption { margin-top: 15px; color: #f1f1f1; font-size: 1.1rem; font-family: var(--font-head); text-align: center; }
.close-lightbox { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 2001; }
.close-lightbox:hover { color: var(--primary); }

/* =========================================
   8. FOOTER, CTA, FLOATING WA
========================================= */
.cta-banner { background: linear-gradient(120deg, var(--accent), #1e3799); color: white; text-align: center; padding: 80px 20px; border-radius: 30px; margin: 80px 20px 0; box-shadow: 0 20px 40px rgba(30, 55, 153, 0.2); }
.cta-banner h2 { margin-bottom: 15px; font-size: 2.2rem; color: white; }
.cta-banner p { margin-bottom: 35px; opacity: 0.9; font-size: 1.15rem; }

footer { background: #f8f9fa; padding-top: 80px; border-top: none; margin-top: 50px; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; padding-bottom: 50px; }
.footer-brand h3 { color: var(--accent); margin-bottom: 20px; font-size: 1.8rem; font-family: var(--font-head); font-weight: 800; }
.footer-links h4 { margin-bottom: 25px; color: var(--accent); font-size: 1.2rem; font-family: var(--font-head); }
.footer-links p { color: var(--text-light); margin-bottom: 12px; font-weight: 500; }
.copyright { text-align: center; padding: 25px; border-top: 1px solid #e1e1e1; color: #95a5a6; font-size: 0.9rem; }

.float-wa { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; background: var(--success); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 25px rgba(46, 213, 115, 0.5); transition: 0.3s; z-index: 999; }
.float-wa:hover { transform: scale(1.1) rotate(10deg); }

/* =========================================
   9. RESPONSIVE MEDIA QUERIES (FULL FIX)
========================================= */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar { height: 70px; }
    .hamburger { display: flex; flex-direction: column; gap: 6px; }
    .hamburger span { width: 28px; height: 3px; background: var(--text-dark); transition: 0.3s; border-radius: 3px; }
    
    .nav-menu { 
        position: absolute; top: 70px; left: 0; width: 100%; 
        background: white; flex-direction: column; padding: 40px 20px; 
        box-shadow: 0 10px 40px rgba(0,0,0,0.1); 
        clip-path: inset(0 0 100% 0); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        gap: 25px; border-bottom: 1px solid #eee;
    }
    .nav-menu.active { clip-path: inset(0 0 0 0); }
    
    /* Hero Mobile */
    .hero { padding-top: 120px; padding-bottom: 60px; }
    .hero h1 { font-size: 2.5rem; letter-spacing: -1px; }
    .hero p { font-size: 1rem; padding: 0 10px; margin-bottom: 30px; }
    
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; width: 100%; }
    .btn { justify-content: center; width: 100%; }
    .btn-outline { margin-left: 0; }

    /* Why Us & Illustration Fix */
    .row-flex { flex-direction: column; gap: 40px; }
    
    /* FIX: Ilustrasi AC Muat di HP */
    .ac-illustration { width: 100%; max-width: 340px; height: 220px; margin: 0 auto; }
    .ac-unit { width: 90%; height: 90px; }

    /* Grids Mobile */
    .grid-3 { grid-template-columns: 1fr; }
    .brand-grid { gap: 15px; }
    .brand-item { width: 45%; height: 70px; }
    
    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 220px; }

    /* Footer & CTA */
    .cta-banner { margin: 40px 0 0; border-radius: 0; padding: 50px 20px; }
    footer { padding-top: 40px; margin-top: 0; }
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-brand p { margin: 0 auto; }
}

/* =========================================
   11. BINGKAI SUDUT GALERI (CORNER FRAMES)
========================================= */

/* 1. Pastikan Grid punya posisi relative agar bingkai nempel di sini */
.gallery-grid {
    position: relative;
    padding: 10px; /* Beri sedikit jarak agar bingkai tidak menempel ketat ke foto */
}

/* 2. Bingkai Kiri Atas (L-Shape) */
.gallery-grid::before {
    content: "";
    position: absolute;
    top: -15px;      /* Geser sedikit ke atas luar */
    left: -15px;     /* Geser sedikit ke kiri luar */
    width: 60px;     /* Lebar garis horizontal */
    height: 60px;    /* Tinggi garis vertikal */
    
    /* Warna & Ketebalan Bingkai */
    border-top: 5px solid var(--primary);
    border-left: 5px solid var(--primary);
    
    /* Lengkungan sudut biar modern */
    border-radius: 15px 0 0 0; 
    
    /* Agar tidak menutupi klik foto */
    pointer-events: none; 
    transition: 0.4s ease;
}

/* 3. Bingkai Kanan Atas (L-Shape Terbalik) */
.gallery-grid::after {
    content: "";
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    
    border-top: 5px solid var(--primary);
    border-right: 5px solid var(--primary);
    
    border-radius: 0 15px 0 0;
    
    pointer-events: none;
    transition: 0.4s ease;
}

/* 4. Efek Ciamic: Saat Galeri disentuh, bingkai membesar sedikit */
.gallery-grid:hover::before {
    top: -20px; left: -20px;
    border-color: var(--accent); /* Berubah warna jadi biru tua */
}
.gallery-grid:hover::after {
    top: -20px; right: -20px;
    border-color: var(--accent);
}

/* 5. Penyesuaian di HP (Agar bingkai tidak keluar layar) */
@media (max-width: 768px) {
    .gallery-grid::before {
        left: 0; top: -10px; /* Tempelkan ke dalam */
        width: 40px; height: 40px;
        border-width: 4px;
    }
    .gallery-grid::after {
        right: 0; top: -10px;
        width: 40px; height: 40px;
        border-width: 4px;
    }
    /* Matikan efek hover membesar di HP biar rapi */
    .gallery-grid:hover::before { top: -10px; left: 0; }
    .gallery-grid:hover::after { top: -10px; right: 0; }
}