/* Global Styles */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --navbar-height: 50px; /* Height of navbar including padding */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    padding: 0.2rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Mobile Menu Dividers */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem !important;
    }
}

/* Section Padding for Fixed Navbar */
section {
    padding-top: var(--navbar-height);
    scroll-margin-top: var(--navbar-height);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                /* url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); */
                url('./image2.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: white;
    padding-top: calc(var(--navbar-height) + 2rem); /* Extra padding for hero section */
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    color: var(--secondary-color);
}

/* Service Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: #666;
    margin-bottom: 1.5rem;
}

.card .btn {
    width: 100%;
    margin-top: auto;
}

/* Pricing Cards */
.pricing-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.price span {
    font-size: 1rem;
    color: var(--text-color);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #ffc107;
}

/* About Section */
.trust-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
}

/* Contact Form */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background-color: #1e8449;
    border-color: #1e8449;
    color: white;
}

.btn-outline-success {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-success:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Custom Success Colors - Override Bootstrap */
.text-success {
    color: var(--secondary-color) !important;
}

.bg-success {
    background-color: var(--secondary-color) !important;
}

.border-success {
    border-color: var(--secondary-color) !important;
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

footer h5 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

footer .list-unstyled a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

footer .list-unstyled a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.social-icons a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color) !important;
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 100px 0;
    }

    .pricing-card.featured {
        transform: none;
    }
    
    /* Add padding for small screens */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Additional padding for sections on mobile */
    section {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Ensure cards don't touch screen edges */
    .card {
        margin-left: 5px;
        margin-right: 5px;
    }
    
    /* Feature cards spacing */
    .feature-card {
        margin-left: 5px;
        margin-right: 5px;
    }
}

/* Utility Classes */
.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Form Validation Styles */
.was-validated .form-control:valid {
    border-color: var(--secondary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2327ae60' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Add a small tooltip */
.whatsapp-btn::before {
    content: "Chat with us";
    position: absolute;
    right: 70px;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 80px;
        right: 20px;
    }
    
    .whatsapp-btn::before {
        display: none;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Service Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: var(--secondary-color);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-body h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.modal-body ul, .modal-body ol {
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
    background-color: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.modal-footer .btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(39, 174, 96, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-content {
    text-align: center;
    color: white;
    padding: 1rem;
}

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

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

/* Gallery responsive */
@media (max-width: 768px) {
    .gallery-item img {
        height: 200px;
    }
    
    .gallery-content h5 {
        font-size: 1rem;
    }
    
    .gallery-content p {
        font-size: 0.8rem;
    }
}

/* Gallery Modal Styles */
#galleryModal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

#galleryModal .modal-header {
    background: linear-gradient(135deg, var(--secondary-color), #1e8449);
    color: white;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    padding: 1.5rem 2rem;
    position: relative;
}

#galleryModal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    border-radius: 20px 20px 0 0;
}

#galleryModal .modal-title {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

#galleryModal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

#galleryModal .modal-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

#galleryModal .modal-body {
    padding: 0;
    position: relative;
    background: #f8f9fa;
}

#galleryModal .modal-body img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
}

#galleryModal .modal-body img:hover {
    transform: scale(1.02);
}

#galleryModal .modal-body .content-wrapper {
    padding: 2rem;
    background: white;
    position: relative;
}

#galleryModal .modal-body .content-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

#galleryModal .modal-body h5 {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

#galleryModal .modal-body h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    border-radius: 2px;
}

#galleryModal .modal-body p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 0;
    font-weight: 400;
}

#galleryModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 0 0 20px 20px;
}

#galleryModal .modal-footer .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

#galleryModal .modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#galleryModal .modal-footer .btn-success {
    background: linear-gradient(135deg, var(--secondary-color), #1e8449);
    border: none;
    color: white;
}

#galleryModal .modal-footer .btn-success:hover {
    background: linear-gradient(135deg, #1e8449, var(--secondary-color));
}

/* Modal Animation Enhancement */
#galleryModal.fade .modal-dialog {
    transform: scale(0.7) translateY(-50px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#galleryModal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Responsive Gallery Modal */
@media (max-width: 768px) {
    #galleryModal .modal-body img {
        height: 250px;
    }
    
    #galleryModal .modal-body .content-wrapper {
        padding: 1.5rem;
    }
    
    #galleryModal .modal-body h5 {
        font-size: 1.2rem;
    }
    
    #galleryModal .modal-body p {
        font-size: 1rem;
    }
    
    #galleryModal .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    #galleryModal .modal-header {
        padding: 1rem 1.5rem;
    }
} 


/* Equal height feature cards */
#features .row {
    align-items: stretch;
}

#features .col-12 {
    display: flex;
}

#features .feature-card {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

#features .feature-card h4 {
    min-height: 30px;
}

#features .feature-card p {
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 575.98px) {
    #features .feature-card {
        min-height: 200px;
    }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991.98px) {
    #features .feature-card {
        min-height: 210px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    #features .feature-card {
        min-height: 220px;
    }
}