/* ============================================
   MOBILE RESPONSIVE STYLES
   Dedicated file for mobile-specific styles
   ============================================ */

/* Base mobile fixes for all screen sizes */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
}

.container, .container-fluid, .container-lg, .container-md, 
.container-sm, .container-xl, .container-xxl {
    width: 100%;
    padding-right: var(--bs-gutter-x,.75rem);
    padding-left: var(--bs-gutter-x,.75rem);
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    height: auto;
}

.row {
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    max-width: 100%;
}

/* Large tablets and small desktops */
@media (max-width: 992px) {
    /* Navigation */
    .navbar-brand img {
        height: 80px;
        width: auto;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 0;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 20px;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn-hero {
        min-width: 180px;
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .video-container {
        transform: none;
        border-radius: 15px;
    }
    
    .video-container:hover {
        transform: none;
    }
    
    .floating-product {
        width: 60px;
        height: 60px;
    }
    
    /* Cards and Flip Boxes */
    .flip-box {
        height: 400px;
        max-width: 100%;
    }
    
    /* Benefits section */
    .benefit-box {
        padding: 20px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Navigation */
    .navbar-brand {
        flex-wrap: nowrap;
        max-width: 75%;
    }
    
    .navbar-brand img {
        height: 60px;
        width: auto;
        max-width: 100%;
    }
    
    .navbar-brand img:nth-child(2) {
        width: 200px;
        height: auto;
    }
    
    .navbar .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 0;
        text-align: center;
    }
    
    .hero .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-image {
        margin-top: 2rem;
        text-align: center;
    }
    
    .hero-small {
        padding: 40px 0;
    }
    
    /* Featured Products */
    .flip-box {
        height: 450px;
    }
    
    /* Disable flip box animation on tablets for better usability */
    .flip-box-inner {
        transform-style: preserve-3d;
        transition: transform 0.3s;
    }
    
    /* About section */
    .about-content {
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Benefits section */
    .benefit-box {
        margin-bottom: 2rem;
    }
    
    /* Testimonials */
    .testimonial {
        padding: 1.5rem;
    }
    
    /* Contact */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Newsletter */
    .newsletter-form .form-control {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    /* Footer */
    footer h4, footer h5 {
        margin-top: 1.5rem;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        display: flex;
        align-items: center;
        max-width: 70%;
    }
    
    .navbar-brand img {
        height: 40px;
        width: auto;
    }
    
    .navbar-brand img:nth-child(2) {
        width: 150px;
        height: auto;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .d-flex.ms-3 {
        margin-top: 1rem;
        justify-content: center;
        width: 100%;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    /* Featured Products */
    .flip-box {
        height: 400px;
        margin-bottom: 1rem;
        overflow: hidden;
    }
    
    /* Completely disable flip animation on mobile */
    .flip-box-inner {
        transform-style: flat;
        transition: none;
    }
    
    .flip-box:hover .flip-box-inner {
        transform: none;
    }
    
    .flip-box-back {
        display: none;
    }
    
    .product-card {
        border-radius: 0.5rem;
    }
    
    /* Fix content width */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Contact Form */
    .contact-form .form-control,
    .contact-form .btn {
        padding: 0.75rem;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .social-icons {
        justify-content: center;
    }
    
    footer .col-md-6.text-md-end {
        text-align: center !important;
    }
    
    footer .mb-3.mb-md-0 {
        margin-bottom: 1rem !important;
    }
}

/* Extra Small Phones */
@media (max-width: 360px) {
    /* Navigation */
    .navbar-brand {
        max-width: 60%;
    }
    
    .navbar-brand img:first-child {
        height: 35px;
    }
    
    .navbar-brand img:nth-child(2) {
        width: 130px;
    }
    
    /* Hero Section */
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.875rem;
    }
    
    /* Layout */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Products and Cards */
    .flip-box {
        height: 350px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}
