/* ==========================================
   Tradons Technology - Responsive Styles
   ========================================== */

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

/* Large Devices (≥1200px) */
@media (min-width: 1200px) {
    .section {
        padding: 100px 0;
    }
}

/* Medium Devices (≥992px) */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        position: relative;
    }
    
    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 80%;
    }
}

/* Small to Medium Devices (≥768px) */
@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .feature-box {
        margin-bottom: 2rem;
    }
    
    .footer-bottom .container {
        flex-direction: row;
    }
}

/* Small Devices (<768px) */
@media (max-width: 767.98px) {
    /* Typography */
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand .logo {
        height: 40px;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        border: 1px solid rgba(0,0,0,0.1);
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem 0;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        background: var(--light-color);
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* About Section */
    .about-content {
        padding: 1rem 0;
    }
    
    .about-subtitle {
        font-size: 1.5rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    .experience-badge {
        bottom: 10px;
        right: 10px;
        padding: 1rem;
    }
    
    .experience-number {
        font-size: 2rem;
    }
    
    /* Products */
    .category-title {
        font-size: 1.5rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-title {
        font-size: 1.25rem;
    }
    
    /* Features */
    .feature-box {
        margin-bottom: 1.5rem;
    }
    
    /* Contact */
    .contact-form {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .map-container {
        margin-top: 2rem;
    }
    
    #map {
        height: 300px;
    }
    
    /* Footer */
    .footer {
        margin-top: 60px;
    }
    
    .footer-top {
        padding: 40px 0 30px;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .footer-title {
        font-size: 1.125rem;
        margin-top: 2rem;
    }
    
    .newsletter-form {
        margin-bottom: 2rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .company-info {
        font-size: 0.75rem;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    /* Cookie Consent */
    .cookie-consent .container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content {
        margin-bottom: 1rem;
    }
    
    .cookie-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-actions .btn {
        flex: 1;
        max-width: 150px;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    /* Utilities */
    .d-mobile-none {
        display: none !important;
    }
    
    .text-mobile-center {
        text-align: center !important;
    }
    
    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }
    
    .p-mobile-2 {
        padding: 0.5rem !important;
    }
}

/* Extra Small Devices (<576px) */
@media (max-width: 575.98px) {
    /* Container */
    .container {
        padding: 0 10px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    /* Forms */
    .form-control {
        font-size: 0.875rem;
    }
    
    /* Products */
    .product-card {
        padding: 1.5rem;
    }
    
    .product-icon svg {
        width: 50px;
        height: 50px;
    }
    
    /* Features */
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Contact */
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    /* Social Links */
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
}

/* Portrait Orientation */
@media (orientation: portrait) {
    .hero-section {
        min-height: 100vh;
    }
}

/* Landscape Orientation (Mobile) */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand .logo,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    /* Hide non-essential elements */
    .navbar,
    .hero-section,
    .back-to-top,
    .cookie-consent,
    .footer,
    .btn,
    .modal {
        display: none !important;
    }
    
    /* Adjust layout */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    /* Show link URLs */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
    
    /* Product cards */
    .product-card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
        box-shadow: none;
    }
}

/* 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;
    }
    
    .aos-animate {
        transition: none !important;
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e0e0e0;
        --dark-color: #f5f5f5;
        --light-color: #1a1a1a;
        --border-color: #333333;
    }
    
    body {
        background-color: #0a0a0a;
        color: var(--text-color);
    }
    
    .navbar {
        background: rgba(10, 10, 10, 0.95);
    }
    
    .section {
        background-color: #0a0a0a;
    }
    
    .bg-light {
        background-color: #1a1a1a !important;
    }
    
    .product-card,
    .feature-box,
    .contact-form {
        background: #1a1a1a;
        color: var(--text-color);
    }
    
    .form-control {
        background: #0a0a0a;
        border-color: #333;
        color: var(--text-color);
    }
    
    .form-control:focus {
        background: #0a0a0a;
        color: var(--text-color);
    }
    
    .dropdown-menu {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .dropdown-item {
        color: var(--text-color);
    }
    
    .dropdown-item:hover {
        background: #2a2a2a;
    }
    
    .modal-content {
        background: #1a1a1a;
        color: var(--text-color);
    }
    
    .modal-header,
    .modal-footer {
        border-color: #333;
    }
}

/* Custom Scrollbar */
@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 10px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--light-color);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 5px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color);
    }
}