/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .hero {
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .section-header {
        text-align: center;
    }
    
    .section-description {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

/* Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-title .highlight {
        display: block;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .footer,
    .dashboard-btn,
    .hamburger,
    .preloader,
    .back-to-top {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    table {
        page-break-inside: avoid;
    }
    
    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    thead {
        display: table-header-group;
    }
    
    tfoot {
        display: table-footer-group;
    }
}

/* High Resolution Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body.dark-mode-support {
        --white: #1a1a1a;
        --off-white: #2d2d2d;
        --gray-100: #333333;
        --gray-200: #404040;
        --gray-300: #4d4d4d;
        --gray-400: #666666;
        --gray-500: #808080;
        --gray-600: #999999;
        --gray-700: #b3b3b3;
        --gray-800: #cccccc;
        --gray-900: #e6e6e6;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* RTL Support */
[dir="rtl"] {
    .nav-links {
        margin-right: 0;
        margin-left: auto;
    }
    
    .hero-buttons {
        flex-direction: row-reverse;
    }
    
    .btn i {
        transform: rotate(180deg);
    }
    
    .feature-icon {
        margin-right: 0;
        margin-left: 1.5rem;
    }
    
    .footer-contact p i {
        margin-right: 0;
        margin-left: 0.75rem;
    }
}

/* Custom Scrollbar */
@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--gray-100);
        border-radius: 5px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--gradient-primary);
        border-radius: 5px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--dark-green);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .service-item:hover {
        transform: none;
    }
    
    .nav-links a::after {
        display: none;
    }
}

/* Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
}

/* Foldable Devices */
@media (max-width: 280px) {
    .container {
        padding: 0 12px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}
/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1200px) {
    .features-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu-wrapper {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: #1A4D3E;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu-wrapper.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .btn-gold-primary span {
        display: none;
    }
    
    .btn-gold-primary {
        padding: 10px;
    }
    
    .btn-gold-primary i {
        margin: 0;
    }
    
    .slide-stats {
        bottom: 20px;
        right: 20px;
        padding: 1rem;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .cta-premium-card {
        padding: 40px 30px;
    }
    
    .cta-features {
        gap: 15px;
    }
    
    .cta-contact {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .logo-main {
        font-size: 1.1rem;
    }
    
    .logo-sub {
        font-size: 0.65rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon img {
        width: 24px;
        height: 24px;
    }
    
    .hero-slider {
        height: 80vh;
    }
    
    .slide-buttons {
        flex-direction: column;
    }
    
    .slide-stats {
        display: none;
    }
    
    .slide-tech-icons {
        display: none;
    }
    
    .features-grid-premium {
        grid-template-columns: 1fr;
    }
    
    .servicesSwiper {
        padding: 30px 10px !important;
    }
    
    .stats-grid-premium {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact-info li {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-stats-mini {
        flex-direction: column;
        gap: 15px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .logo-text-wrapper {
        display: none;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-premium-card {
        padding: 30px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn-gold-primary,
    .cta-buttons .btn-gold-outline {
        width: 100%;
        justify-content: center;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-features .feature {
        width: 100%;
        justify-content: center;
    }
    
    .mobile-menu {
        max-width: 100%;
    }
}