/* Hero Section */
.tech-hero {
    padding: 150px 5% 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.1), transparent 70%);
}

.tech-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.tech-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    letter-spacing: -1px;
}

.tech-hero h1 span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 0;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Process Flow Visualization */
.process-section {
    padding: 100px 5%;
    position: relative;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.5), rgba(30, 58, 95, 0.3));
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 70px;
    font-size: 1.15rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 6-Stage Process Flow */
.process-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

.process-stage {
    background: rgba(30, 58, 95, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.process-stage:nth-child(1) { animation-delay: 0.1s; }
.process-stage:nth-child(2) { animation-delay: 0.2s; }
.process-stage:nth-child(3) { animation-delay: 0.3s; }
.process-stage:nth-child(4) { animation-delay: 0.4s; }
.process-stage:nth-child(5) { animation-delay: 0.5s; }
.process-stage:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.process-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.process-stage:hover::before {
    left: 100%;
}

.process-stage:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    background: rgba(30, 58, 95, 0.3);
    border-color: var(--accent-cyan);
}

.stage-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.stage-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-light);
    font-weight: 600;
}

.stage-desc {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.stage-metric {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.metric-label {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
}

.metric-value {
    color: var(--text-light);
    font-weight: bold;
}

/* AI Neural Network Visualization */
.ai-section {
    padding: 120px 5%;
    background: rgba(10, 22, 40, 0.6);
    position: relative;
    overflow: hidden;
}

.ai-container {
    display: grid;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Neural Network Animation */
.neural-network {
    position: relative;
    height: 150px;
    margin-bottom: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-layer {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.network-layer:nth-child(1) { left: 0; }
.network-layer:nth-child(2) { left: 33%; }
.network-layer:nth-child(3) { left: 66%; }
.network-layer:nth-child(4) { right: 0; }

.neuron {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--accent-cyan), rgba(0, 212, 255, 0.3));
    border-radius: 50%;
    position: relative;
    animation: pulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.neuron::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    animation: ripple 3s ease-in-out infinite;
}

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

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.network-connection {
    position: absolute;
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: data-flow 2s linear infinite;
    transform-origin: left center;
}

@keyframes data-flow {
    0% {
        background-position: -150px 0;
    }
    100% {
        background-position: 150px 0;
    }
}

.ai-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 25px;
    font-weight: 700;
}

.ai-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.ai-features {
    display: grid;
    gap: 25px;
}

.ai-feature {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    align-items: start;
}

.ai-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 168, 204, 0.2));
    border: 2px solid var(--accent-cyan);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
}

.ai-feature:hover .ai-icon {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 168, 204, 0.3));
}

.ai-feature-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.ai-feature-content p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.ai-metrics {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.ai-metric {
    padding: 5px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Interactive Water Flow Simulation */
.simulation-section {
    padding: 120px 5%;
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.3), rgba(10, 22, 40, 0.5));
    position: relative;
}

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

.water-system {
    background: rgba(10, 22, 40, 0.7);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 30px;
    padding: 20px;
    position: relative;
    overflow: hidden;
   
}

.system-diagram {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.system-component {
    background: rgba(30, 58, 95, 0.5);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.system-component:hover {
    transform: scale(1.05);
    background: rgba(30, 58, 95, 0.7);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
}

.component-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.component-name {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.component-status {
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

/* Flowing Particles */
.water-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--accent-cyan), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: particle-flow 8s linear infinite;
}

@keyframes particle-flow {
    0% {
        left: -10px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 10px);
        opacity: 0;
    }
}

/* Specifications Grid */
.specs-section {
    padding: 100px 5%;
    background: rgba(10, 22, 40, 0.5);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.spec-card {
    background: rgba(30, 58, 95, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    background: rgba(30, 58, 95, 0.3);
}

.spec-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.spec-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-light);
    font-weight: 600;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    padding: 8px 0;
    color: var(--text-gray);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-value {
    color: var(--text-light);
    font-weight: 600;
}

/* Download Section */
.download-section {
    padding: 100px 5%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), transparent);
    text-align: center;
}

.download-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(30, 58, 95, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 25px;
    padding: 20px;
}

.download-form {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.download-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
}

/* Footer */
footer {
    padding: 60px 5% 40px;
    background: rgba(10, 22, 40, 0.9);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-brand h3::before {
    content: '💧';
    margin-right: 10px;
}

.footer-brand p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--text-gray);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .process-flow {
        grid-template-columns: 1fr;
    }

    .ai-container {
        grid-template-columns: 1fr;
    }

    .system-diagram {
        grid-template-columns: 1fr 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
