/* Custom CSS for Idraulico Green */

:root {
    --primary-green: #28a745;
    --secondary-green: #20c997;
    --dark-green: #155724;
    --light-green: #d4edda;
    --water-blue: #17a2b8;
    --dark-blue: #0c5460;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-dark) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    color: var(--gray-dark) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--water-blue) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.8) 0%, rgba(23, 162, 184, 0.8) 100%);
}

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

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

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-features {
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: white;
}

.feature-item i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    width: 30px;
}

.feature-item span {
    font-weight: 500;
}

/* Logo Section */
.logo-section {
    background: white;
    padding: 100px 0 60px 0;
    margin-top: 80px; /* Account for fixed navbar */
}

.business-logo {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.business-logo:hover {
    transform: scale(1.02);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    border-radius: 2px;
    margin-bottom: 2rem;
}

/* About Section */
#about {
    padding: 80px 0;
}

.about-content .lead {
    font-size: 1.1rem;
    color: var(--gray-medium);
}

.about-features .feature-item {
    color: var(--gray-dark);
    font-weight: 500;
}

.about-features .feature-item i {
    font-size: 1.2rem;
    color: var(--primary-green);
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

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

/* Services Section */
#services {
    padding: 80px 0;
    background: var(--gray-light);
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.service-card.emergency {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
}

.service-card.emergency h4,
.service-card.emergency p {
    color: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card.emergency .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

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

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.service-card p {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
}

.service-card.emergency .service-list li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.service-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.service-card.emergency .service-list li:before {
    color: white;
}

.emergency-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.emergency-badge i {
    margin-right: 0.5rem;
}

/* Gallery Section */
#gallery {
    padding: 80px 0;
    background: var(--gray-light);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(23, 162, 184, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    padding: 1rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Contact Section */
#contact {
    padding: 80px 0;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

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

.contact-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.contact-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

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

.contact-text {
    color: var(--gray-medium);
    margin-bottom: 0;
}

/* Social Media Links */
.social-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #1877F2;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.social-link:hover {
    background: #166FE5;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.social-link i {
    font-size: 1.2rem;
    margin-right: 8px;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.contact-form .btn {
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Footer */
.footer {
    background: var(--gray-dark) !important;
    padding: 3rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-contact .btn {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .navbar-nav .nav-link.btn {
        margin-top: 1rem;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 0.5rem 0;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .hero-features .feature-item {
        justify-content: center;
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

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

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

/* Smooth transitions for all interactive elements */
a, button, .btn, .service-card, .contact-info {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}
