/* Additional Responsive Styles for AI Website */

/* ===============================================
   MOBILE-FIRST RESPONSIVE DESIGN
   =============================================== */

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 479px) {
    /* Typography */
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Spacing */
    section {
        padding: 3rem 0 !important;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Cards */
    .glass-card {
        padding: 1rem !important;
        margin: 0.5rem !important;
    }
    
    .career-card {
        padding: 1rem !important;
    }
    
    .stat-card {
        padding: 0.75rem !important;
    }
    
    /* Navigation */
    #navbar .container {
        padding: 0.75rem 1rem !important;
    }
    
    .hero-title {
        margin-bottom: 1rem !important;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.875rem !important;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    /* Timeline */
    .career-timeline {
        padding-left: 0.5rem !important;
    }
    
    .timeline-item {
        padding-left: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .timeline-dot {
        left: -1.5rem !important;
        width: 0.5rem !important;
        height: 0.5rem !important;
    }
    
    /* Stats Grid */
    .stat-card .text-2xl,
    .stat-card .text-3xl {
        font-size: 1.25rem !important;
    }
    
    /* Feature Cards */
    .feature-card {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }
    
    .feature-icon {
        width: 2.5rem !important;
        height: 2.5rem !important;
        margin: 0 auto !important;
    }
    
    /* Process Steps */
    .step-number {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Floating Buttons */
    .whatsapp-float {
        width: 3rem !important;
        height: 3rem !important;
        bottom: 1rem !important;
        right: 1rem !important;
    }
    
    .back-to-top {
        width: 2rem !important;
        height: 2rem !important;
        bottom: 1rem !important;
        left: 1rem !important;
    }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 480px) and (max-width: 767px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: auto;
        display: inline-flex;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .career-card {
        padding: 1.75rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3rem;
    }
    
    /* Grid Adjustments */
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Typography */
    .text-3xl {
        font-size: 1.75rem;
    }
    
    .text-4xl {
        font-size: 2.25rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    /* Spacing */
    section {
        padding: 4rem 0;
    }
    
    .py-20 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .py-32 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Large Devices (Desktops) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .container {
        max-width: 1024px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    /* Optimal spacing for desktop */
    .lg\:py-32 {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    /* Enhanced spacing for large screens */
    .lg\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    
    /* Larger cards for better proportion */
    .glass-card {
        padding: 3rem;
    }
    
    .career-card {
        padding: 2.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
}

/* ===============================================
   LANDSCAPE ORIENTATION OPTIMIZATIONS
   =============================================== */

@media (orientation: landscape) and (max-height: 600px) {
    /* Reduce vertical spacing in landscape */
    #home {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .py-20,
    .py-32 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* ===============================================
   HIGH DPI DISPLAY OPTIMIZATIONS
   =============================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhance text rendering for high DPI displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Crisper borders and shadows */
    .glass-card {
        border-width: 0.5px;
    }
    
    .career-card,
    .feature-card,
    .process-step {
        border-width: 0.5px;
    }
}

/* ===============================================
   PRINT OPTIMIZATIONS
   =============================================== */

@media print {
    /* Hide interactive elements */
    .whatsapp-float,
    .back-to-top,
    #navbar,
    .scroll-indicator,
    .floating-element,
    #progress-bar {
        display: none !important;
    }
    
    /* Optimize colors for print */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .text-gradient,
    .hero-title {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
    
    /* Ensure content fits on page */
    section {
        page-break-inside: avoid;
        margin-bottom: 1rem;
        padding: 1rem 0;
    }
    
    .glass-card,
    .career-card,
    .feature-card {
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    /* Optimize typography for print */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
    
    /* Show URLs for links */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    /* Optimize images for print */
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }
}

/* ===============================================
   ACCESSIBILITY ENHANCEMENTS
   =============================================== */

/* Focus styles for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    *:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
        transition: outline 0.2s ease;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .glass-card {
        background: rgba(30, 41, 59, 0.95) !important;
        border: 2px solid var(--primary) !important;
    }
    
    .text-gradient {
        color: var(--primary) !important;
        -webkit-text-fill-color: var(--primary) !important;
    }
    
    .hero-title {
        color: white !important;
        -webkit-text-fill-color: white !important;
    }
    
    /* Enhanced button contrast */
    .btn-primary {
        background: var(--primary) !important;
        color: black !important;
        border: 2px solid var(--primary) !important;
    }
    
    .btn-secondary {
        background: transparent !important;
        color: var(--primary) !important;
        border: 2px solid var(--primary) !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-element {
        animation: none !important;
    }
    
    .scroll-indicator {
        animation: none !important;
    }
    
    .hero-title {
        animation: none !important;
    }
}

/* Dark mode preferences (future-proofing) */
@media (prefers-color-scheme: light) {
    /* Currently using dark theme by default */
    /* Add light theme overrides here if needed in the future */
}

/* ===============================================
   CONTAINER QUERIES (Future Enhancement)
   =============================================== */

/* These will be supported by modern browsers */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .career-card {
            padding: 1rem;
        }
        
        .career-icon {
            width: 3rem;
            height: 3rem;
        }
    }
}