/* Responsive Design */

@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        /* Header height */
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: var(--spacing-lg) 0;
        gap: var(--spacing-md);
    }

    .nav-menu.active {
        left: 0;
    }

    .navbar {
        padding: 0 var(--spacing-md);
    }

    .hero h1 {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .page-header-section {
        padding-top: 10rem !important;
        padding-bottom: 2rem !important;
    }

    /* Fix Sidebar Layout */
    div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column;
        gap: 2rem !important;
    }

    .sidebar {
        margin-top: 2rem;
        position: static !important;
    }

    /* Mobile Sticky Bar Visibility */
    .mobile-sticky-bar {
        display: flex !important;
    }

    /* Prevent content overlap with sticky bar */
    body {
        padding-bottom: 50px;
    }
}

/* Base styles for Sticky Bar (Hidden on desktop) */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    color: white !important;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s;
    border-radius: 0;
}

.btn-call {
    background-color: #007bff;
    /* Blue */
}

.btn-whatsapp {
    background-color: #25d366;
    /* Green */
}

@media (max-width: 480px) {
    .section {
        padding: var(--spacing-lg) 0;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Homepage Specific Styles */

/* Hero Section */
/* Hero Section */
.hero {
    position: relative;
    background-color: var(--secondary-color);
    /* Fallback */
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    margin-top: 80px;
    /* Header height offset */
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

/* Why Choose Us */
.why-us {
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    background: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: serif;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: var(--spacing-md);
}

.client-avatar {
    width: 50px;
    height: 50px;
    background-color: #ddd;
    border-radius: 50%;
}

/* Call to Action Bar */
.cta-bar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-bar h2 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}