/* ===== TABLET DEVICES (769px - 1024px) ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar {
        height: var(--nav-height-tablet);
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    /* Show tablet logo, hide others */
    .logo-desktop {
        display: none;
    }
    
    .logo-tablet {
        display: block;
        width: 150px;
        height: auto;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
    
    .phone-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

   
}

/* ===== MOBILE DEVICES (≤ 768px) ===== */
@media (max-width: 768px) {
    .navbar {
        height: var(--nav-height-mobile);
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    /* Show mobile logo, hide others */
    .logo-desktop {
        display: none;
    }
    
    .logo-tablet {
        display: none;
    }
    
    .logo-mobile {
        display: block;
        width: 120px;
        height: 60px;
    }
    
    /* Hide desktop menu & contact */
    .nav-menu {
        position: fixed;
        top: var(--nav-height-mobile);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height-mobile));
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        transition: left 0.3s ease;
        padding-top: 30px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        margin: 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    /* Hide desktop contact */
    .nav-contact {
        display: none;
    }
    
    /* Show hamburger */
    .hamburger {
        display: flex;
    }
    
    /* Hamburger animation */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }

    .additional-card{
        grid-template-columns: 1fr;
        text-align: center;

    }
     .certs-grid{
      grid-template-columns: 1fr;
        text-align: center;
    }

   
}

/* ===== SMALL MOBILE DEVICES (≤ 480px) ===== */
@media (max-width: 480px) {
    .navbar {
        height: 60px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .logo-mobile {
        width: 100px;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .hamburger {
        padding: 3px;
    }
    
    .bar {
        width: 22px;
        height: 2px;
    }

    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero {
        padding: var(--space-xl) var(--space-sm);
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .btn {
        padding: var(--space-sm) var(--space-md);
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* ===== PREVENT CONTENT COVERING ===== */
/* Add top padding to all main content sections */
.hero,
.page-hero,
.about-story,
.main-services,
.gallery-grid-section,
.contact-section {
    margin-top: var(--nav-height-desktop);
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hero,
    .page-hero,
    .about-story,
    .main-services,
    .gallery-grid-section,
    .contact-section {
        margin-top: var(--nav-height-tablet);
    }
}

@media (max-width: 768px) {
    .hero,
    .page-hero,
    .about-story,
    .main-services,
    .gallery-grid-section,
    .contact-section {
        margin-top: var(--nav-height-mobile);
    }
}

@media (max-width: 480px) {
    .hero,
    .page-hero,
    .about-story,
    .main-services,
    .gallery-grid-section,
    .contact-section {
        margin-top: 60px;
    }
}



/* Tablet Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}





/* About Page Responsive */
@media (max-width: 968px) {
    .story-grid,
    .service-detail {
        grid-template-columns: 1fr;
    }
    


    .values-grid,
    .team-grid,
    .process-steps,
    .additional-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    
}

@media (max-width: 480px) {
    .values-grid,
    .team-grid,
    .process-steps,
    .additional-grid,
    .gallery-grid {
        grid-template-columns:  1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
 }
}

   /* Responsive behavior: stack videos on small screens */
    @media (max-width: 1024px) {   /* tablets and below */
      .video-container {
        flex-direction: column;
        align-items: center;
      }

      .video-container video {
        width: 90%;   /* take most of the screen width */
      }
    }

/* ===== MOBILE FIX - NO CONTENT HIDING ===== */
@media (max-width: 768px) {
    /* Safe mobile container */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }
    
    /* Fix navigation without hiding content */
    .navbar {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .nav-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    
    .nav-menu {
        width: 100% !important;
        left: -100% !important;
    }
    
    .nav-menu.active {
        left: 0 !important;
        width: 100% !important;
    }
    
    /* Ensure all content sections are fully visible */
    .hero,
    .page-hero,
    .about-story,
    .our-values,
    .our-team,
    .certifications,
    .main-services,
    .additional-services,
    .process,
    .gallery-filters,
    .gallery-grid-section,
    .gallery-testimonials,
    .contact-section {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: visible !important;
    }
    
    /* Fix content inside sections */
    .hero-content,
    .story-content,
    .service-content,
    .contact-info {
        width: 100% !important;
        padding: 0 15px !important;
    }
    
    /* Ensure text is fully visible */
    h1, h2, h3, h4, h5, h6, p, li, span {
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Fix buttons and interactive elements */
    .btn, button, a {
        max-width: 100% !important;
        white-space: normal !important;
    }
}






    


/* ===== MOBILE SERVICES LAYOUT ===== */
@media (max-width: 768px) {
    .main-services {
        padding: 40px 0 !important;
    }
    
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
        width: 100% !important;
    }
    
    .service-detail {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
        overflow: hidden !important;
        margin-bottom: 0 !important;
    }
    
    /* Remove reverse layout on mobile */
    .service-detail.reverse {
        flex-direction: column !important;
    }
    
    .service-image {
        width: 100% !important;
        order: 1 !important;
    }
    
    .service-image img {
        width: 100% !important;
        height: 250px !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .service-content {
        width: 100% !important;
        order: 2 !important;
        padding: 25px 20px !important;
    }
    
    .service-content h2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
        color: #333 !important;
        text-align: center !important;
    }
    
    .service-content p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
        color: #666 !important;
        text-align: center !important;
    }
    
    .service-features {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 0 25px 0 !important;
    }
    
    .service-features li {
        padding: 8px 0 !important;
        padding-left: 25px !important;
        position: relative !important;
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    .service-features li::before {
        content: "✓" !important;
        color: #f97316 !important;
        font-weight: bold !important;
        position: absolute !important;
        left: 0 !important;
        font-size: 1.1rem !important;
    }
    
    .service-content .btn {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        display: block !important;
        text-align: center !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }
}

/* ===== SMALL MOBILE OPTIMIZATION ===== */
@media (max-width: 480px) {
    .main-services {
        padding: 30px 0 !important;
    }
    
    .services-grid {
        gap: 30px !important;
    }
    
    .service-image img {
        height: 200px !important;
    }
    
    .service-content {
        padding: 20px 15px !important;
    }
    
    .service-content h2 {
        font-size: 1.3rem !important;
    }
    
    .service-content p {
        font-size: 0.95rem !important;
    }
    
    .service-features li {
        font-size: 0.9rem !important;
        padding-left: 22px !important;
    }
    
    .service-content .btn {
        padding: 12px 18px !important;
        font-size: 0.95rem !important;
    }
}

/* ===== TABLET OPTIMIZATION ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid {
        gap: 30px !important;
    }
    
    .service-detail {
        flex-direction: column !important;
    }
    
    .service-detail.reverse {
        flex-direction: column !important;
    }
    
    .service-image, 
    .service-content {
        width: 100% !important;
    }
    
    .service-image img {
        height: 300px !important;
    }
    
    .service-content {
        padding: 25px !important;
    }
}




/* ===== MOBILE ADDITIONAL SERVICES LAYOUT ===== */
@media (max-width: 768px) {
    .additional-services {
        padding: 40px 0 !important;
        background: #ffffff !important;
    }
    
    .additional-services h2 {
        font-size: 1.8rem !important;
        text-align: center !important;
        margin-bottom: 30px !important;
        color: #333 !important;
    }
    
    .additional-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }
    
    .additional-card {
        width: 100% !important;
        background: #f8f9fa !important;
        padding: 25px 20px !important;
        border-radius: 12px !important;
        border-left: 4px solid #f97316 !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important;
        text-align: center !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    }
    
    .additional-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
    }
    
    .additional-card h3 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
        color: #333 !important;
        font-weight: 600 !important;
    }
    
    .additional-card p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        color: #666 !important;
        margin: 0 !important;
    }
}

/* ===== SMALL MOBILE OPTIMIZATION ===== */
@media (max-width: 480px) {
    .additional-services {
        padding: 30px 0 !important;
    }
    
    .additional-services h2 {
        font-size: 1.5rem !important;
        margin-bottom: 25px !important;
    }
    
    .additional-grid {
        gap: 15px !important;
    }
    
    .additional-card {
        padding: 20px 15px !important;
        border-radius: 10px !important;
    }
    
    .additional-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }
    
    .additional-card p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
}

/* ===== TABLET OPTIMIZATION ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .additional-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    .additional-card {
        padding: 25px !important;
    }
}



/* ===== MOBILE OUR VALUES LAYOUT ===== */
@media (max-width: 768px) {
    .our-values {
        padding: 40px 0 !important;
        background: #ffffff !important;
    }
    
    .our-values h2 {
        font-size: 1.8rem !important;
        text-align: center !important;
        margin-bottom: 30px !important;
        color: #333 !important;
    }
    
    .values-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        width: 100% !important;
    }
    
    .value-card {
        width: 100% !important;
        background: #ffffff !important;
        padding: 30px 20px !important;
        border-radius: 15px !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
        text-align: center !important;
        border: 2px solid #f0f0f0 !important;
        transition: all 0.3s ease !important;
    }
    
    .value-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
        border-color: #f97316 !important;
    }
    
    .value-icon {
        font-size: 3rem !important;
        margin-bottom: 20px !important;
        display: block !important;
    }
    
    .value-card h3 {
        font-size: 1.4rem !important;
        margin-bottom: 15px !important;
        color: #333 !important;
        font-weight: 600 !important;
    }
    
    .value-card p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        color: #666 !important;
        margin: 0 !important;
    }
}

/* ===== SMALL MOBILE OPTIMIZATION ===== */
@media (max-width: 480px) {
    .our-values {
        padding: 30px 0 !important;
    }
    
    .our-values h2 {
        font-size: 1.5rem !important;
        margin-bottom: 25px !important;
    }
    
    .values-grid {
        gap: 20px !important;
    }
    
    .value-card {
        padding: 25px 15px !important;
        border-radius: 12px !important;
    }
    
    .value-icon {
        font-size: 2.5rem !important;
        margin-bottom: 15px !important;
    }
    
    .value-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }
    
    .value-card p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
}

/* ===== TABLET OPTIMIZATION ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    .value-card {
        padding: 30px 25px !important;
    }
    
    .value-icon {
        font-size: 3.5rem !important;
    }
}




/* ===== MOBILE TRUST SIGNALS LAYOUT ===== */
@media (max-width: 768px) {
    .trust-signals {
        padding: 40px 0 !important;
        background: #f8f9fa !important;
    }
    
    .trust-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        width: 100% !important;
    }
    
    .trust-item {
        background: #ffffff !important;
        padding: 25px 15px !important;
        border-radius: 12px !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important;
        text-align: center !important;
        border: 2px solid transparent !important;
        transition: all 0.3s ease !important;
    }
    
    .trust-item:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 15px rgba(0,0,0,0.12) !important;
        border-color: #f97316 !important;
    }
    
    .trust-icon {
        font-size: 2.5rem !important;
        color: #f97316 !important;
        margin-bottom: 15px !important;
        display: block !important;
        font-weight: bold !important;
    }
    
    .trust-item h3 {
        font-size: 1.1rem !important;
        color: #333 !important;
        font-weight: 600 !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }
}

/* ===== SMALL MOBILE OPTIMIZATION ===== */
@media (max-width: 480px) {
    .trust-signals {
        padding: 30px 0 !important;
    }
    
    .trust-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .trust-item {
        padding: 20px 15px !important;
        border-radius: 10px !important;
    }
    
    .trust-icon {
        font-size: 2rem !important;
        margin-bottom: 12px !important;
    }
    
    .trust-item h3 {
        font-size: 1rem !important;
    }
}

/* ===== TABLET OPTIMIZATION ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    .trust-item {
        padding: 30px 20px !important;
    }
    
    .trust-icon {
        font-size: 3rem !important;
    }
    
    .trust-item h3 {
        font-size: 1.2rem !important;
    }
}