/* ===================================
   AMConnect.ae Responsive Stylesheet
   Mobile-First Responsive Design
   =================================== */

/* Tablet Landscape and Below (1024px) */
@media screen and (max-width: 1024px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .content-grid {
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet Portrait (768px) */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--overlay);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 0;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        display: block;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .nav-cta {
        margin-top: 20px;
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero */
    .hero {
        min-height: 90vh;
        padding-top: 100px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Content Grid */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .content-grid .content-image {
        order: -1;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Geometric Shapes */
    .shape-1, .shape-2, .shape-3 {
        width: 150px;
        height: 150px;
    }
}

/* Mobile Large (576px) */
@media screen and (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 16px 0;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    /* Hero */
    .hero {
        min-height: 80vh;
        padding-top: 80px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .coming-soon-badge {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    /* Section */
    .section {
        padding: 40px 0;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 28px 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    /* Newsletter Form */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-button {
        width: 100%;
    }
    
    /* Scroll to Top */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Forms */
    .form-control {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .footer-heading {
        font-size: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Geometric Shapes - Hide on small mobile */
    .shape-1, .shape-2, .shape-3 {
        display: none;
    }
}

/* Mobile Small (400px) */
@media screen and (max-width: 400px) {
    html {
        font-size: 13px;
    }
    
    .hero-cta {
        gap: 12px;
    }
    
    .feature-card {
        padding: 20px 16px;
    }
    
    .footer-grid {
        gap: 32px;
    }
}

/* Landscape Orientation Adjustments */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .nav-menu {
        height: auto;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .scroll-to-top,
    .mobile-menu-toggle,
    .hero-cta,
    .newsletter-form {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images and icons for retina displays */
    .feature-icon,
    .logo-text {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* Already dark theme by default */
}

/* Large Desktop (1440px+) */
@media screen and (min-width: 1440px) {
    :root {
        --container-width: 1320px;
    }
}

/* Extra Large Desktop (1920px+) */
@media screen and (min-width: 1920px) {
    :root {
        --container-width: 1440px;
    }
    
    .hero {
        min-height: 90vh;
    }
}