/* -------------------------------------------------------------------------- */
/* NEGOMBO WATER PLUS - MODERN UI UPGRADE (2025)                             */
/* -------------------------------------------------------------------------- */

/* --- Root Variables & Resets --- */
:root {
    --primary: #14b8a6;
    --primary-dark: #0d9488;
    --secondary: #0891b2;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* --- Navigation & Header --- */
.nav-link {
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2dd4bf, #0d9488);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 99px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-dark);
}

/* Glass Header Effect */
#header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- Buttons --- */
.btn-gradient {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-image: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
    background-size: 200% auto;
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-gradient:hover {
    background-position: right center;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: white;
    color: var(--text-main);
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--primary-dark);
}

/* --- Animations --- */

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delay Helpers */
[data-delay="0"] { transition-delay: 0ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }

/* Custom Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* --- Card Styles --- */
.service-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #ccfbf1;
    box-shadow: 0 20px 40px -5px rgba(20, 184, 166, 0.1);
}

/* --- Mobile Menu --- */
#mobile-menu-backdrop {
    transition: opacity 0.3s ease;
}

.mobile-menu-content {
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

/* --- Gallery & Popups --- */
.mfp-bg {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(5px);
}