/**
 * Responsive CSS for NobleAIWork Homepage
 * Breakpoints:
 * - XL: 1400px and up
 * - LG: 1200px to 1399px
 * - MD: 992px to 1199px
 * - SM: 768px to 991px
 * - XS: 576px to 767px
 * - XXS: Below 576px
 */

/* ========================================
   Extra Large Devices (≥1400px)
======================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* ========================================
   Large Devices (1200px - 1399px)
======================================== */
@media (max-width: 1399px) and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ========================================
   Medium Devices (992px - 1199px)
======================================== */
@media (max-width: 1199px) {
    /* Typography */
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.625rem; }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        color: #d1d5db;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    /* Cards */
    .service-card {
        padding: 1.75rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

/* ========================================
   Small Devices (768px - 991px)
======================================== */
@media (max-width: 991px) {
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
        margin-left: 0;
    }
    
    .navbar-nav {
        background: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        color: #d1d5db;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Sections */
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Grid Adjustments */
    .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    /* Footer */
    .footer-widget {
        margin-bottom: 2rem;
    }
}

/* ========================================
   Extra Small Devices (576px - 767px)
======================================== */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.25rem; }
    
    body {
        font-size: 0.95rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 80px 0 50px;
    }
    
    .hero-title {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        color: #d1d5db;
    }
    
    /* Sections */
    .section-padding {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-group-vertical {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group-vertical .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 1rem;
        padding: 0.625rem 0.875rem;
    }
    
    /* Tables */
    .table-responsive {
        font-size: 0.875rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ========================================
   Mobile Devices (Below 576px)
======================================== */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.125rem;
        margin-left: 0;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 70px 0 40px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #d1d5db;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        margin-bottom: 0.75rem;
        width: 100%;
    }
    
    /* Sections */
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Cards */
    .service-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    /* Forms */
    .contact-form .row {
        margin: 0;
    }
    
    .contact-form .col-md-6 {
        padding: 0;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    /* Pricing Tables */
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
    }
    
    /* Portfolio Grid */
    .portfolio-item {
        margin-bottom: 1.5rem;
    }
    
    /* Blog Cards */
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    /* Pagination */
    .pagination {
        font-size: 0.875rem;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.625rem;
    }
    
    /* Back to Top Button */
    #scrollTopBtn {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Notification Toast */
    .notification-toast {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }
}

/* ========================================
   Very Small Devices (Below 400px)
======================================== */
@media (max-width: 399px) {
    /* Typography */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.125rem; }
    
    body {
        font-size: 0.875rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 1.375rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        color: #d1d5db;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 0.875rem;
    }
}

/* ========================================
   Orientation: Landscape
======================================== */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        padding: 60px 0 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    /* Hide unnecessary elements */
    .navbar,
    .footer,
    .btn,
    .hero-buttons,
    .social-link,
    .back-to-top,
    .notification-toast,
    .no-print {
        display: none !important;
    }
    
    /* Adjust layout */
    .hero-section {
        padding: 20px 0;
        margin-top: 0;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    /* Typography */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Links */
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    /* Tables */
    table {
        border-collapse: collapse !important;
    }
    
    table td,
    table th {
        background-color: #fff !important;
    }
}

/* ========================================
   High DPI Displays
======================================== */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Use higher resolution images for retina displays */
    .navbar-brand img {
        /* Implement srcset in HTML for better compatibility */
    }
}

/* ========================================
   Accessibility - Reduced Motion
======================================== */
@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;
    }
}

/* ========================================
   Dark Mode Support (Optional)
======================================== */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be implemented here */
}
