/* Responsive Styles */

/* Large desktops and laptops */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Tablets and small desktops */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Landscape phones and portrait tablets */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Portrait phones and smaller */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-column {
        margin-bottom: var(--spacing-md);
    }
    
    .footer-column:last-child {
        margin-bottom: 0;
    }
}

/* Small phones */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .btn + .btn {
        margin-left: 0;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .testimonial {
        padding: var(--spacing-md);
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
}

/* Navigation for mobile */
@media (max-width: 991px) {
    .header-container {
        padding: 0.75rem 1.5rem;
    }
    
    .logo img {
        height: 45px;
        max-width: 160px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 0;
        transition: 0.5s ease;
        z-index: 999;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
        width: 90%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        width: 100%;
        display: block;
        border-radius: 8px;
        margin: 0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Adjust product cards on smaller screens */
@media (max-width: 400px) {
    .product-card {
        margin: 0 auto;
        max-width: 300px;
    }
    
    .product-info {
        padding: var(--spacing-sm);
    }
}

/* Fix for mobile menu scroll */
body.menu-open {
    overflow: hidden;
}

/* Adjust hero section for very tall screens */
@media (min-height: 1000px) {
    .hero {
        min-height: 70vh;
    }
}

/* Fix for iOS viewport height issue */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}
