/* Responsive Styles for Tablets and Mobile Devices */

/* Tablet Styles (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-content {
        gap: 40px;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-premium,
    .product-category {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

/* Mobile Styles (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Navigation */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 10px 20px;
        font-size: 18px;
    }

    .nav-quote-btn {
        display: inline-block !important;
        margin-top: 10px;
    }

    /* Hero Section */
    .hero {
        padding: 100px 20px 60px 20px;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Sections */
    section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* About Section */
    .about-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 40px;
    }

    .about-stat-card {
        padding: 30px 20px;
    }

    .about-stat-number {
        font-size: 2.2rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-icon-box {
        width: 70px;
        height: 70px;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-title {
        font-size: 1.8rem;
    }

    .contact-item {
        padding: 25px;
    }

    .contact-icon {
        width: 55px;
        height: 55px;
    }

    .contact-form-wrapper {
        padding: 35px 25px;
    }

    .contact-form-title {
        font-size: 1.7rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-about {
        max-width: 100%;
    }

    /* Theme Selector */
    .theme-selector {
        bottom: 20px;
        right: 20px;
    }

    .theme-toggle-btn {
        width: 55px;
        height: 55px;
    }

    .back-to-top {
        bottom: 85px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        width: 150px;
        height: 40px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-badge {
        font-size: 0.85rem;
        padding: 6px 18px;
    }

    .about-features-grid {
        gap: 12px;
    }

    .feature-card {
        padding: 25px 18px;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-stat-card {
        padding: 25px 20px;
    }

    .about-stat-number {
        font-size: 2rem;
    }

    .about-stat-label {
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .about-text h3 {
        font-size: 1.4rem;
    }

    .about-text p,
    .about-features li {
        font-size: 0.95rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-icon-box {
        width: 65px;
        height: 65px;
    }

    .service-features li {
        font-size: 0.9rem;
    }

    .product-info h3 {
        font-size: 1.2rem;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 20px;
    }

    .product-specs li {
        font-size: 0.9rem;
    }

    .cta-content h2 {
        font-size: 1.7rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .cta-btn {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .contact-item {
        padding: 20px;
    }

    .contact-icon {
        width: 55px;
        height: 55px;
    }

    .contact-info-title {
        font-size: 1.6rem;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .contact-form-title {
        font-size: 1.5rem;
    }

    .contact-form-subtitle {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 15px;
    }

    .footer .container {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .theme-menu {
        right: -10px;
        min-width: 180px;
    }

    .theme-option {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Landscape Mobile (max-height: 500px) */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 20px 60px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    section {
        padding: 50px 20px;
    }
}

/* Print Styles */
@media print {
    .theme-selector,
    .back-to-top,
    .mobile-menu-btn,
    .hero-buttons {
        display: none;
    }

    #header {
        position: relative;
        box-shadow: none;
    }

    section {
        page-break-inside: avoid;
    }

    .hero {
        min-height: auto;
        padding: 60px 20px;
        background: #3b82f6;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* High Resolution Displays */
@media screen and (min-resolution: 2dppx) {
    .product-image img,
    .gallery-item img,
    .about-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (if user prefers dark mode) */
@media (prefers-color-scheme: dark) {
    /* This is optional - only if you want auto dark mode support */
    /* Currently the website uses light theme by default */
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .theme-option,
    .service-card,
    .product-card,
    .gallery-item {
        -webkit-tap-highlight-color: transparent;
    }

    .nav-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .theme-toggle-btn {
        min-width: 48px;
        min-height: 48px;
    }
}
