/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0ea5e9;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::before {
    width: 80%;
}

.nav-menu a:hover {
    color: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 50%, #0369a1 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 30%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 30s linear infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, -20px) rotate(1deg); }
    50% { transform: translate(20px, -10px) rotate(-1deg); }
    75% { transform: translate(-10px, 20px) rotate(0.5deg); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.gradient-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(8px);
    opacity: 0.7;
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 3rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 600px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Water Animation */
.hero-visual {
    position: relative;
    height: 400px;
}

/* Water Animation */
.water-animation {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, rgba(12, 74, 110, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 2;
    min-height: 400px;
}

/* Floating Particles */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(6,182,212,0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(14,165,233,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 25s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-40px) translateX(-5px); }
    75% { transform: translateY(-20px) translateX(-10px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.water-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.pipe-network {
    position: relative;
    width: 100%;
    height: 100%;
}

.pipe {
    position: absolute;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

.pipe.horizontal {
    width: 300px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pipe.vertical {
    width: 20px;
    height: 200px;
    top: 30%;
    left: 50%;
    transform: translate(-50%, 0);
}

.sensor-node {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.sensor-node.active {
    background: #00ff88;
    top: 40%;
    left: 30%;
}

.sensor-node.warning {
    background: #ff6b6b;
    top: 40%;
    right: 30%;
}

.sensor-node.normal {
    background: #4facfe;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 4rem;
    color: #0c4a6e;
    letter-spacing: -0.02em;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title::after {
    content: '';
    margin-top: 15px;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-radius: 2px;
}

.benefits .section-title,
.contact .section-title {
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(14, 165, 233, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, #0ea5e9, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Product Showcase */
.product-showcase {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(14, 165, 233, 0.05);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-content {
    padding: 2rem;
}

.product-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.product-content p {
    color: #64748b;
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 50%, #0369a1 100%);
    color: white;
}

.benefits .section-title {
    color: white;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.benefit-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1);
}

.benefit-number {
    font-size: 3rem;
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.dashboard-preview {
    text-align: center;
}

.dashboard-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 50%, #0369a1 100%);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 20px;
    color: #00d4ff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
}

.footer-logo i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(12, 74, 110, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        opacity: 0;
    }
    
    .nav-menu.active {
        right: 0;
        opacity: 1;
    }
    
    .nav-menu a {
        font-size: 1.3rem;
        color: white;
        padding: 1rem 2rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateY(20px);
        animation: slideInUp 0.5s ease forwards;
    }
    
    .nav-menu.active a:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active a:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active a:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active a:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active a:nth-child(5) { animation-delay: 0.5s; }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(0) scale(1.05);
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .water-animation {
        min-height: 300px;
    }
    
    .anomaly-detection {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 20px;
        font-size: 12px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 200px;
        text-align: center;
    }
    
    .pipe-system {
        transform: scale(0.8);
    }
    
    .alert-indicator {
        font-size: 12px;
        padding: 8px 12px;
        top: 20%;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }
.water-waves {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.2) 0%, rgba(14, 165, 233, 0.1) 50%, transparent 70%);
    opacity: 0.7;
    border-radius: 40%;
    animation: wave 15s linear infinite;
}

.water-waves::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.2) 0%, rgba(14, 165, 233, 0.1) 40%, transparent 60%);
    border-radius: 35%;
    animation: wave 12s linear infinite;
}

.water-waves::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.1) 0%, rgba(14, 165, 233, 0.05) 30%, transparent 50%);
    border-radius: 30%;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Sensor Network */
.sensor-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.sensor {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(6, 182, 212, 0.6);
    z-index: 4;
}

#sensor1 { top: 20%; left: 30%; animation: pulse 3s infinite; }
#sensor2 { top: 70%; left: 20%; animation: pulse 4s infinite 0.5s; }
#sensor3 { top: 40%; left: 70%; animation: pulse 3.5s infinite 1s; }
#sensor4 { top: 80%; left: 60%; animation: pulse 4.5s infinite 1.5s; }
#sensor5 { top: 30%; left: 50%; animation: pulse 3s infinite 2s; }

.connection {
    position: absolute;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(6, 182, 212, 0.3), rgba(255,255,255,0.1));
    height: 2px;
    transform-origin: left center;
    z-index: 3;
}

#conn1 {
    width: 40%;
    top: 20%;
    left: 30%;
    transform: rotate(25deg);
}

#conn2 {
    width: 30%;
    top: 40%;
    left: 30%;
    transform: rotate(-30deg);
}

#conn3 {
    width: 25%;
    top: 40%;
    left: 50%;
    transform: rotate(15deg);
}

#conn4 {
    width: 35%;
    top: 70%;
    left: 20%;
    transform: rotate(40deg);
}
.data-pulse {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    top: 20%;
    left: 30%;
    box-shadow: 0 0 10px #ffffff, 0 0 20px #06b6d4;
    animation: dataPulse 5s infinite;
    z-index: 5;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

@keyframes dataPulse {
    0% { transform: scale(1); opacity: 1; top: 20%; left: 30%; }
    20% { top: 40%; left: 70%; }
    40% { top: 70%; left: 20%; }
    60% { top: 80%; left: 60%; }
    80% { top: 30%; left: 50%; }
    100% { transform: scale(1); opacity: 1; top: 20%; left: 30%; }
}
/* Pipe System */
.pipe-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.pipe {
    position: absolute;
    background: linear-gradient(90deg, #0c4a6e, #0ea5e9);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.horizontal-main {
    width: 90%;
    height: 24px;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #0c4a6e, #0ea5e9, #0c4a6e);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
}

.vertical-1 {
    width: 20px;
    height: 60%;
    top: 20%;
    left: 25%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #0c4a6e, #0ea5e9);
}

.vertical-2 {
    width: 20px;
    height: 60%;
    top: 20%;
    left: 75%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #0c4a6e, #0ea5e9);
}

.horizontal-1 {
    width: 40%;
    height: 20px;
    top: 20%;
    left: 25%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #0c4a6e, #0ea5e9);
}

.horizontal-2 {
    width: 40%;
    height: 20px;
    top: 20%;
    left: 75%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #0ea5e9, #0c4a6e);
}

.junction {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #0ea5e9;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.7);
    z-index: 4;
}

#junction1 {
    top: calc(50% - 12px);
    left: calc(25% - 12px);
}

#junction2 {
    top: calc(50% - 12px);
    left: calc(75% - 12px);
}

#junction3 {
    top: calc(20% - 12px);
    left: calc(25% - 12px);
}

#junction4 {
    top: calc(20% - 12px);
    left: calc(75% - 12px);
}
.sensor {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: 2px solid #0ea5e9;
    border-radius: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sensor-pulse {
    width: 8px;
    height: 8px;
    background: #0ea5e9;
    border-radius: 50%;
    animation: sensorPulse 2s infinite;
}

@keyframes sensorPulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.7; }
}

#sensor1 {
    top: calc(50% - 9px);
    left: 15%;
}

#sensor2 {
    top: calc(20% - 9px);
    left: 50%;
}

#sensor3 {
    top: calc(50% - 9px);
    left: 60%;
}

#sensor4 {
    top: calc(20% - 9px);
    left: 90%;
}

.water-flow {
    position: absolute;
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(14, 165, 233, 0.3) 0%,
        rgba(6, 182, 212, 0.7) 50%,
        rgba(14, 165, 233, 0.3) 100%);
    border-radius: 4px;
    animation: flowAnimation 3s infinite linear;
    z-index: 3;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
    background-size: 50px 100%;
}

#flow1 {
    width: 60%;
    top: calc(50% - 3px);
    left: 5%;
    background-size: 50px 100%;
}

#flow2 {
    width: 40%;
    top: calc(50% - 3px);
    left: 55%;
    background-size: 40px 100%;
    animation-duration: 2.5s;
}

#flow3 {
    width: 15%;
    height: 30%;
    top: 20%;
    left: calc(25% - 3px);
    transform: rotate(90deg);
    background-size: 30px 100%;
    animation-duration: 3.5s;
}

@keyframes flowAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 50px 0; }
}
.leak-prevention {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #06b6d4;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: preventionPulse 4s infinite;
}

#prevention1 {
    top: calc(50% - 20px);
    left: calc(60% - 20px);
    width: 40px;
    height: 40px;
    border-width: 3px;
}

@keyframes preventionPulse {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 0 20px rgba(6, 182, 212, 0); transform: scale(1.1); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); transform: scale(1); }
}

.data-pulse {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #06b6d4;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffffff, 0 0 20px #06b6d4;
    animation: dataPulse 12s infinite linear;
    z-index: 5;
    pointer-events: none;
}

.alert-indicator {
    position: absolute;
    top: 35%;
    left: 60%;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    opacity: 0;
    animation: alertFlash 8s infinite;
    z-index: 6;
}

@keyframes alertFlash {
    0%, 100% { opacity: 0; transform: scale(0.9); }
    10%, 90% { opacity: 0; }
    50%, 60% { opacity: 1; transform: scale(1); }
}

@keyframes dataPulse {
    /* Follow the main pipe and sensors */
    0% { opacity: 1; top: calc(50% - 3px); left: 15%; }
    10% { opacity: 0.8; top: calc(50% - 3px); left: 25%; }
    20% { opacity: 1; top: calc(50% - 3px); left: 40%; }
    30% { opacity: 0.8; top: calc(50% - 3px); left: 60%; }
    40% { opacity: 1; top: calc(50% - 3px); left: 75%; }
    50% { opacity: 0.8; top: calc(50% - 3px); left: 90%; }
    /* Move to vertical pipe */
    55% { opacity: 0.6; top: calc(35% - 3px); left: 75%; }
    60% { opacity: 0.8; top: calc(20% - 3px); left: 75%; }
    /* Move across top pipe */
    70% { opacity: 1; top: calc(20% - 3px); left: 50%; }
    80% { opacity: 0.8; top: calc(20% - 3px); left: 25%; }
    /* Move down vertical pipe */
    90% { opacity: 1; top: calc(35% - 3px); left: 25%; }
    95% { opacity: 0.8; top: calc(50% - 3px); left: 25%; }
    100% { opacity: 1; top: calc(50% - 3px); left: 15%; }
}
@keyframes junctionPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(14, 165, 233, 0.7); }
    50% { box-shadow: 0 0 25px rgba(14, 165, 233, 0.9); }
}

.junction {
    animation: junctionPulse 3s infinite;
}

#junction1 { animation-delay: 0s; }
#junction2 { animation-delay: 1s; }
#junction3 { animation-delay: 0.5s; }
#junction4 { animation-delay: 1.5s; }
    border: 1px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(4px);
.second-pulse {
    animation-delay: 6s;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border: 1px solid #06b6d4;
}
/* Anomaly Detection Visualization */
.anomaly-detection {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 240px;
    height: auto;
    max-height: 70%;
    overflow-y: auto;
    background: rgba(12, 74, 110, 0.9);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    opacity: 1;
    transform: none;
}

@keyframes showAnomaly {
    0%, 100% { opacity: 0; transform: translateY(-20px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
}

/* Map View */
.map-view {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #0c4a6e, #075985);
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.map-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    top: 40%;
    left: 60%;
    animation: pinPulse 2s infinite;
}

.map-pin::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map-ripple {
    position: absolute;
    top: 40%;
    left: 60%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ef4444;
    animation: ripple 2s infinite;
}

@keyframes pinPulse {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.2); }
}

@keyframes ripple {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 80px; height: 80px; opacity: 0; }
}
/* Notification Panel */
.notification-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.notification {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: white;
    opacity: 0;
    transform: translateX(-20px);
}

.notification i {
    font-size: 16px;
}

.sms {
    animation: notifyIn 0.5s forwards;
    animation-delay: 4s;
}

.whatsapp {
    animation: notifyIn 0.5s forwards;
    animation-delay: 4.5s;
    background: rgba(37, 211, 102, 0.2);
}

.dashboard {
    animation: notifyIn 0.5s forwards;
    animation-delay: 5s;
    background: rgba(14, 165, 233, 0.2);
}

@keyframes notifyIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* AI Analysis */
.ai-analysis {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.ai-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.prediction-meter {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 5px;
    overflow: hidden;
    position: relative;
}

.prediction-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0ea5e9, #ef4444);
    border-radius: 5px;
    animation: fillBar 2s forwards;
    animation-delay: 5.5s;
}

.prediction-label {
    color: white;
    font-size: 12px;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    animation-delay: 6s;
}

.action-required {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    animation-delay: 6.5s;
}

@keyframes fillBar {
    from { width: 0%; }
    to { width: 68%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Pipe Network Map */
.pipe-network-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.map-pipe {
    position: absolute;
    background: rgba(14, 165, 233, 0.6);
    z-index: 2;
}

.horizontal-map {
    width: 80%;
    height: 6px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.vertical-map {
    width: 6px;
    height: 60%;
    top: 20%;
    left: 60%;
    transform: translateX(-50%);
}

.breakage-point {
    position: absolute;
    width: 16px;
    height: 16px;
    background: rgba(239, 68, 68, 0.8);
    border-radius: 50%;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    z-index: 3;
    animation: breakagePulse 1s infinite;
}

.water-leak {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.8) 0%, rgba(14, 165, 233, 0) 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: leakPulse 2s infinite;
}

@keyframes breakagePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); background: rgba(239, 68, 68, 0.8); }
    50% { transform: translate(-50%, -50%) scale(1.3); background: rgba(239, 68, 68, 1); }
}

@keyframes leakPulse {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.3; transform: translate(-50%, -50%) scale(2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(3); }
}

/* WhatsApp Notification Enhancement */
.whatsapp {
    position: relative;
    animation: notifyIn 0.5s forwards, whatsappHighlight 3s infinite 5s;
    animation-delay: 4.5s;
    background: rgba(37, 211, 102, 0.2);
}

@keyframes whatsappHighlight {
    0%, 100% { background: rgba(37, 211, 102, 0.2); transform: scale(1); }
    50% { background: rgba(37, 211, 102, 0.5); transform: scale(1.05); }
}

.whatsapp::after {
    content: 'Maintenance Team Notified';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    animation-delay: 6s;
}
/* Flow Analysis */
.flow-analysis {
    margin-bottom: 15px;
}

.flow-chart {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    position: relative;
    margin-bottom: 5px;
    overflow: hidden;
}

.flow-line {
    position: absolute;
    height: 2px;
    background: #0ea5e9;
    top: 50%;
    transform: translateY(-50%);
}

.flow-line.normal {
    width: 100%;
    background: linear-gradient(90deg, 
        rgba(14, 165, 233, 0.5) 0%,
        rgba(14, 165, 233, 0.8) 50%,
        rgba(14, 165, 233, 0.5) 100%);
    animation: flowNormal 3s infinite linear;
    background-size: 50px 100%;
}

.flow-line.anomaly {
    width: 100%;
    background: linear-gradient(90deg, 
        rgba(239, 68, 68, 0.1) 0%,
        rgba(239, 68, 68, 0.8) 50%,
        rgba(239, 68, 68, 0.1) 100%);
    top: 60%;
    opacity: 0;
    animation: flowAnomaly 3s infinite linear 2s;
    background-size: 30px 100%;
}

.flow-indicator {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #0ea5e9;
    border-radius: 50%;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    animation: flowIndicator 3s infinite linear;
}

.detection-point {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ef4444;
    border-radius: 50%;
    top: 60%;
    left: 60%;
    transform: translate(-50%, -50%) scale(0);
    animation: detectionPoint 3s infinite 2s;
}

.flow-label {
    font-size: 12px;
    color: #ef4444;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.5s forwards 3s;
}

@keyframes flowNormal {
    0% { background-position: 0 0; }
    100% { background-position: 50px 0; }
}

@keyframes flowAnomaly {
    0% { opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { opacity: 0; }
}

@keyframes flowIndicator {
    0% { left: 0; }
    100% { left: 100%; }
}

@keyframes detectionPoint {
    0% { transform: translate(-50%, -50%) scale(0); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    10% { transform: translate(-50%, -50%) scale(1); }
    20% { transform: translate(-50%, -50%) scale(1.5); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    30% { transform: translate(-50%, -50%) scale(1); }
    90% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(0); }
}

/* AI Intervention Steps */
.ai-intervention {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.intervention-step {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 20px;
}

.intervention-step::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.intervention-step.active {
    color: white;
    background: rgba(14, 165, 233, 0.2);
    animation: stepPulse 2s infinite;
}

.intervention-step.active::before {
    background: #0ea5e9;
    box-shadow: 0 0 10px #0ea5e9;
}

@keyframes stepPulse {
    0%, 100% { background: rgba(14, 165, 233, 0.2); }
    50% { background: rgba(14, 165, 233, 0.4); }
}
/* Additional Mobile Styles */
@media (max-width: 480px) {
    .hero {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .water-animation {
        min-height: 250px;
    }
    
    .anomaly-detection {
        padding: 10px;
        font-size: 11px;
    }
    
    .map-view {
        height: 80px;
    }
    
    .flow-chart {
        height: 25px;
    }
    
    .intervention-step {
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .pipe-system {
        transform: scale(0.7);
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: white;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: white;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}