/* Show on screens below 894px (Mobile & Tablet) */
@media (max-width: 894px) {
    .footer-links,
    .footer-services {
        display: block; /* or flex, depending on your layout */
    }
}

/* Mobile Menu Layout */
@media (max-width: 768px) {
    
    /* Show hamburger menu */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        width: 30px;
        height: 24px;
        justify-content: space-between;
        order: 3;
    }
    
    .bar {
        height: 3px;
        width: 100%;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 2px;
        transition: var(--transition);
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background: var(--accent-color);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background: var(--accent-color);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, var(--card-bg), var(--section-bg));
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: var(--shadow-hover);
        transition: var(--transition);
        z-index: 1000;
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        color: var(--text-color);
        text-decoration: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .theme-toggle-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 12px 24px;
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
            color: white;
            border: none;
            border-radius: 40px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            min-width: 140px;
        }
        
        /* Hover Animation */
        .theme-toggle-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
            filter: brightness(1.05);
        }
        
        /* Click Animation */
        .theme-toggle-btn:active {
            transform: translateY(1px) scale(0.97);
        }
        
        /* Icon Animation */
        .theme-toggle-btn i {
            font-size: 1.2rem;
            transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
            pointer-events: none;
        }
        
        /* Icon Spin Animation on Click */
        .theme-toggle-btn.animate i {
            animation: iconSpin 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        @keyframes iconSpin {
            0% {
                transform: rotate(0deg) scale(1);
            }
            50% {
                transform: rotate(180deg) scale(1.2);
            }
            100% {
                transform: rotate(360deg) scale(1);
            }
        }
        
        /* Text Style */
        .toggle-text {
            font-weight: 600;
            letter-spacing: 0.3px;
        }
        
        /* Ripple Effect */
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.6);
            transform: scale(0);
            animation: rippleAnim 0.5s ease-out;
            pointer-events: none;
        }
        
        @keyframes rippleAnim {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }
    
    .header-container {
        padding: 10px 0;
    }
    
    /* Reorder elements for mobile */
    .logo {
        order: 1;
        flex: 1;
    }
    
    .theme-toggle {
        order: 2;
        margin-right: 15px;
        top: 15px;
        right: 15px;
    }
    
    nav {
        order: 3;
    }
    
    .hero {
        padding: 120px 0 60px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-md);
    }

    .hero .logo {
        order: -1;
        margin-bottom: var(--spacing-md);
    }

    .hero .logo img {
        width: 150px;
        height: 150px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat {
        min-width: 100px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    #themeToggle .toggle-text {
        display: none;
    }
    
    #themeToggle {
        padding: 10px;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    /* Mobile view (below 768px) */
    .footer-links,
    .footer-services {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-info,
    .footer-contact {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }

    .footer-contact ul {
        display: inline-block;
        text-align: left;
    }
    
    /* Mobile Landscape - Tablet adjustments already in desktop.css */
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .stat {
        width: 100%;
        max-width: 200px;
    }
    
    .services-preview-grid,
    .services-grid,
    .testimonials-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    /* Small Mobile */
    .theme-toggle-btn {
        width: 90%;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* Checkbox adjustments for mobile */
    .checkbox-label {
        font-size: 1rem;
        padding: 12px 0;
        align-items: flex-start; /* Changed from center to flex-start */
    }
    
    .checkmark {
        width: 24px;
        height: 24px;
        margin-right: 15px;
        margin-top: 2px; /* Aligns better with text */
    }
    
    .checkbox-text {
        display: inline-block;
        flex: 1;
        line-height: 1.5;
    }
    
    .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
        font-size: 16px;
    }
}