
/* ================= MOBILE MENU ================= */
@media (max-width: 790px) {

    .hamburger {
        display: block;
        z-index: 1000;
    }

    /* dropdown menu */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.92),
            rgba(0, 0, 0, 0.85)
        );

        flex-direction: column;
        align-items: center;

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);

        border-radius: 0 0 12px 12px;

        transition:
            max-height 0.4s ease,
            opacity 0.3s ease,
            transform 0.3s ease;
    }

    .nav-links a {
        padding: 14px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* MENU OPEN */
    #menu-toggle:checked ~ .nav-links {
        max-height: 420px;
        opacity: 1;
        transform: translateY(0);
    }

    /* ICON TOGGLE */
    #menu-toggle:checked ~ .hamburger .open-icon {
        opacity: 0;
        transform: rotate(90deg) scale(0.8);
    }

    #menu-toggle:checked ~ .hamburger .close-icon {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Tablet and Mobile Styles (Max 992px) */
@media (max-width: 992px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
        margin-top: 20px;
    }

    /* Hamburger Icon Styling */
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        z-index: 1000;
        padding: 10px;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--text-white);
        height: 2px;
        width: 25px;
        position: relative;
        transition: all 0.3s ease-in-out;
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }

    .nav-toggle-label span::before { top: 8px; }
    .nav-toggle-label span::after { bottom: 8px; }

    /* Nav Links Mobile Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0; /* Hidden off-screen */
        width: 70%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 999;
    }

    /* Show menu when checkbox is checked */
    .nav-toggle:checked ~ .nav-links {
        right: 0;
    }

    /* Animate Hamburger to 'X' */
    .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
    .nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-45deg); bottom: 0; }

    /* Hero Section Stacking */
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 35px;
    }

    .hero-btns {
        font-size: 10px;
    }

    .stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        width: 45%; 
    }

    .hero-image {
       display: none; 
    }

}


/* Mobile Responsiveness */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    .vision-row {
        grid-template-columns: 1fr;
    }
    .about-grid {
        width: 100%;
    }
    .services-section {
        padding: 20px 20px;
    }


}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-btns, .stats {
        justify-content: center;
    }
    .hero-image {
        margin-top: 40px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-header h2 {
        font-size: 32px;
        text-align: left;
        padding: 0px 3%;
    }
    .services-header p {
        padding: 0px 3%;
        text-align: left;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVE */

@media(max-width:900px){
  .why-container{
    flex-direction:column;
  }
}

/* RESPONSIVE */

@media(max-width:900px){
  .contact-container{
    flex-direction:column;
  }
  .welcome-tag{
    padding: 0px 50px;
  }
}

/* ================= RESPONSIVE UTILS ================= */
@media (max-width: 900px) {
  .footer-follow h3 { margin-bottom: 15px; padding: 30px 10px 30px 60px; }
  .social-icons { gap: 15px; padding: 30px 20px 30px 10px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Small phones (Max 480px) */
@media (max-width: 480px) {
    
    .stat-item {
        width: 100%; /* Full width stats on very small screens */
    }
   
}
@media (max-width: 375px) {
    
.hero-content h1 {
        font-size: 30px;
    }
}