/* ============================================
   CSS VARIABLES - FLAMES.BLUE THEME
   ============================================ */
:root {
    --primary-color: #00a8ff;
    --secondary-color: #0097e6;
    --accent-color: #00d2ff;
    --flame-blue-1: #00a8ff;
    --flame-blue-2: #0097e6;
    --flame-blue-3: #0078d4;
    --flame-blue-4: #005fa3;
    --flame-blue-5: #004d82;
    --flame-cyan: #00d2ff;
    --flame-light: #5dade2;
    --text-dark: #0a1929;
    --text-light: #546e7a;
    --text-lighter: #78909c;
    --bg-light: #f0f7ff;
    --bg-white: #ffffff;
    --border-color: #b3d9ff;
    --shadow-sm: 0 2px 8px rgba(0, 168, 255, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 168, 255, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 168, 255, 0.4);
    --shadow-flame: 0 0 20px rgba(0, 210, 255, 0.6), 0 0 40px rgba(0, 168, 255, 0.4);
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo span {
    color: var(--text-dark);
}

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.nav-cta {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
}

/* Language Selector - Always visible in top bar */
.language-selector-top {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    z-index: 1001;
}

.language-selector {
    margin-right: 1rem;
    display: block !important;
    visibility: visible !important;
}

.language-switcher {
    display: flex !important;
    gap: 0.5rem;
    align-items: center;
    visibility: visible !important;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    min-width: 45px;
    display: flex !important;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {
    .language-switcher {
        gap: 0.3rem;
    }
    
    .lang-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        min-width: 40px;
    }
}

@media (max-width: 968px) {
    .language-selector-top {
        margin-right: 0.5rem;
    }
    
    .language-switcher {
        gap: 0.3rem;
    }
    
    .lang-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        min-width: 40px;
    }
}

@media (max-width: 768px) {
    .language-selector-top {
        order: -1;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .language-selector {
        margin-right: 0;
        margin-bottom: 1rem;
        order: -1;
        width: 100%;
    }
    
    .language-switcher {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .lang-btn {
        flex: 0 0 auto;
    }
}

.nav-link.nav-cta:hover {
    background: var(--secondary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    min-width: 250px;
    padding: 1rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 1rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.mega-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
    min-width: 600px;
    z-index: 1000;
}

.dropdown-item-with-sub {
    position: relative;
}

.dropdown-item-with-sub > .dropdown-link {
    pointer-events: auto;
    cursor: pointer;
}

.sub-dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    min-width: 220px;
    padding: 1rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition);
    margin-left: 1rem;
    z-index: 1001;
}

.dropdown-item-with-sub:hover .sub-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-arrow {
    float: right;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #001122 0%, #003366 25%, #005fa3 50%, #0097e6 75%, #00a8ff 100%);
    z-index: -2;
    animation: flameFlicker 3s ease-in-out infinite;
}

@keyframes flameFlicker {
    0%, 100% {
        filter: brightness(1) hue-rotate(0deg);
    }
    25% {
        filter: brightness(1.1) hue-rotate(5deg);
    }
    50% {
        filter: brightness(0.95) hue-rotate(-5deg);
    }
    75% {
        filter: brightness(1.05) hue-rotate(3deg);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 168, 255, 0.3) 50%, rgba(0, 95, 163, 0.6) 100%);
    z-index: -1;
    animation: flameGlow 4s ease-in-out infinite;
}

@keyframes flameGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.9;
    }
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 210, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 168, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 151, 230, 0.15) 0%, transparent 70%);
    background-size: 200% 200%;
    z-index: -1;
    animation: flameMove 8s ease-in-out infinite;
}

@keyframes flameMove {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 50% 50%;
    }
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: var(--flame-cyan);
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.8), 0 0 40px rgba(0, 168, 255, 0.5);
    animation: textFlame 3s ease-in-out infinite;
}

@keyframes textFlame {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 210, 255, 0.8), 0 0 40px rgba(0, 168, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 210, 255, 1), 0 0 60px rgba(0, 168, 255, 0.7), 0 0 80px rgba(0, 151, 230, 0.4);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pump-animation {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pump-icon {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Centrifugal Pump Animation */
.centrifugal-pump {
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pump-housing {
    width: 180px;
    height: 180px;
    border: 4px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
}

.pump-inlet {
    position: absolute;
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.pump-outlet {
    position: absolute;
    width: 50px;
    height: 25px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    bottom: 30px;
    right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
}

.pump-impeller {
    width: 120px;
    height: 120px;
    position: relative;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.impeller-blade {
    position: absolute;
    width: 8px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
    border-radius: 4px;
    top: 0;
    left: 50%;
    transform-origin: 50% 60px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.impeller-blade:nth-child(1) {
    transform: translateX(-50%) rotate(0deg);
}

.impeller-blade:nth-child(2) {
    transform: translateX(-50%) rotate(60deg);
}

.impeller-blade:nth-child(3) {
    transform: translateX(-50%) rotate(120deg);
}

.impeller-blade:nth-child(4) {
    transform: translateX(-50%) rotate(180deg);
}

.impeller-blade:nth-child(5) {
    transform: translateX(-50%) rotate(240deg);
}

.impeller-blade:nth-child(6) {
    transform: translateX(-50%) rotate(300deg);
}

.impeller-center {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 10px auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(10px) rotate(45deg);
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--flame-blue-1) 0%, var(--flame-blue-2) 50%, var(--flame-blue-3) 100%);
    color: white;
    box-shadow: var(--shadow-flame);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    background: linear-gradient(135deg, var(--flame-cyan) 0%, var(--flame-blue-1) 50%, var(--flame-blue-2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.8), 0 0 60px rgba(0, 168, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
}

.product-category-previews {
    margin-top: 3rem;
}

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

.product-category-preview-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: block;
}

.product-category-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.product-category-preview-image {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.product-category-preview-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-category-preview-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-category-preview-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

/* ============================================
   APPLICATIONS SECTION
   ============================================ */
.applications {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

.application-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.application-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.application-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    padding: 80px 20px;
}

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

.project-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #001122 0%, #003366 25%, #005fa3 50%, #0097e6 75%, #00a8ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.project-content {
    padding: 1.5rem;
}

.project-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pump-animation-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #001122 0%, #003366 25%, #005fa3 50%, #0097e6 75%, #00a8ff 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.pump-body {
    position: relative;
    width: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pump-cylinder {
    width: 120px;
    height: 180px;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.pump-piston {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    animation: pumpPiston 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes pumpPiston {
    0%, 100% {
        bottom: 0;
        height: 30px;
    }
    25% {
        bottom: 0;
        height: 30px;
    }
    50% {
        bottom: 150px;
        height: 30px;
    }
    75% {
        bottom: 150px;
        height: 30px;
    }
}

.pump-inlet {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.pump-outlet {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.water-flow {
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, 
        rgba(135, 206, 250, 0.8) 0%,
        rgba(135, 206, 250, 1) 50%,
        rgba(135, 206, 250, 0.8) 100%);
    position: absolute;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(135, 206, 250, 0.6);
}

.water-inlet {
    animation: waterIn 2s ease-in-out infinite;
}

.water-outlet {
    animation: waterOut 2s ease-in-out infinite;
}

@keyframes waterIn {
    0%, 25% {
        top: 0;
        opacity: 0.6;
    }
    50%, 75% {
        top: 60px;
        opacity: 1;
    }
    100% {
        top: 0;
        opacity: 0.6;
    }
}

@keyframes waterOut {
    0%, 25% {
        top: 60px;
        opacity: 0.6;
    }
    50%, 75% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 60px;
        opacity: 0.6;
    }
}

.pump-base {
    position: absolute;
    bottom: -20px;
    width: 160px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Water droplets effect */
.pump-animation-container::before,
.pump-animation-container::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: droplet 3s ease-in-out infinite;
}

.pump-animation-container::before {
    left: 20%;
    top: 30%;
    animation-delay: 0s;
}

.pump-animation-container::after {
    right: 20%;
    top: 70%;
    animation-delay: 1.5s;
}

@keyframes droplet {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
}

/* ============================================
   PWA INSTALL BANNER
   ============================================ */
.pwa-install-banner {
    background: linear-gradient(135deg, #001122 0%, #003366 25%, #005fa3 50%, #0097e6 75%, #00a8ff 100%);
    color: white;
    padding: 1.5rem 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block; /* Changed to block for testing - change back to 'none' for production */
    z-index: 999;
    width: 100%;
    margin-top: 70px; /* Space for fixed navbar */
}

.pwa-install-banner.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-banner-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
}

.pwa-banner-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.pwa-banner-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}

.pwa-qr-section {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.qr-code-container {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-code-container canvas {
    display: block;
    width: 150px;
    height: 150px;
}

.pwa-instructions {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.pwa-instructions ol {
    margin: 0;
    padding-left: 1.5rem;
    color: white;
    font-size: 0.9rem;
    line-height: 1.8;
}

.pwa-instructions li {
    margin-bottom: 0.5rem;
}

.pwa-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.pwa-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .pwa-banner-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pwa-qr-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .qr-code-container canvas {
        width: 120px;
        height: 120px;
    }
    
    .pwa-instructions {
        width: 100%;
    }
    
    .pwa-banner-text h3 {
        font-size: 1.2rem;
    }
    
    .pwa-banner-text p {
        font-size: 0.85rem;
    }
}

/* ============================================
   TEAM MEMBER SECTION
   ============================================ */
.team-member {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px solid var(--border-color);
}

.team-member-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.team-member-image {
    width: 100%;
    max-width: 300px;
}

.team-member-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.team-member-text h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-member-role {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.team-member-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .team-member-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-member-image {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 80px 20px;
}

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

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form-container {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   PRODUCT CATEGORY PAGE
   ============================================ */
.product-category-page {
    padding: 120px 20px 80px;
}

.breadcrumb {
    background: var(--bg-light);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================
   PRODUCT FILTERS
   ============================================ */
.product-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.product-card.hidden {
    display: none;
}

.product-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-content {
    padding: 1.5rem;
}

.product-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-card-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-card-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-card-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.btn-read-more {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-read-more:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-dark);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .mega-menu {
        min-width: 100%;
        grid-template-columns: 1fr;
    }

    .sub-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-left: 0;
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .product-category-previews-grid,
    .applications-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}
