/* ASA Global Corporate Solutions - Responsive Styles */

/* Large screens */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Medium screens */
@media (max-width: 968px) {
    /* Typography adjustments */
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.25rem;
        font-weight: 600;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero section */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 280px;
        max-width: 100%;
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .btn-whatsapp-sm {
        text-align: center;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

/* Small screens */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 1.5rem;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Header */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .brand-text {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    /* Hero */
    .hero {
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 250px;
    }
    
    /* About */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
        margin: 2rem auto 0;
    }
    
    /* Slideshow */
    .image-slideshow {
        height: 300px;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-content {
        padding: 1.25rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 1.75rem;
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-item i {
        margin-top: 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Back to top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    /* WhatsApp float */
    .whatsapp-float {
        bottom: 75px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Form buttons */
    .quick-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Header */
    .brand-text {
        display: none; /* Hide text on very small screens */
    }
    
    /* Hero */
    .hero-buttons {
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Services */
    .service-content {
        padding: 1rem;
    }
    
    .service-image {
        height: 160px;
    }
    
    .service-title {
        font-size: 1.125rem;
    }
    
    .service-list li {
        font-size: 0.9rem;
    }
    
    /* Features */
    .feature-item {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1.25rem;
    }
    
    /* Footer */
    .footer-logo {
        width: 50px;
        height: 50px;
    }
    
    /* Slideshow mobile */
    .image-slideshow {
        height: 250px;
    }
    
    .slideshow-nav {
        bottom: 15px;
    }
    
    .slide-btn {
        width: 10px;
        height: 10px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 0 50px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-bottom: 1rem;
    }
    
    .hero-scroll {
        display: none;
    }
}

/* Print styles */
@media print {
    .header,
    .hero-scroll,
    .back-to-top,
    .nav-toggle {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
        background: none !important;
        color: var(--dark-color) !important;
    }
    
    .hero-title,
    .hero-subtitle {
        color: var(--dark-color) !important;
    }
    
    section {
        padding: 1.5rem 0;
        break-inside: avoid;
    }
    
    .service-card,
    .feature-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* Accessibility and motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #ff0000;
        --dark-color: #000000;
        --gray-color: #666666;
        --border-color: #000000;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid var(--dark-color);
    }
    
    .service-card,
    .feature-item {
        border: 2px solid var(--dark-color);
    }
}

/* Focus styles for better accessibility */
.nav-link:focus,
.btn:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading state for better UX */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}