/* ==========================================================================
   RESPONSIVE CSS
   ========================================================================== */

/* Large screens & Laptops (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    .hero-text h1 {
        font-size: 3rem;
    }
    .stat-item h2 {
        font-size: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablets (max-width: 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }

    /* Header & Nav */
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-color);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: left 0.4s ease;
        z-index: 1000;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .nav-link {
        font-size: 1.2rem;
    }
    
    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero-text p {
        margin: 0 auto 30px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image-wrapper {
        margin: 0 auto;
        max-width: 500px;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .floating-cards {
        display: none; /* Hide floating cards on small screens for better UX */
    }
    
    .mvv-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Horizontal Process to Vertical */
    .horizontal-process {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .process-line {
        width: 4px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    .process-line::before {
        width: 100%;
        height: 0;
        transition: height 1.5s ease-out;
    }
    .horizontal-process.active .process-line::before {
        height: 100%;
        width: 100%;
    }
    
    /* Timeline */
    .timeline-container {
        padding-left: 30px;
    }
    .timeline-line {
        left: 0;
        transform: none;
    }
    .timeline-item, .timeline-item.left {
        flex-direction: row-reverse;
        justify-content: flex-start;
        padding-left: 20px;
    }
    .timeline-content {
        width: 100%;
    }
    .timeline-dot {
        position: absolute;
        left: -12px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-widget h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .links-widget a, .services-widget a {
        justify-content: center;
    }
    
    /* Modals & Popups */
    .modal-content {
        padding: 30px 20px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .stat-item h2 {
        font-size: 2.5rem;
    }
    

    .back-to-top {
        right: 15px;
        bottom: 20px;
    }
}
