/* ========================================
   Irrigation Academy - Main Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(-45deg, #1e3a8a, #0ea5e9, #06b6d4, #0891b2);
    background-size: 400% 400%;
    animation: waterFlow 15s ease infinite;
    position: relative;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Water flowing animation */
@keyframes waterFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Water wave overlay effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    animation: wave 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes wave {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-50px) translateY(20px);
    }
}

/* Ensure content stays above background */
.header, .hero, section, .footer {
    position: relative;
    z-index: 1;
}

/* Typography - Professional Font System */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

h1 { 
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 { 
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.8px;
}

h3 { 
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

h4 { 
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: var(--text-dark);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

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

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

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

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

.btn-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.btn-link:hover {
    gap: 0.75rem;
}

/* Header & Navigation */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand .brand-logo {
    height: 52px;
    width: 52px;
    object-fit: cover;
    border-radius: 50%;
    background: #ffffff;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav-brand i {
    font-size: 1.75rem;
}

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

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.btn-docs,
.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-docs {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-docs:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

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

.modal-content {
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.modal-header h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.modal-header i {
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    color: var(--text-light);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: var(--bg-light);
}

/* Authentication Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
}

.input-with-icon input {
    padding-left: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--text-dark);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.auth-message {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    display: none;
}

.auth-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
    display: block;
}

.auth-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
    display: block;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: white;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.btn-social i {
    font-size: 1.25rem;
}

.btn-google i {
    color: #DB4437;
}

.btn-facebook i {
    color: #4267B2;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.field-hint {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Documentation Modal Styles */
.docs-modal {
    max-width: 1200px;
    max-height: 90vh;
}

.docs-body {
    display: flex;
    padding: 0;
    max-height: calc(90vh - 200px);
}

.docs-sidebar {
    width: 280px;
    background: var(--bg-light);
    border-right: 2px solid var(--border-color);
    padding: 1.5rem;
    overflow-y: auto;
}

.docs-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.docs-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.docs-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.docs-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.docs-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.docs-nav-item i {
    color: var(--text-light);
    font-size: 1.1rem;
}

.docs-nav-item:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.docs-nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: transparent;
}

.docs-nav-item.active i {
    color: white;
}

.docs-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.docs-section {
    display: none;
}

.docs-section.active {
    display: block;
}

.docs-section h3 {
    color: var(--text-dark);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.docs-section h4 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.docs-section h5 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.docs-section p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.docs-section ul,
.docs-section ol {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

.docs-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.docs-section a:hover {
    text-decoration: underline;
}

.docs-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.docs-feature {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.docs-feature:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.docs-feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.docs-feature h5 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.docs-feature p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.docs-note {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.docs-note i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.docs-note.info {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e3a8a;
}

.docs-note.info i {
    color: #3b82f6;
}

.docs-note.warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #78350f;
}

.docs-note.warning i {
    color: #f59e0b;
}

.docs-note.success {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.docs-note.success i {
    color: #10b981;
}

.docs-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.docs-checklist label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    cursor: pointer;
}

.docs-checklist input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.docs-table th,
.docs-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.docs-table th {
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
}

.docs-table td {
    color: var(--text-light);
}

.docs-table tbody tr:hover {
    background: var(--bg-light);
}

.docs-accordion {
    margin: 1.5rem 0;
}

.docs-accordion-item {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.docs-accordion-item h4 {
    margin: 0;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.3s ease;
}

.docs-accordion-item h4:hover {
    background: var(--border-color);
}

.docs-accordion-content {
    padding: 1.25rem;
    display: none;
}

.docs-accordion-item.active .docs-accordion-content {
    display: block;
}

.docs-section pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.docs-section code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.docs-footer {
    justify-content: space-between;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: 
        linear-gradient(135deg, rgba(6, 182, 212, 0.9) 0%, rgba(37, 99, 235, 0.9) 50%, rgba(16, 185, 129, 0.9) 100%),
        linear-gradient(45deg, #0891b2 0%, #06b6d4 25%, #0ea5e9 50%, #06b6d4 75%, #0891b2 100%);
    background-size: 400% 400%, 200% 200%;
    animation: waterFlow 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 35%);
    animation: bubbleFloat 10s ease-in-out infinite;
}

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

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 100px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 100px
        );
    animation: waterRipple 20s linear infinite;
}

@keyframes waterRipple {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(100px) translateY(100px);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

/* Water Droplets Animation */
.water-droplets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.droplet {
    position: absolute;
    bottom: -50px;
    width: 3px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 50%;
    animation: dropletFall linear infinite;
    opacity: 0.4;
}

.droplet:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.droplet:nth-child(2) {
    left: 25%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.droplet:nth-child(3) {
    left: 40%;
    animation-duration: 9s;
    animation-delay: 2s;
}

.droplet:nth-child(4) {
    left: 55%;
    animation-duration: 11s;
    animation-delay: 0.5s;
}

.droplet:nth-child(5) {
    left: 70%;
    animation-duration: 8.5s;
    animation-delay: 1.5s;
}

.droplet:nth-child(6) {
    left: 85%;
    animation-duration: 10.5s;
    animation-delay: 3s;
}

.droplet:nth-child(7) {
    left: 15%;
    animation-duration: 9.5s;
    animation-delay: 2.5s;
}

.droplet:nth-child(8) {
    left: 65%;
    animation-duration: 8.8s;
    animation-delay: 4s;
}

@keyframes dropletFall {
    0% {
        bottom: 100%;
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: -50px;
        opacity: 0;
    }
}

/* Water Waves at Bottom */
.water-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 1;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: waveMotion 8s ease-in-out infinite;
}

.wave2 {
    animation: waveMotion 10s ease-in-out infinite reverse;
}

.wave3 {
    animation: waveMotion 12s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 200px;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 2rem;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content > :not(.hero-logo) {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

/* Search Section */
.search-section {
    background-color: var(--bg-light);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-md);
}

.search-box i {
    color: var(--text-light);
    margin-right: 0.75rem;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
}

/* About Section - Who We Are */
.about-section {
    padding: 5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-xl);
}

/* Mission Hero with Water Background */
.mission-hero {
    background: linear-gradient(-45deg, #1e3a8a, #0ea5e9, #06b6d4, #0891b2);
    background-size: 400% 400%;
    animation: waterFlow 15s ease infinite;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Water overlay for mission section */
.mission-water-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.05) 2px,
        rgba(255, 255, 255, 0.05) 4px
    );
    animation: wave 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Mission hero content positioning */
.mission-hero .about-hero-content {
    position: relative;
    z-index: 2;
}

/* Mission Logo Styling */
.mission-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

/* Mission water waves at bottom */
.mission-water-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    overflow: hidden;
}

.mission-water-waves .wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: waveMotion 8s ease-in-out infinite;
}

.mission-water-waves .wave2 {
    animation: waveMotion 10s ease-in-out infinite reverse;
    opacity: 0.7;
}

@keyframes waveMotion {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25px);
    }
}

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-icon-large {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.about-icon-large i {
    font-size: 3.5rem;
    color: white;
}

.about-hero h3 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.mission-text {
    color: white;
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.95;
}

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

.about-card {
    background-color: var(--bg-light);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.about-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-card-icon i {
    font-size: 2rem;
    color: white;
}

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

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

.about-list {
    list-style: none;
    margin-top: 1rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.6;
}

.about-list i {
    color: var(--secondary-color);
    flex-shrink: 0;
    font-size: 1.1rem;
}

.about-list strong {
    color: var(--text-dark);
}

/* Values Section */
.values-section {
    margin-bottom: 4rem;
}

.values-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

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

.value-card {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    font-size: 2.5rem;
    color: white;
}

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

.value-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Team Section */
.team-section {
    background-color: var(--bg-light);
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
}

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

.team-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

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

.team-member {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary-color);
    overflow: hidden;
}

.team-photo i {
    font-size: 4rem;
    color: var(--primary-color);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

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

.team-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.expertise-tag {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
}

/* Impact Section */
.impact-section {
    margin-bottom: 4rem;
}

.impact-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.impact-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

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

.impact-stat {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.impact-stat:hover {
    transform: scale(1.05);
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.impact-label {
    color: white;
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.impact-desc {
    color: white;
    font-size: 0.875rem;
    opacity: 0.85;
    font-weight: 400;
    margin: 0;
}

/* About CTA */
.about-cta {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid var(--primary-color);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
}

.about-cta h3 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-cta p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-buttons .btn-secondary {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

.cta-buttons .btn-secondary:hover {
    background-color: #0891b2;
}

/* Section Titles */
.section-title {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

/* Methods Section */
.methods-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

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

.method-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

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

.method-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.method-icon i {
    font-size: 2.5rem;
    color: white;
}

.method-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.method-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.method-benefits {
    list-style: none;
    margin-bottom: 1.5rem;
}

.method-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.method-benefits i {
    color: var(--secondary-color);
}

/* Tutorials Section */
.tutorials-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.tutorial-block {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.tutorial-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tutorial-header i {
    font-size: 2.5rem;
}

.tutorial-header h3 {
    margin: 0;
    font-size: 1.75rem;
}

.tutorial-content {
    padding: 2rem;
}

.tutorial-intro {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.tutorial-intro strong {
    color: var(--primary-color);
}

.steps-container {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.step-content ul {
    list-style-position: inside;
    color: var(--text-light);
}

.step-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.tutorial-tips {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.tutorial-tips h4 {
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tutorial-tips i {
    color: #f59e0b;
}

.tutorial-tips ul {
    list-style-position: inside;
    color: #78350f;
}

.tutorial-tips li {
    margin-bottom: 0.5rem;
}

/* Video Tutorials Section */
.video-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.video-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background-color: white;
    color: var(--text-dark);
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn i {
    font-size: 1rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

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

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(6, 182, 212, 0.9));
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder i {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-card:hover .video-placeholder i {
    transform: scale(1.2);
    opacity: 1;
}

.video-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.video-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-beginner {
    background-color: #10b981;
    color: white;
}

.badge-intermediate {
    background-color: #f59e0b;
    color: white;
}

.badge-advanced {
    background-color: #ef4444;
    color: white;
}

.video-content {
    padding: 1.5rem;
}

.video-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.video-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.video-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-meta i {
    color: var(--primary-color);
}

.video-play-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.video-info-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 1rem;
    padding: 2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 2rem;
    color: white;
}

.info-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-content p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.info-content code {
    display: block;
    background-color: #1e293b;
    color: #10b981;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    margin-top: 0.5rem;
}

/* Video card filtering */
.video-card.hidden {
    display: none;
}

/* Hydraulics Section */
.hydraulics-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.hydraulics-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    color: white;
}

.intro-content h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefits-list {
    list-style: none;
    margin-top: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.benefits-list i {
    color: #10b981;
    margin-top: 0.3rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.subsection-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin: 3rem 0 2rem;
}

/* Concepts Grid */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.concept-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.concept-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.concept-icon i {
    font-size: 2rem;
    color: white;
}

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

.concept-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.formula-box {
    background-color: #f0f9ff;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Principles Section */
.principles-section {
    margin-bottom: 4rem;
}

.principle-block {
    background-color: white;
    border-radius: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.principle-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.principle-number {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.principle-header h4 {
    margin: 0;
    font-size: 1.5rem;
}

.principle-content {
    padding: 2rem;
}

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

.principle-content ul {
    margin-left: 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.formula-display {
    background-color: #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.formula-title {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.formula-math {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.formula-legend {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.8;
}

.example-box {
    background-color: #ecfdf5;
    border-left: 4px solid #10b981;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 0.5rem;
}

.example-box strong {
    color: #065f46;
}

.c-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.c-value-item {
    background-color: #f0f9ff;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 2px solid var(--primary-color);
}

/* Calculators Grid */
.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.calculator-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.calculator-card:hover {
    box-shadow: var(--shadow-xl);
}

.calculator-header {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calculator-header i {
    font-size: 1.5rem;
}

.calculator-header h4 {
    margin: 0;
    font-size: 1.25rem;
}

.calculator-body {
    padding: 1.5rem;
}

.calculator-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.input-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calc-btn {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.calc-result {
    margin-top: 1.5rem;
    display: none;
}

.calc-result.active {
    display: block;
}

.result-success {
    background-color: #ecfdf5;
    border: 2px solid #10b981;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.result-success h5 {
    color: #065f46;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-values {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #d1fae5;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    color: #065f46;
}

.result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #047857;
}

.result-status {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
}

.result-status.success {
    background-color: #d1fae5;
    color: #065f46;
}

.result-status.warning {
    background-color: #fef3c7;
    color: #92400e;
}

.result-note {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.result-warning {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.result-error {
    background-color: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: #991b1b;
}

.velocity-guide {
    background-color: #f0f9ff;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Pipe Sizing Section */
.pipe-sizing-section {
    background-color: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
}

.intro-text {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.sizing-table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

.sizing-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: var(--shadow-sm);
}

.sizing-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.sizing-table th,
.sizing-table td {
    padding: 1rem;
    text-align: left;
}

.sizing-table th {
    font-weight: 600;
}

.sizing-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.sizing-table tbody tr:hover {
    background-color: #f9fafb;
}

.sizing-tips {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.sizing-tips h4 {
    color: #92400e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sizing-tips ul {
    list-style: none;
    color: #78350f;
    line-height: 2;
}

.sizing-tips li {
    margin-bottom: 0.5rem;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.application-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.application-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
}

.application-card h4 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.application-card ul {
    list-style: none;
    color: var(--text-light);
    line-height: 1.8;
}

.application-card li::before {
    content: "→";
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-weight: 700;
}

/* Takeaways Section */
.takeaways-section {
    background-color: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
}

.takeaways-section h3 {
    color: var(--text-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
}

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

.takeaway-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.takeaway-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

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

.takeaway-item strong {
    color: var(--text-dark);
}

/* Hydraulics Resources */
.hydraulics-resources {
    margin-top: 4rem;
}

.hydraulics-resources h3 {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
}

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

.resource-link-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.resource-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.resource-link-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-link-card h4 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.resource-link-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Best Practices Section */
.best-practices-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

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

.practice-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.practice-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.practice-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

/* Maintenance Section */
.maintenance-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.maintenance-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.maintenance-item {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
}

.maintenance-period {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 0.5rem;
}

.maintenance-period i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.maintenance-period h3 {
    margin: 0;
    font-size: 1.5rem;
}

.maintenance-tasks h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.maintenance-tasks ul {
    list-style-position: inside;
    color: var(--text-light);
}

.maintenance-tasks li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.maintenance-tasks strong {
    color: var(--primary-color);
}

.maintenance-troubleshooting {
    margin-top: 4rem;
}

.maintenance-troubleshooting h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.problem-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid #ef4444;
}

.problem-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.problem-card h4 i {
    color: #ef4444;
}

.problem-card p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Conservation Section */
.conservation-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

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

.stat-card {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.95;
}

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

.conservation-card {
    background-color: var(--bg-light);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.conservation-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.conservation-icon i {
    font-size: 2rem;
    color: white;
}

.conservation-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.conservation-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.conservation-details {
    margin-top: 1rem;
}

.conservation-details strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.conservation-details ul {
    list-style-position: inside;
    color: var(--text-light);
}

.conservation-details li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.conservation-calculator {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 1rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.conservation-calculator h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.conservation-calculator > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.savings-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    display: none;
}

.savings-result.active {
    display: block;
}

/* Resources Section */
.resources-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

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

.resource-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.resource-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.resource-card ul {
    list-style: none;
}

.resource-card li {
    margin-bottom: 0.75rem;
}

.resource-card a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.resource-card a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.resource-card a::before {
    content: '→';
    color: var(--primary-color);
}

.faq-section {
    margin-top: 4rem;
}

.faq-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.faq-item {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0f2fe 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-form-wrapper h3 i {
    color: var(--primary-color);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
    display: block;
}

/* Contact Info Wrapper */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-box {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.contact-info-box h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info-box h3 i {
    color: var(--primary-color);
}

.contact-info-box > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.25rem;
}

.contact-text h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-text p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.contact-social h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-social .social-links {
    display: flex;
    gap: 1rem;
}

.contact-social .social-links a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-social .social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Contact Map */
.contact-map {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
}

.map-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.map-placeholder small {
    font-size: 0.85rem;
}

/* Contact FAQ Banner */
.contact-faq-banner {
    margin-top: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.faq-banner-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
}

.faq-banner-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-banner-icon i {
    font-size: 2rem;
}

.faq-banner-text {
    flex: 1;
}

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

.faq-banner-text p {
    opacity: 0.95;
    font-size: 1rem;
}

.faq-banner-content .btn {
    background: white;
    color: var(--primary-color);
    border: none;
    flex-shrink: 0;
}

.faq-banner-content .btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    filter: brightness(1.1);
}

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

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        align-items: flex-start;
    }

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

    .mobile-menu-toggle {
        display: block;
    }

    .nav-actions {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        flex-direction: column;
        z-index: 999;
        margin-left: 0;
    }

    .btn-docs span,
    .btn-login span {
        display: none;
    }

    .btn-docs,
    .btn-login {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        box-shadow: var(--shadow-lg);
    }

    .modal-content {
        max-width: 95%;
        margin: 1rem;
    }

    .docs-modal {
        max-width: 95%;
    }

    .docs-body {
        flex-direction: column;
    }

    .docs-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        max-height: 200px;
    }

    .docs-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
    }

    .docs-nav-item {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }

    .docs-feature-grid {
        grid-template-columns: 1fr;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .auth-footer {
        font-size: 0.9rem;
    }


    .methods-grid,
    .practices-grid,
    .conservation-tips-grid,
    .resources-grid,
    .video-grid,
    .faq-grid,
    .troubleshooting-grid,
    .concepts-grid,
    .calculators-grid,
    .applications-grid,
    .takeaways-grid,
    .resources-row,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .faq-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .faq-banner-icon {
        order: -1;
    }

    .contact-form-wrapper,
    .contact-info-box {
        padding: 1.5rem;
    }

    .maintenance-item {
        grid-template-columns: 1fr;
    }

    .maintenance-period {
        padding: 1rem;
    }

    .hero {
        height: 500px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .step {
        flex-direction: column;
    }

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

    .video-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .video-info-box {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-icon {
        margin: 0 auto;
    }

    .about-hero {
        padding: 3rem 1.5rem;
    }

    .about-hero h3 {
        font-size: 2rem;
    }

    .mission-text {
        font-size: 1.1rem;
    }

    .mission-hero {
        min-height: 350px;
        padding: 2.5rem 1.5rem;
    }

    .mission-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }

    .mission-hero h3 {
        font-size: 2rem;
    }

    .mission-water-waves {
        height: 80px;
    }

    .about-content-grid,
    .values-grid,
    .team-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .team-section {
        padding: 3rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .hydraulics-intro {
        padding: 2rem 1.5rem;
    }

    .intro-content h3 {
        font-size: 1.5rem;
    }

    .subsection-title {
        font-size: 1.5rem;
    }

    .nav-brand .brand-logo {
        height: 48px;
        width: 48px;
    }

    .hero-logo {
        max-width: 160px;
        width: 160px;
        height: 160px;
    }

    .footer-logo {
        width: 95px;
        height: 95px;
    }

    .formula-math {
        font-size: 1.2rem;
    }

    .sizing-table-container {
        overflow-x: auto;
    }

    .sizing-table {
        font-size: 0.85rem;
    }

    .sizing-table th,
    .sizing-table td {
        padding: 0.75rem 0.5rem;
    }

    .pipe-sizing-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    h2 {
        font-size: 1.5rem;
    }

    .tutorial-header {
        flex-direction: column;
        text-align: center;
    }

    .conservation-calculator {
        padding: 2rem 1.5rem;
    }
}

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

.method-card,
.practice-card,
.tutorial-block,
.conservation-card,
.resource-card {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    .header,
    .hero,
    .search-section,
    .footer {
        display: none;
    }

    .tutorial-block {
        page-break-inside: avoid;
    }
}