/* Responsive Design Styles */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (1024px to 1439px) */
@media (max-width: 1439px) {
    .container {
        max-width: 1140px;
    }
}

/* Tablet Landscape (768px to 1023px) */
@media (max-width: 1023px) {
    .nav-list {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Only (up to 767px) */
@media (max-width: 767px) {
    /* Show hamburger menu only on mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Navigation Mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    /* Nav menu transformation for mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1001;
        overflow-y: auto;
        display: block !important;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        margin-top: 80px;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(0, 71, 171, 0.1);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        color: #0047ab;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary);
        padding-left: 10px;
    }
    
    /* Dropdown adjustments for mobile */
    .dropdown .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown .arrow {
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: auto;
        background: rgba(0, 71, 171, 0.05);
        margin: 0.5rem 0;
        padding: 0.5rem 0 0.5rem 1rem;
        border-radius: 8px;
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .mega-menu {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .mega-menu-column {
        margin-bottom: 1rem;
    }
    
    .mega-menu-column h3 {
        font-size: 0.9rem;
        color: var(--primary);
        margin-bottom: 0.5rem;
    }
    
    .mega-menu-column a {
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .btn {
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Services Mobile */
    .services {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .service-desc {
        font-size: 0.9rem;
    }
    
    /* Features Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Statistics Mobile */
    .statistics {
        padding: 60px 0;
    }
    
    .dashboard {
        padding: 2rem 1.5rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials Mobile */
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    /* CTA Mobile */
    .cta {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* WhatsApp Widget Mobile */
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-popup {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 70px;
    }
    
    /* Back to Top Mobile */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 20px;
    }
}

/* Small Mobile (320px to 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    /* Smaller mobile menu */
    .nav-menu {
        width: 90%;
        max-width: 280px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Extra Small Mobile (up to 320px) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .whatsapp-widget,
    .back-to-top,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid black;
        padding: 5px 10px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes for Mobile */
@media (max-width: 767px) {
    .mobile-hide {
        display: none !important;
    }
    
    .mobile-show {
        display: block !important;
    }
    
    .text-mobile-center {
        text-align: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
}