/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --text-6xl: 3rem;
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --space-3xl: 4rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

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

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Adjust hero section for tablets */
    .hero {
        padding: var(--space-2xl) var(--space-md);
        min-height: 400px;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-xl);
    }
    
    .banner-slider-item {
        height: 400px;
    }
    
    /* Ensure language toggle stays on right */
    .language-dropdown {
        margin-left: auto;
    }
    
    /* Adjust logo for tablets */
    .logo {
        font-size: var(--text-xl);
    }
    
    .logo-sangli {
        font-size: var(--text-sm);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
        --space-3xl: 3rem;
        --space-2xl: 2rem;
        --space-xl: 1.5rem;
    }

    /* Navigation */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    /* Hero */
    .hero {
        margin-top: 60px;
        min-height: 350px;
        padding: var(--space-3xl) 0;
    }
    
    .banner-slider-item {
        height: 350px;
    }

    .hero-content {
        padding: var(--space-md);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: var(--space-sm);
    }

    .btn {
        width: 100%;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }

    /* Sections */
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .section-header {
        text-align: center;
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }

    /* Cards */
    .card {
        max-width: 100%;
    }
    
    .card-img {
        height: 200px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }

    .social-links {
        justify-content: center;
    }
    
    /* Chatbot */
    .chatbot-widget {
        width: 300px;
        height: 400px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --text-6xl: 2rem;
        --text-5xl: 1.75rem;
        --space-3xl: 2.5rem;
    }
    
    .hero {
        min-height: 300px;
    }
    
    .banner-slider-item {
        height: 300px;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .chatbot-widget {
        width: 280px;
        height: 350px;
        right: 10px;
        bottom: 80px;
    }
    
    .chatbot-header h3 {
        font-size: var(--text-lg);
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    :root {
        --text-6xl: 1.75rem;
        --text-5xl: 1.5rem;
        --space-3xl: 2rem;
    }
    
    .hero-title {
        font-size: var(--text-xl);
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .chatbot-widget {
        width: 250px;
        height: 320px;
    }
    
    .chatbot-header h3 {
        font-size: var(--text-base);
    }
    
    .chatbot-message {
        max-width: 90%;
        padding: var(--space-xs);
        font-size: var(--text-xs);
    }
    
    /* Language toggle */
    .language-dropdown {
        bottom: 90px;
        right: 10px;
    }
    
    /* Adjust logo for extra small mobile */
    .logo {
        font-size: var(--text-sm);
    }
    
    .logo-sangli {
        font-size: 0.5rem;
        margin-top: -1px;
    }
    
    .logo img {
        height: 20px;
    }
}