/* Additional Responsive Styles */

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

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

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

    .about-content,
    .contact-content {
        gap: 40px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {

    /* Enhanced Mobile Color Scheme - Light Theme */
    :root {
        --primary-color: #f39c12;
        --secondary-color: #34495e;
        --accent-color: #e67e22;
        --text-color: #2c3e50;
        --light-gray: #ecf0f1;
        --dark-gray: #7f8c8d;
        --white: #ffffff;
        --shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    /* Force light backgrounds for cart and modal pages */
    body {
        background-color: #ffffff !important;
        color: #2c3e50 !important;
    }

    .modal-overlay {
        background: rgba(0, 0, 0, 0.7) !important;
    }

    .modal-content {
        background: #ffffff !important;
        color: #2c3e50 !important;
    }

    .cart-modal,
    .purchase-modal,
    .order-confirmation-modal,
    .customer-details-modal {
        background: #ffffff !important;
        color: #2c3e50 !important;
    }

    .cart-item,
    .cart-total,
    .modal-header,
    .modal-body,
    .modal-footer {
        background: #ffffff !important;
        color: #2c3e50 !important;
    }

    /* Navigation */
    .nav-container {
        padding: 1rem;
        background: linear-gradient(135deg, #f39c12, #e67e22);
    }

    .nav-logo span {
        font-size: 1.2rem;
        color: #ffffff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .logo {
        height: 40px;
    }

    /* Hero Section */
    .hero {
        height: 80vh;
        background: linear-gradient(rgba(243, 156, 18, 0.8), rgba(230, 126, 34, 0.8)),
            url('../assets/images/hero.png');
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        color: #fffacd;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        font-weight: 600;
    }

    .btn-primary {
        background: linear-gradient(135deg, #f39c12, #e67e22);
        box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, #e67e22, #d35400);
        transform: translateY(-3px);
    }

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

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

    .section-header h2 {
        font-size: 2.2rem;
        color: #2c3e50;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }

    .section-header p {
        font-size: 1rem;
        color: #7f8c8d;
    }

    /* About Section */
    .about {
        background: linear-gradient(135deg, #f8f9fa, #e8f4f8);
    }

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

    .about-text {
        order: 2;
    }

    .about-text h3 {
        color: #2c3e50;
    }

    .about-image {
        order: 1;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat {
        background: linear-gradient(135deg, #f39c12, #e67e22);
        color: white;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    }

    .stat h4 {
        font-size: 1.5rem;
        color: #ffffff;
    }

    .stat p {
        color: #fffacd;
    }

    /* Products Section */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .product-card {
        margin: 0;
        background: #ffffff !important;
        border: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        color: #333 !important;
        width: 100%;
    }

    .product-info h3 {
        color: #2c3e50 !important;
        font-size: 0.9rem;
    }

    .product-info p {
        color: #7f8c8d !important;
        font-size: 0.8rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-info ul li::before {
        color: #f39c12;
    }

    /* Services Section */
    .services {
        background: linear-gradient(135deg, #f8f9fa, #e8f4f8);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 1.5rem;
        background: linear-gradient(135deg, #ffffff, #f8f9fa);
        border: 1px solid #e67e22;
    }

    .service-icon {
        color: #f39c12;
    }

    .service-card h3 {
        color: #2c3e50;
    }

    /* Contact Section */
    .contact {
        background: linear-gradient(135deg, #f8f9fa, #e8f4f8);
    }

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

    .contact-info {
        order: 2;
    }

    .contact-info h3 {
        color: #2c3e50;
    }

    .contact-form {
        order: 1;
        padding: 1.5rem;
        background: linear-gradient(135deg, #ffffff, #f8f9fa);
        border: 1px solid #e67e22;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-item i {
        color: #f39c12;
    }

    .contact-item h4 {
        color: #2c3e50;
    }

    /* Footer */
    .footer {
        background: #ffffff !important;
        color: #333 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

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

    .footer-section {
        margin-bottom: 20px;
    }

    .footer-section h3,
    .footer-section h4 {
        color: #2c3e50 !important;
    }

    .footer-section ul li a {
        color: #333 !important;
    }

    .social-links {
        justify-content: center;
    }

    .social-links a {
        background: linear-gradient(135deg, #f39c12, #e67e22);
    }

    .social-links a:hover {
        background: #ffffff;
        color: #f39c12;
    }

    /* Cart Modal Styles */
    .modal-content {
        background: #ffffff !important;
        color: #333 !important;
    }

    .cart-item-details h4 {
        color: #2c3e50 !important;
    }

    .cart-item-details p {
        color: #7f8c8d !important;
    }

    /* Cart Modal Buttons */
    .modal-content .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: 80px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {

    /* Vibrant Small Mobile Color Scheme */
    :root {
        --primary-color: #ff6b35;
        --secondary-color: #1a1a2e;
        --accent-color: #ff9a3c;
        --text-color: #16213e;
        --light-gray: #f5f5f5;
        --dark-gray: #495057;
        --white: #ffffff;
        --shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0.8rem 1rem;
        background: linear-gradient(135deg, #ff6b35, #ff9a3c);
    }

    .nav-logo span {
        color: #ffffff;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    }

    .hero {
        height: 70vh;
        background: linear-gradient(rgba(255, 107, 53, 0.85), rgba(255, 154, 60, 0.85)),
            url('../assets/images/hero.png');
    }

    .hero-title {
        font-size: 1.8rem;
        color: #ffffff;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    }

    .hero-subtitle {
        font-size: 1rem;
        color: #fff5e6;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }

    .section-header h2 {
        font-size: 1.8rem;
        color: #16213e;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat {
        background: linear-gradient(135deg, #ff6b35, #ff9a3c);
        color: white;
        padding: 1.2rem;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    }

    .product-card,
    .service-card {
        margin: 0;
        background: #ffffff !important;
        border: none;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        color: #333 !important;
    }

    .product-info h3 {
        color: #2c3e50 !important;
    }

    .product-info p {
        color: #7f8c8d !important;
    }

    .contact-form {
        padding: 1rem;
        background: linear-gradient(135deg, #ffffff, #fafafa);
        border: 2px solid #ff6b35;
        border-radius: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
        border: 1px solid #ff6b35;
        border-radius: 8px;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #ff9a3c;
        box-shadow: 0 0 0 2px rgba(255, 154, 60, 0.2);
    }

    .btn-primary {
        background: linear-gradient(135deg, #ff6b35, #ff9a3c);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    }

    .footer {
        background: #ffffff !important;
        color: #333 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .footer-section h3,
    .footer-section h4 {
        color: #2c3e50 !important;
    }

    .footer-section ul li a {
        color: #333 !important;
    }

    .social-links a {
        background: linear-gradient(135deg, #ff6b35, #ff9a3c);
    }
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Screen Styles */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

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

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

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {

    .navbar,
    .hero-buttons,
    .social-links,
    .footer-bottom {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .hero {
        height: auto;
        background: none;
        color: var(--text-color);
    }

    .hero-title,
    .hero-subtitle {
        color: var(--text-color);
    }

    section {
        padding: 20px 0;
    }

    .product-card,
    .service-card {
        break-inside: avoid;
    }
}

/* Landscape Mobile Styles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }

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

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

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        width: auto;
        max-width: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #000;
        --text-color: #000;
        --white: #fff;
    }

    .btn-primary {
        border: 2px solid #000;
    }

    .product-card,
    .service-card {
        border: 2px solid #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e0e0e0;
        --light-gray: #1a1a1a;
        --dark-gray: #b0b0b0;
        --white: #2a2a2a;
    }

    .navbar {
        background: rgba(42, 42, 42, 0.95);
    }

    .product-card,
    .service-card,
    .contact-form {
        background: #333;
        color: #e0e0e0;
    }

    .footer {
        background: #1a1a1a;
    }
}