/* Base Styles */
:root {
    --primary: #0c4d6d;
    --secondary: #80b529;
    --accent: #1e97e6;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: #edfbe2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0%;
    transform: translateX(0%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

p {
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #6a9a22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.btn-primary:hover {
    background-color: #093a52;
}

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

.btn-accent:hover {
    background-color: #1a86d0;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px 15px 15px;
}

.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 90px; /* Adjust this value */
    width: auto; /* Maintains aspect ratio */
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}
/* Navigation Active State */
nav ul li a.nav-link.active {
    color: #80b529 !important;
    position: relative;
}

/* Optional: Add an underline indicator for active state */
nav ul li a.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #80b529;
    border-radius: 2px;
}

/* Ensure the hover state doesn't override active state */
nav ul li a.nav-link.active:hover {
    color: #80b529 !important;
}

/* If you want to keep the existing hover color for non-active items */
nav ul li a.nav-link:not(.active):hover {
    color: var(--secondary);
}

/* Hero Section - Desktop Background */
.hero {
    background: linear-gradient(rgba(12, 77, 109, 0.85), rgba(12, 77, 109, 0.9)), url('../images/slide1-mobile.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 180px 0 180px;
    margin-top: 0px;
    position: relative;
}

/* Mobile Background Image */
@media (max-width: 768px) {
    .hero {
        background: linear-gradient(rgba(12, 77, 109, 0.85), rgba(12, 77, 109, 0.9)), url('../images/slide1-mobile.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: scroll; /* Remove fixed attachment on mobile */
    }
    
    /* Fallback if mobile image doesn't exist */
    .hero {
        background: linear-gradient(rgba(12, 77, 109, 0.85), rgba(12, 77, 109, 0.9)), 
                    url('../images/slide1-mobile.jpg');
        background-size: cover;
        background-position: center;
    }
}

/* Tablet Background Image */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        background: linear-gradient(rgba(12, 77, 109, 0.85), rgba(12, 77, 109, 0.9)), 
                    url('../images/slide1-tablet.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }
    
    /* Fallback if tablet image doesn't exist */
    .hero {
        background: linear-gradient(rgba(12, 77, 109, 0.85), rgba(12, 77, 109, 0.9)), 
                    url('../images/slide1.jpg');
        background-size: cover;
        background-position: center;
    }
}

/* Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background: linear-gradient(rgba(12, 77, 109, 0.85), rgba(12, 77, 109, 0.9)), 
                    url('../images/slide1@2x.jpg');
        background-size: cover;
        background-position: center;
    }
    
    @media (max-width: 768px) {
        .hero {
            background: linear-gradient(rgba(12, 77, 109, 0.85), rgba(12, 77, 109, 0.9)), 
                        url('../images/slide1-mobile.jpg');
            background-size: cover;
            background-position: center;
        }
    }
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about {
    background-color: #EDFBE2;
    padding: 124px 0 124px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.services {
    background-color: #f8f9fa;
}

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

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    background-color: var(--primary);
    color: white;
    font-size: 2.5rem;
    padding: 30px;
    text-align: center;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.service-list {
    list-style: none;
    margin-top: 20px;
}

.service-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

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

/* Why Choose Us Section */
.why-choose-us {
    background-color: white;
}

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

.feature {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

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

.feature:hover h3,
.feature:hover p {
    color: white;
}

.feature i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

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

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

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--secondary);
}

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

/* Page Sections */
.page-section {
    display: none;
    padding: 124px 0 80px;
}

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

/* Map Section */
.map-section {
    background-color: white;
    padding: 80px 0;
}

.map-container {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

/* Advanced WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-toggle {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-toggle:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.whatsapp-chat {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.whatsapp-chat.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-chat-header {
    background: #25d366;
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.whatsapp-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.whatsapp-info p {
    margin: 2px 0 0 0;
    font-size: 11px;
    opacity: 0.9;
}

.whatsapp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.whatsapp-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.whatsapp-chat-body {
    padding: 15px;
}

.whatsapp-message {
    background: #f1f1f1;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.whatsapp-message p {
    margin: 0;
    font-size: 13px;
    color: #333;
}

.whatsapp-chat-button {
    display: block;
    background: #25d366;
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 0 0 15px 15px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.whatsapp-chat-button:hover {
    background: #128c7e;
    color: white;
}

/* Gallery Section */
.gallery-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--gray);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
}

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

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    aspect-ratio: 4/3;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(12, 77, 109, 0.9));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-overlay h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
}

.lightbox-caption h3 {
    color: white;
    margin-bottom: 5px;
}

.lightbox-caption p {
    margin: 0;
    opacity: 0.8;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    z-index: 2001;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    color: var(--secondary);
}

/* Gallery Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .gallery-filter {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
    }
    
    .lightbox-close {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
}
/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-toggle {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .whatsapp-chat {
        width: 280px;
        right: -10px;
    }
}

/* WhatsApp Pulse Animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-toggle {
    animation: whatsapp-pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .contact-container {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 30px;
    }
    
    nav ul li {
        margin: 0 0 20px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    /* Mobile Hero Text Adjustments */
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 15px;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-btns .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}