/* seven tejarat aras Homepage - Responsive Styles - Enhanced Version */
/* Mobile-first approach with breakpoints at 480px, 768px, 1024px, 1280px, and 1440px */

/* Base mobile styles (under 768px) */
@media (max-width: 767px) {
    :root {
        /* Adjust spacing for mobile */
        --container-padding: 1.25rem;
    }
    
    .hero-animation {
        height: 80vh; /* Smaller on mobile to prevent overflow issues */
    }
    
    /* Adjust hero section overlap for mobile */
    .hero-section {
        margin-top: -100px; /* Increased negative margin to hide Spline watermark on mobile */
        padding-top: 80px; /* Increased padding to compensate for the larger negative margin */
        position: relative;
        z-index: 2; /* Ensure hero section appears above the animation */
        background-color: var(--color-background); /* Solid background to cover the watermark */
    }
    
    /* Improve mobile typography */
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-md);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    /* Improve spacing on mobile */
    .feature-card,
    .tool-card,
    .resource-card {
        padding: var(--spacing-lg);
    }
    
    /* Adjust button sizes for better touch targets */
    .btn {
        padding: 0.875rem 1.5rem;
    }
}

/* Small devices (480px and up) */
@media (min-width: 480px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .client-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    /* Container */
    .container {
        padding-inline: 2rem;
    }
    
    /* Header */
    .header-container {
        padding: 0 2rem;
    }
    
    .auth-buttons .btn-primary {
        display: inline-flex;
    }
    
    /* Hero section */
    .hero-section {
        padding: var(--spacing-3xl) 0 var(--spacing-4xl);
        margin-top: -60px; /* Desktop negative margin to hide Spline watermark */
        position: relative;
        z-index: 2; /* Ensure hero section appears above the animation */
        background-color: var(--color-background); /* Solid background to cover the watermark */
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--spacing-2xl);
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-lg);
    }
    
    /* Carousel section */
    .carousel-slide {
        flex-direction: row;
    }
    
    .video-container {
        flex: 0 0 60%;
        padding-top: 33.75%; /* Maintain 16:9 aspect ratio for 60% width */
    }
    
    .slide-content {
        flex: 0 0 40%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Features section */
    .feature-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Business Tools Section */
    .tools-content {
        grid-template-columns: 3fr 2fr;
    }
    
    /* Supplies section */
    .supplies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .supply-category:first-child {
        grid-column: 1 / -1;
    }
    
    .bulk-discounts {
        grid-column: 1 / -1;
    }
    
    /* Resources section */
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* CTA section */
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Footer */
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-meta {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    /* Header */
    .menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: block;
    }
    
    .nav-menu {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-item {
        position: relative;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        color: var(--color-text);
        text-decoration: none;
        font-weight: 500;
    }
    
    .nav-link:hover {
        color: var(--color-primary);
        text-decoration: none;
    }
    
    .has-dropdown .nav-link::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        margin-left: 0.5rem;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid currentColor;
        vertical-align: middle;
    }
    
    html[dir="rtl"] .has-dropdown .nav-link::after {
        margin-left: 0;
        margin-right: 0.5rem;
    }
    
    .auth-buttons .btn-secondary {
        display: inline-flex;
    }
    
    /* Hero section */
    .hero-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    /* Supplies section */
    .supplies-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .supply-category:first-child {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    
    .bulk-discounts {
        grid-column: 4 / 5;
        grid-row: 1 / 3;
    }
    
    /* Footer */
    .footer-columns {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .app-download {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-lg);
        text-align: left;
    }
    
    html[dir="rtl"] .app-download {
        text-align: right;
    }
}

/* Extra large devices (large desktops, 1280px and up) */
@media (min-width: 1280px) {
    /* Container */
    .container {
        padding-inline: 3rem;
    }
    
    /* Header */
    .header-container {
        padding: 1rem 3rem;
    }
    
    /* Hero section */
    .hero-section {
        display: flex;
        align-items: center;
        min-height: 500px;
    }
    
    .hero-content {
        max-width: 900px;
    }
    
    /* Carousel section */
    .carousel {
        margin: 0 auto;
        max-width: 1200px;
    }
    
    /* Business Tools Section */
    .tools-content {
        gap: var(--spacing-xl);
    }
    
    /* Testimonials section */
    .testimonial-slide {
        padding: var(--spacing-xxl);
        max-width: 900px;
        margin: 0 auto;
    }
    
    .testimonial {
        font-size: 1.5rem;
    }
    
    .client-logos {
        grid-template-columns: repeat(4, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }
    
    /* Resources section */
    .resources-image img {
        max-height: 400px;
        object-fit: cover;
        width: 100%;
    }
}

/* Extra extra large devices (1440px and up) */
@media (min-width: 1440px) {
    .hero-content {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    .site-header,
    .carousel-controls,
    .hero-cta,
    .footer-bottom,
    .back-to-top {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }
}

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