/* =========================================
   MODERN STYLES FOR AGUA TECHNIQUE
   ========================================= */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

/* =========================================
   ROOT VARIABLES - Modern Color Scheme
   ========================================= */
:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --secondary: #00a86b;
    --accent: #ff6b35;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* =========================================
   GLOBAL STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--dark);
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    overflow-x: hidden;
}

p {
    text-align: left;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

a:hover,
a:focus {
    color: var(--primary-dark);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-brand img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

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

.navigation {
    padding: 1rem 0;
}

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

.nav-menu > li > a {
    font-weight: 500;
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1rem;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu > li > a:hover::after,
.nav-menu > li.active > a::after {
    width: calc(100% - 2rem);
}

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

.nav-dropdown {
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 200px;
}

.nav-dropdown li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.nav-dropdown li a:hover {
    background: var(--light);
    border-left-color: var(--primary);
    padding-left: 1.75rem;
}

/* =========================================
   BANNER SECTION
   ========================================= */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.banner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.banner-round {
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

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

.banner-round img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* =========================================
   FEATURES/SERVICES HIERARCHY
   ========================================= */
.features {
    padding: 4rem 2rem;
    background: var(--white);
}

.hierarchy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

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

.second-level {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.rectangle {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.rectangle:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 168, 107, 0.05) 100%);
}

.rectangle img {
    height: 80px;
    width: auto;
    transition: var(--transition);
    object-fit: contain;
}

.rectangle:hover img {
    transform: scale(1.15);
}

.rectangle a {
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-decoration: none;
}

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

/* =========================================
   PRODUCTS SECTION
   ========================================= */
.products-block {
    padding: 4rem 2rem;
    background: var(--light);
}

.head-title {
    text-align: center;
    margin-bottom: 3rem;
}

.head-title h2 {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.head-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

.product-item {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.product-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.btn-learn-more {
    align-self: flex-start;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.btn-learn-more:hover {
    border-bottom-color: var(--primary);
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-cont {
    padding: 3rem 0;
    background: var(--white);
}

.about-details {
    margin-bottom: 2rem;
}

.about-details h2 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    line-height: 1.3;
}

.about-details p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.image-box {
    margin-top: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

/* =========================================
   FORMS
   ========================================= */
#ContactForm {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

#ContactForm label {
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

#ContactForm input,
#ContactForm select,
#ContactForm textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 2px solid var(--gray-light);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

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

#ContactForm textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

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

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

.footer-content {
    margin-bottom: 2rem;
}

.footer h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

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

.social-links li {
    list-style: none;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.foot-copyright a {
    color: var(--primary);
}

.foot-copyright a:hover {
    color: var(--secondary);
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.ptb-20 { padding-top: 20px; padding-bottom: 20px; }
.mb-3 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 3rem !important; }

.theme-col-1 { color: var(--primary); }

.list {
    margin-bottom: 1.5rem;
    padding: 0;
    list-style: none;
}

.list li {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--gray);
}

.list li:before {
    content: "✓";
    font-weight: bold;
    color: var(--secondary);
    font-size: 1.2rem;
    position: absolute;
    left: -1.5rem;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .banner {
        height: 300px;
    }

    .circle {
        width: 120px;
        height: 120px;
        font-size: 1.1rem;
    }

    .second-level {
        grid-template-columns: 1fr;
    }

    .products-block {
        padding: 2rem 1rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    
    body {
        font-size: 14px;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .banner {
        height: 200px;
    }

    .head-title h2 {
        font-size: 1.3rem;
    }

    .rectangle {
        padding: 1.5rem;
    }
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* =========================================
   SCROLL TO TOP BUTTON
   ========================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.3);
}
