
/* Universal Responsive Design for All Display Sizes */

/* Base styles for all devices */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100vw;
    min-width: 320px;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Extra Large Screens (1920px and above) */
@media (min-width: 1921px) {
    .container, .header-container, .footer-container, .main-container {
        max-width: 1600px;
        padding: 0 3vw;
    }
}

/* Large Desktop Screens (1600px - 1920px) */
@media (min-width: 1601px) and (max-width: 1920px) {
    .container, .header-container, .footer-container, .main-container {
        max-width: 1500px;
        padding: 0 2.5vw;
    }
}

/* Standard Desktop Screens (1366px - 1600px) */
@media (min-width: 1367px) and (max-width: 1600px) {
    .container, .header-container, .footer-container, .main-container {
        max-width: 1400px;
        padding: 0 2vw;
    }
}

/* 1366x768 Display (16:9) */
@media (width: 1366px) and (height: 768px) {
    html {
        font-size: 15px;
    }

    .container, .header-container, .footer-container, .main-container {
        max-width: 1300px;
        padding: 0 1.5vw;
    }

    /* Hero section adjustments */
    .hero {
        min-height: 90vh;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }

    .hero p {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
    }

    /* Grid adjustments */
    .cards-grid, .product-grid, .features-grid {
        gap: 25px;
    }

    /* Card adjustments */
    .card, .product-card, .feature-card {
        margin-bottom: 10px;
    }
}

/* Laptop Screens (1280px - 1365px) */
@media (min-width: 1280px) and (max-width: 1365px) {
    html {
        font-size: 15px;
    }

    .container, .header-container, .footer-container, .main-container {
        max-width: 1200px;
        padding: 0 2vw;
    }

    .hero {
        min-height: 85vh;
    }
}

/* Tablet Landscape (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    html {
        font-size: 14px;
    }

    .container, .header-container, .footer-container, .main-container {
        max-width: 1000px;
        padding: 0 2vw;
    }

    /* Navigation adjustments */
    .nav-menu {
        gap: 25px;
    }

    .nav-menu li a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* Grid adjustments */
    .cards-grid, .product-grid, .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    /* Hero section */
    .hero h1 {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .hero p {
        font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    html {
        font-size: 14px;
    }

    .container, .header-container, .footer-container, .main-container {
        max-width: 95%;
        padding: 0 2vw;
    }

    /* Navigation adjustments */
    .nav-menu {
        gap: 20px;
    }

    .nav-menu li a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Logo adjustments */
    .logo {
        margin-left: 0;
    }

    .logo img {
        height: clamp(40px, 6vw, 55px);
    }

    /* Grid adjustments */
    .cards-grid, .product-grid, .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    /* Hero section */
    .hero {
        min-height: 80vh;
        padding: 80px 20px 40px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .hero p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    /* Section titles */
    .section-title h2, .page-title h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    /* Card adjustments */
    .card, .product-card, .feature-card {
        padding: 25px 20px;
    }

    .card-image, .product-img {
        height: 200px;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    html {
        font-size: 14px;
    }

    .container, .header-container, .footer-container, .main-container {
        max-width: 100%;
        padding: 0 3vw;
    }

    /* Navigation */
    .nav-menu {
        gap: 15px;
    }

    .nav-menu li a {
        font-size: 0.85rem;
        padding: 10px 15px;
    }

    /* Grid adjustments */
    .cards-grid, .product-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Hero section */
    .hero {
        min-height: 70vh;
        padding: 70px 15px 30px;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .hero p {
        font-size: clamp(0.85rem, 3vw, 1rem);
    }

    /* Section titles */
    .section-title h2, .page-title h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    /* Card adjustments */
    .card, .product-card, .feature-card {
        padding: 20px 15px;
    }

    .card-image, .product-img {
        height: 180px;
    }
}

/* Mobile Portrait (480px - 575px) */
@media (min-width: 480px) and (max-width: 575px) {
    html {
        font-size: 14px;
    }

    .container, .header-container, .footer-container, .main-container {
        max-width: 100%;
        padding: 0 4vw;
    }

    /* Grid adjustments */
    .cards-grid, .product-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Hero section */
    .hero {
        min-height: 65vh;
        padding: 60px 15px 30px;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .hero p {
        font-size: clamp(0.85rem, 3vw, 1rem);
    }

    /* Section titles */
    .section-title h2, .page-title h1 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    /* Card adjustments */
    .card, .product-card, .feature-card {
        padding: 20px 15px;
    }

    .card-image, .product-img {
        height: 200px;
    }
}

/* Small Mobile (360px - 479px) */
@media (min-width: 360px) and (max-width: 479px) {
    html {
        font-size: 13px;
    }

    .container, .header-container, .footer-container, .main-container {
        max-width: 100%;
        padding: 0 5vw;
    }

    /* Grid adjustments */
    .cards-grid, .product-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Hero section */
    .hero {
        min-height: 60vh;
        padding: 60px 10px 20px;
    }

    .hero h1 {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }

    .hero p {
        font-size: clamp(0.8rem, 3.5vw, 0.95rem);
    }

    /* Section titles */
    .section-title h2, .page-title h1 {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
    }

    /* Card adjustments */
    .card, .product-card, .feature-card {
        padding: 18px 12px;
    }

    .card-image, .product-img {
        height: 180px;
    }
}

/* Extra Small Mobile (up to 359px) */
@media (max-width: 359px) {
    html {
        font-size: 12px;
    }

    .container, .header-container, .footer-container, .main-container {
        max-width: 100%;
        padding: 0 3vw;
    }

    /* Grid adjustments */
    .cards-grid, .product-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Hero section */
    .hero {
        min-height: 55vh;
        padding: 50px 8px 15px;
    }

    .hero h1 {
        font-size: clamp(1.2rem, 8vw, 1.6rem);
    }

    .hero p {
        font-size: clamp(0.75rem, 4vw, 0.9rem);
    }

    /* Section titles */
    .section-title h2, .page-title h1 {
        font-size: clamp(1.1rem, 7vw, 1.4rem);
    }

    /* Card adjustments */
    .card, .product-card, .feature-card {
        padding: 15px 10px;
    }

    .card-image, .product-img {
        height: 160px;
    }
}

/* Print Styles */
@media print {
    body {
        width: 100%;
        overflow: visible;
    }

    .hero, header, footer, .scroll-to-top {
        display: none;
    }

    .container, .main-container {
        max-width: 100%;
        padding: 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card-image img, .product-img img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .card, .product-card, .feature-card {
        background-color: #2a2a2a;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
