/* ============================================
   PDAM Purabaya - Design System & Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary-900: #0a1f44;
    --primary-800: #10306b;
    --primary-700: #174291;
    --primary-600: #1d50ab;
    --primary-500: #2665d1;
    --primary-400: #3b7af0;
    --primary-300: #60a5fa;
    --primary-200: #93c5fd;
    --primary-100: #dbeafe;
    --primary-50: #eff6ff;
    --accent: #00a4eb;
    --accent-dark: #0284c7;
    --accent-light: #38bdf8;
    --accent-glow: rgba(0, 164, 235, 0.35);
    --white: #ffffff;
    --card-bg: #ffffff;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-600: #64748b;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --green-wa: #25D366;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 50px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.16);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --white: #0b1329;
    --card-bg: #111e38;
    --neutral-50: #070d1e;
    --neutral-100: #0d172e;
    --neutral-200: #1c2b4e;
    --neutral-300: #2d4170;
    --neutral-600: #94a3b8;
    --neutral-700: #cbd5e1;
    --neutral-800: #f1f5f9;
    --neutral-900: #ffffff;
    --primary-900: #e0f2fe;
    --primary-800: #38bdf8;
    --primary-700: #60a5fa;
    --primary-50: #0f1c3a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.7);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background: var(--neutral-50);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-sm);
    font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: var(--transition); border: 2px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(2, 132, 199, 0.45); }
.btn-outline {
    border-color: rgba(255,255,255,0.7); color: #ffffff; background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
}
.btn-outline:hover { background: #ffffff; color: #10306b; }
.btn-full { width: 100%; justify-content: center; }

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 16px 0; transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10, 31, 68, 0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 10px 0; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
[data-theme="dark"] .navbar.scrolled {
    background: rgba(7, 13, 30, 0.94);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img { height: 52px; width: auto; max-width: 170px; object-fit: contain; }
.logo img:first-child { height: 62px; width: auto; max-width: 70px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    color: rgba(255,255,255,0.85); padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover, .nav-links a.active { color: #ffffff; background: rgba(255,255,255,0.12); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff; padding: 6px 12px; border-radius: 20px;
    cursor: pointer; font-size: 0.82rem; font-weight: 600; transition: var(--transition);
}
.lang-toggle:hover { background: rgba(255,255,255,0.22); }
.theme-toggle {
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff; width: 38px; height: 38px; border-radius: 50%;
    cursor: pointer; font-size: 1rem; transition: var(--transition);
}
.theme-toggle:hover { background: rgba(255,255,255,0.25); transform: rotate(15deg); }
.btn-portal-pwa {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #00f2fe, #0891b2);
    color: #071321; font-weight: 800; font-size: 0.82rem;
    padding: 7px 16px; border-radius: 20px; box-shadow: 0 4px 15px rgba(0,242,254,0.3);
}
.btn-portal-pwa:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,242,254,0.5); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: #ffffff; border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================
   DROPDOWN MENU
   ========================================== */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 5px; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    background: var(--card-bg); box-shadow: var(--shadow-xl);
    border-radius: var(--radius-sm); min-width: 230px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition); display: flex; flex-direction: column;
    padding: 8px 0; border: 1px solid var(--neutral-200); z-index: 100;
}
[data-theme="dark"] .dropdown-menu {
    background: #0d172e; border-color: #1e2b4e;
}
.dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { width: 100%; }
.dropdown-menu a {
    color: var(--neutral-800) !important; padding: 9px 18px !important;
    display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.85rem;
}
.dropdown-menu a:hover {
    background: var(--neutral-100) !important; color: var(--accent) !important;
}
[data-theme="dark"] .dropdown-menu a:hover {
    background: #1c2b4e !important; color: #38bdf8 !important;
}

/* ==========================================
   HERO
   ========================================== */
.hero { position: relative; min-height: 94vh; display: flex; align-items: center; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; z-index: 0; background-color: var(--primary-900); }
.hero-slider .slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-attachment: fixed; opacity: 0; transition: opacity 1.5s ease-in-out;
}
.hero-slider .slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(7,19,41,0.92) 0%, rgba(10,37,64,0.78) 50%, rgba(0,164,235,0.4) 100%);
}
[data-theme="dark"] .hero-overlay {
    background: linear-gradient(135deg, rgba(4,10,22,0.95) 0%, rgba(7,19,41,0.85) 50%, rgba(2,132,199,0.3) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 130px 0 110px; max-width: 760px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 18px; border-radius: 30px;
    background: rgba(56,189,248,0.18); border: 1px solid rgba(56,189,248,0.35);
    color: #e0f2fe; font-size: 0.82rem; font-weight: 700;
    margin-bottom: 20px; letter-spacing: 0.5px; text-transform: uppercase;
}
.hero-title { color: #ffffff; margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0,0,0,0.4); font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero-desc { color: rgba(255,255,255,0.88); font-size: 1.05rem; margin-bottom: 34px; max-width: 620px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: -2px; left: 0; width: 100%; z-index: 3; line-height: 0; }
.hero-wave svg { width: 100%; height: 100px; fill: var(--neutral-50); }

/* ==========================================
   SECTION COMMON
   ========================================== */
.section { padding: 90px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag {
    display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: var(--accent); margin-bottom: 8px;
}
.section-tag.light { color: #bae6fd; }
.section-title { color: var(--primary-900); margin-bottom: 14px; font-weight: 800; }
.section-title.light { color: #ffffff; }
.section-line {
    width: 60px; height: 4px; border-radius: 4px; margin: 0 auto;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.section-line.light { background: linear-gradient(90deg, #bae6fd, #ffffff); }

/* ==========================================
   ABOUT & PAGE HEADERS
   ========================================== */
.page-header {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, rgba(6,23,39,0.92) 0%, rgba(10,37,64,0.85) 40%, rgba(0,180,216,0.6) 100%), url('/assets/images/hero-bg.png') center/cover;
    text-align: center; color: #ffffff;
}
.page-header h1 { font-size: 2.4rem; margin-bottom: 10px; font-weight: 800; }
.page-header p { color: rgba(255,255,255,0.85); font-size: 1rem; max-width: 600px; margin: 0 auto; }

.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about-image img, .about-image video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.about-image-badge {
    position: absolute; bottom: 20px; left: 20px;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff; padding: 16px 24px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); text-align: center;
}
.badge-number { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 800; line-height: 1; }
.badge-text { font-size: 0.8rem; opacity: 0.9; }
.about-desc { color: var(--neutral-600); margin-bottom: 30px; font-size: 0.98rem; }
.visi-misi-cards { display: flex; flex-direction: column; gap: 16px; }
.vm-card {
    background: var(--card-bg); border-radius: var(--radius-md);
    padding: 22px; border-left: 4px solid var(--accent);
    border: 1px solid var(--neutral-200); border-left-width: 4px;
    transition: var(--transition);
}
.vm-card:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.vm-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), #2563eb);
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: 1rem; margin-bottom: 12px;
}
.vm-card h3 { color: var(--primary-800); margin-bottom: 6px; font-size: 1.1rem; }
.vm-card p { color: var(--neutral-600); font-size: 0.9rem; line-height: 1.6; }

/* ==========================================
   SERVICES
   ========================================== */
.services {
    background: linear-gradient(160deg, #09204a 0%, #0d306b 50%, #0369a1 100%) !important;
    padding-bottom: 130px; position: relative; overflow: hidden;
}
[data-theme="dark"] .services {
    background: linear-gradient(160deg, #050d1d 0%, #091a38 50%, #034b73 100%) !important;
}
.services-bg {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(56,189,248,0.18) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(14,165,233,0.15) 0%, transparent 50%);
}
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 2; }
.services .service-card,
.service-card {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}
.services .service-card:hover,
.service-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35) !important;
}
.service-icon {
    width: 64px; height: 64px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px; font-size: 1.5rem; color: #ffffff;
    box-shadow: 0 8px 25px rgba(2,132,199,0.35);
}
.services .service-card h3,
.service-card h3 {
    color: #ffffff !important;
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 700;
}
.services .service-card p,
.service-card p {
    color: #dbeafe !important;
    font-size: 0.85rem;
    line-height: 1.6;
}
.services .section-tag.light {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.18) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
}
.services .section-title.light {
    color: #ffffff !important;
}
.services .section-line.light {
    background: linear-gradient(90deg, #38bdf8, #ffffff) !important;
}
.services-wave { position: absolute; bottom: -2px; left: 0; width: 100%; z-index: 3; line-height: 0; }
.services-wave svg { width: 100%; height: 90px; fill: var(--white); }

/* ==========================================
   STATS
   ========================================== */
.stats { background: var(--white); padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
    text-align: center; padding: 36px 20px;
    border-radius: var(--radius-md); background: var(--card-bg);
    border: 1px solid var(--neutral-200); transition: var(--transition);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.stat-icon {
    width: 52px; height: 52px; border-radius: var(--radius-full);
    background: var(--primary-50); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; font-size: 1.25rem;
}
.stat-card:hover .stat-icon { background: linear-gradient(135deg, var(--accent), #2563eb); color: #ffffff; }
.stat-number {
    display: block; font-family: var(--font-heading); font-size: 2.6rem;
    font-weight: 800; color: var(--primary-900); line-height: 1;
}
.stat-suffix { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.stat-label { display: block; margin-top: 8px; color: var(--neutral-600); font-size: 0.85rem; font-weight: 600; }

/* ==========================================
   NEWS & ARTICLES
   ========================================== */
.news { background: var(--neutral-50); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
    background: var(--card-bg); border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: var(--transition); border: 1px solid var(--neutral-200);
    display: flex; flex-direction: column; justify-content: space-between;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-light); }
.news-img {
    height: 190px; background-size: cover; background-position: center;
    position: relative; overflow: hidden;
}
.news-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,31,68,0.7));
}
.news-date {
    position: absolute; bottom: 12px; left: 16px; z-index: 2;
    color: #ffffff; font-size: 0.75rem; font-weight: 700;
    background: rgba(2,132,199,0.85); padding: 3px 10px; border-radius: 20px;
    backdrop-filter: blur(4px);
}
.news-body { padding: 22px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-category {
    display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--accent); margin-bottom: 6px;
}
.news-body h3 { color: var(--primary-900); margin-bottom: 8px; font-size: 1.05rem; line-height: 1.4; }
.news-body p { color: var(--neutral-600); font-size: 0.85rem; margin-bottom: 16px; line-height: 1.6; }
.news-link { color: var(--accent); font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }
.news-link:hover { gap: 10px; color: var(--accent-dark); }

/* ==========================================
   GALLERY
   ========================================== */
.gallery { background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
    position: relative; border-radius: var(--radius-md); overflow: hidden;
    cursor: pointer; aspect-ratio: 1; transition: var(--transition);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-overlay {
    position: absolute; inset: 0; background: rgba(10,31,68,0.7);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition); color: #ffffff; padding: 15px; text-align: center;
}
.gallery-overlay i { font-size: 1.6rem; margin-bottom: 6px; color: var(--accent-light); }
.gallery-overlay span { font-size: 0.82rem; font-weight: 600; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); }

/* ==========================================
   CONTACT
   ========================================== */
.contact { background: var(--neutral-50); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-icon {
    width: 48px; height: 48px; min-width: 48px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), #2563eb);
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: 1.1rem;
}
.contact-item h4 { color: var(--primary-900); margin-bottom: 4px; font-size: 0.95rem; }
.contact-item p { color: var(--neutral-600); font-size: 0.85rem; line-height: 1.6; }
.contact-form {
    background: var(--card-bg); padding: 36px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200);
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; margin-bottom: 6px; font-weight: 600;
    color: var(--neutral-800); font-size: 0.85rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--neutral-200); font-family: var(--font-body);
    font-size: 0.88rem; transition: var(--transition); background: var(--neutral-50);
    color: var(--neutral-800);
}
[data-theme="dark"] .form-group input, 
[data-theme="dark"] .form-group textarea, 
[data-theme="dark"] .form-group select {
    background: #070d1e; border-color: #1c2b4e; color: #ffffff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow); background: var(--card-bg);
}
.form-group textarea { resize: vertical; }

/* ==========================================
   MITRA & JARINGAN KOLABORASI
   ========================================== */
.mitra {
    background: var(--card-bg);
    border-top: 1px solid var(--neutral-200);
    border-bottom: 1px solid var(--neutral-200);
    padding: 70px 0;
}
.mitra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    align-items: stretch;
}
.mitra-card {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 18px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    min-height: 110px;
    text-align: center;
}
.mitra-card img {
    max-height: 44px;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(15%);
    transition: var(--transition);
}
/* ==========================================
   MITRA SHOWCASE GRID (Clean Centered Grid)
   ========================================== */
.mitra-grid-8 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px auto 0;
    max-width: 1140px;
}
.mitra-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 76px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    text-decoration: none;
    box-sizing: border-box;
}
.mitra-grid-item img {
    max-height: 44px;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(15%);
    opacity: 0.9;
    transition: all 0.25s ease;
}
.mitra-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.15);
    border-color: #38bdf8;
    background: #ffffff;
}
.mitra-grid-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.06);
}
[data-theme="dark"] .mitra-grid-item {
    background: #0d172e;
    border-color: #1e2b4e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .mitra-grid-item img {
    filter: brightness(0.95);
}
[data-theme="dark"] .mitra-grid-item:hover {
    background: #111e38;
    border-color: #38bdf8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
    .mitra-grid-8 {
        gap: 10px;
    }
    .mitra-grid-item {
        width: 105px;
        height: 62px;
        padding: 6px 10px;
        border-radius: 12px;
    }
    .mitra-grid-item img {
        max-height: 32px;
        max-width: 76px;
    }
}

/* ==========================================
   PROFESSIONAL FOOTER
   ========================================== */
.footer {
    background: linear-gradient(160deg, #071329 0%, #0a1f44 50%, #0f2d5e 100%);
    color: rgba(255,255,255,0.75); padding-top: 70px; position: relative;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-wave { position: absolute; top: -2px; left: 0; width: 100%; line-height: 0; }
.footer-wave svg { width: 100%; height: 70px; fill: var(--neutral-50); }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr; gap: 36px; padding-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 75px; width: auto; max-width: 140px; object-fit: contain; }
.footer-logo img:first-child { height: 85px; max-width: 150px; }
.footer-about p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 20px; color: rgba(255,255,255,0.7); }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
    width: 36px; height: 36px; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.08); display: flex; align-items: center;
    justify-content: center; color: #ffffff; font-size: 0.9rem; transition: var(--transition);
}
.footer-socials a:hover { background: var(--accent); transform: translateY(-2px); color: #ffffff; }
.footer-links-col h4, .footer-contact h4 {
    color: #ffffff; font-size: 0.95rem; font-weight: 700; margin-bottom: 18px;
    position: relative; padding-bottom: 8px;
}
.footer-links-col h4::after, .footer-contact h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 28px; height: 3px; background: var(--accent-light); border-radius: 3px;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-links-col a { font-size: 0.84rem; color: rgba(255,255,255,0.7); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links-col a:hover { color: #38bdf8; padding-left: 5px; }
.footer-contact p { font-size: 0.82rem; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.footer-contact i { color: #38bdf8; margin-top: 3px; width: 16px; flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; flex-direction: row; justify-content: space-between; align-items: center;
    padding: 20px 0; font-size: 0.78rem; color: rgba(255,255,255,0.55); gap: 10px;
}

/* ==========================================
   HYDRO WHATSAPP FLOATING ASSISTANT
   ========================================== */
.hydro-wa-widget {
    position: fixed; bottom: 26px; right: 26px; z-index: 999;
}
.hydro-wa-btn {
    width: 60px; height: 60px; border-radius: var(--radius-full);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    cursor: pointer; border: 2.5px solid rgba(255,255,255,0.8); transition: var(--transition);
    position: relative;
}
.hydro-wa-btn:hover { transform: scale(1.08); box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6); }
.hydro-wa-badge {
    position: absolute; top: -2px; right: -2px; width: 14px; height: 14px;
    background: #22c55e; border: 2.5px solid #ffffff; border-radius: 50%;
    animation: waPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.hydro-wa-card {
    position: absolute; bottom: 74px; right: 0; width: 320px;
    background: var(--card-bg); border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25); border: 1px solid var(--neutral-200);
    overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] .hydro-wa-card {
    background: #0d172e; border-color: #1e2b4e;
}
.hydro-wa-card.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.hydro-wa-card-header {
    background: linear-gradient(135deg, #071329, #0e2b5c);
    padding: 16px; color: #ffffff; display: flex; align-items: center; justify-content: space-between;
}
.hydro-wa-card-body { padding: 16px; }
.hydro-wa-chip {
    display: block; width: 100%; padding: 8px 12px; margin-bottom: 8px;
    background: var(--neutral-50); border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600;
    color: var(--neutral-800); text-align: left; transition: var(--transition);
}
[data-theme="dark"] .hydro-wa-chip {
    background: #111e38; border-color: #1e2b4e; color: #e0f2fe;
}
.hydro-wa-chip:hover {
    background: #10b981; color: #ffffff; border-color: #10b981;
}

/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(4,10,22,0.94); backdrop-filter: blur(12px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: var(--transition);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 88%; max-height: 78vh; border-radius: var(--radius-md); object-fit: contain; }
.lightbox-close {
    position: absolute; top: 20px; right: 26px;
    background: none; border: none; color: #ffffff;
    font-size: 2.2rem; cursor: pointer; transition: var(--transition);
}
.lightbox-close:hover { transform: rotate(90deg); color: var(--accent); }
.lightbox-caption { color: rgba(255,255,255,0.85); margin-top: 14px; font-size: 0.92rem; font-weight: 500; }

/* ==========================================
   ANIMATIONS & RESPONSIVE
   ========================================== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    
    .hamburger { display: flex !important; z-index: 1002; }
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 320px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(7, 19, 41, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-left: 1px solid rgba(0, 242, 254, 0.25) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 95px 20px 35px !important;
        gap: 6px !important;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -15px 0 45px rgba(0,0,0,0.65) !important;
        z-index: 1001 !important;
        overflow-y: auto !important;
        display: flex !important;
    }
    .nav-links.active {
        right: 0 !important;
    }
    .nav-links li {
        width: 100% !important;
    }
    .nav-links a {
        padding: 12px 16px !important;
        width: 100% !important;
        border-radius: 12px !important;
        color: #f8fafc !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        transition: all 0.2s ease !important;
    }
    .nav-links a:hover, .nav-links a.active {
        background: rgba(0, 242, 254, 0.15) !important;
        color: #00f2fe !important;
        border-color: rgba(0, 242, 254, 0.35) !important;
    }
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(0, 242, 254, 0.15) !important;
        border-radius: 12px !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 5px !important;
        padding: 6px !important;
        gap: 3px !important;
    }
    .dropdown-menu.active {
        display: flex !important;
        flex-direction: column !important;
    }
    .dropdown-menu li a {
        color: rgba(255, 255, 255, 0.85) !important;
        padding: 10px 14px !important;
        font-size: 0.88rem !important;
        border: none !important;
        background: transparent !important;
    }
    .dropdown-menu li a:hover {
        background: rgba(0, 242, 254, 0.12) !important;
        color: #00f2fe !important;
    }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .news-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content { padding: 110px 0 80px; }
}
@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 14px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .contact-form { padding: 22px; }
    .stat-card { padding: 24px 16px; }
}

/* ==========================================
   ADVANCED DARK & LIGHT MODE READABILITY
   ========================================== */

/* Universal Dark Mode Overrides */
[data-theme="dark"] body {
    background-color: #070f1e !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .section {
    background-color: #070f1e !important;
}

[data-theme="dark"] .section:nth-of-type(even) {
    background-color: #0b152b !important;
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6,
[data-theme="dark"] .section-title {
    color: #ffffff !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .text-neutral-600,
[data-theme="dark"] .text-gray-600,
[data-theme="dark"] .text-gray-500 {
    color: #94a3b8 !important;
}

/* Form Inputs & Controls */
input, select, textarea {
    color: #0f172a;
    background-color: #ffffff;
    border-color: #cbd5e1;
    transition: all 0.2s ease;
}

input::placeholder, textarea::placeholder {
    color: #94a3b8;
}

[data-theme="dark"] input, 
[data-theme="dark"] select, 
[data-theme="dark"] textarea {
    color: #f8fafc !important;
    background-color: #0d172e !important;
    border-color: #24355a !important;
}

[data-theme="dark"] input:focus, 
[data-theme="dark"] select:focus, 
[data-theme="dark"] textarea:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

[data-theme="dark"] input::placeholder, 
[data-theme="dark"] textarea::placeholder {
    color: #64748b !important;
}

/* Cards & Surfaces */
.card, .news-card, .stat-card, .testimonial-card, .product-card, .agent-card, .branch-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

[data-theme="dark"] .card, 
[data-theme="dark"] .news-card, 
[data-theme="dark"] .stat-card, 
[data-theme="dark"] .testimonial-card, 
[data-theme="dark"] .product-card, 
[data-theme="dark"] .agent-card, 
[data-theme="dark"] .branch-card,
[data-theme="dark"] .bg-white {
    background-color: #111e38 !important;
    border-color: #1e2e54 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .bg-gray-50,
[data-theme="dark"] .bg-neutral-50 {
    background-color: #0d172e !important;
}

[data-theme="dark"] .border-gray-100,
[data-theme="dark"] .border-gray-200 {
    border-color: #1e2e54 !important;
}

/* Badges & Tags */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.2);
    margin-bottom: 12px;
}

[data-theme="dark"] .section-tag {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

/* Breadcrumbs & Links */
.breadcrumb {
    color: #64748b;
}

[data-theme="dark"] .breadcrumb {
    color: #94a3b8;
}

[data-theme="dark"] .breadcrumb a {
    color: #38bdf8;
}

/* Tables in Dark Mode */
[data-theme="dark"] table {
    border-color: #1e2e54 !important;
}

[data-theme="dark"] table th {
    background-color: #0d172e !important;
    color: #e0f2fe !important;
    border-color: #1e2e54 !important;
}

[data-theme="dark"] table td {
    background-color: #111e38 !important;
    color: #cbd5e1 !important;
    border-color: #1e2e54 !important;
}

/* Pagination in Dark Mode */
[data-theme="dark"] .pagination a, 
[data-theme="dark"] .pagination span {
    background-color: #111e38;
    border-color: #1e2e54;
    color: #cbd5e1;
}

[data-theme="dark"] .pagination .active {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}

