/* AnySmart Website - Water Solutions Page CSS */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Root Variables - Matching AnySmart Theme */
:root {
    --primary-blue: #03a9f4;
    --light-gray: #e9e9e9;
    --dark-gray: #666666;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* Hero section styles are imported from the component */

/* ========================================
   INTRO SECTION
======================================== */
.intro-section {
    background: var(--white);
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.intro-text {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.intro-text h2 {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--dark-gray);
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -1px;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.intro-text p {
    font-size: 1.15rem;
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: center;
}

/* ========================================
   GALLERY SECTION
======================================== */
.gallery-section {
    background: var(--light-gray);
    padding: 100px 40px;
}

.gallery-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.gallery-header h2 {
    font-size: 3rem;
    font-weight: 300;
    color: var(--dark-gray);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gallery-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1;
}

/* ========================================
   LIGHTBOX MODAL
======================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary-blue);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid var(--white);
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    border-radius: 4px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .intro-text h2 {
        font-size: 2.8rem;
        white-space: normal;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .intro-section {
        padding: 80px 25px;
    }
    
    .intro-text h2 {
        font-size: 2.2rem;
    }
    
    .intro-text p {
        font-size: 1.05rem;
    }
    
    .gallery-section {
        padding: 60px 25px;
    }
    
    .gallery-header h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        gap: 15px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 40px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .intro-section {
        padding: 60px 15px;
    }
    
    .intro-text h2 {
        font-size: 1.8rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .gallery-section {
        padding: 40px 15px;
    }
    
    .gallery-header h2 {
        font-size: 1.6rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .gallery-item::after {
        content: '🔍';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 2rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .gallery-item:hover::after {
        opacity: 0.9;
    }
}