/* ============================================
   Guna Arts IT Solutions - Responsive Styles
   Mobile-First Approach
   ============================================ */

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    /* Typography */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    /* Container */
    .container {
        padding: 0 2rem;
    }
    
    /* Hero */
    .hero {
        min-height: 650px;
    }
    
    .hero-slide {
        min-height: 650px;
    }
    
    .hero-slide-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-paragraph {
        font-size: 1.15rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Courses & Products Grid */
    .courses-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Hero Slider Arrows */
    .hero-slider-arrow {
        display: flex;
    }
    
    /* Courses & Products Grid */
    .courses-grid,
    .products-grid {
        gap: 1.5rem;
    }
    
    /* Mission/Vision Grid */
    .mv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Service Detail */
    .service-detail-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-detail-icon {
        order: 2;
    }
    
    .service-detail-text {
        order: 1;
    }
    
    .service-detail:nth-child(even) .service-detail-icon {
        order: 1;
    }
    
    .service-detail:nth-child(even) .service-detail-text {
        order: 2;
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    /* Typography */
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    /* Navigation */
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        display: flex;
    }
    
    /* Hero */
    .hero {
        min-height: 700px;
    }
    
    .hero-slide {
        min-height: 700px;
    }
    
    .hero-slide-content h1 {
        font-size: 4rem;
    }
    
    .hero-paragraph {
        font-size: 1.2rem;
        max-width: 900px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Courses & Products Grid */
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Hero Slider Arrows - Show on Desktop */
    .hero-slider-arrow {
        display: flex;
    }
}

/* Mobile Navigation (below 1024px) */
@media (max-width: 1023px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        gap: 0;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        display: block;
        width: 100%;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Mobile-specific improvements (below 768px) */
@media (max-width: 767px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 2.75rem;
        line-height: 1.1;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .services-grid,
    .features-grid,
    .team-grid,
    .mv-grid {
        gap: 1.5rem;
    }
    
    .service-detail {
        padding: 3rem 0;
    }
    
    .service-detail-content {
        gap: 2rem;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .testimonial-slide {
        padding: 1.5rem;
    }
    
    .testimonial-content {
        font-size: 1.05rem;
    }
    
    /* Improve touch targets on mobile */
    .btn,
    .nav-link,
    .testimonial-dot {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .hamburger {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better spacing for mobile forms */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Hero Slider Mobile */
    .hero-slider-arrow {
        display: none; /* Hide arrows on very small screens */
    }
    
    .hero-slider-controls {
        bottom: 1rem;
        gap: 0.5rem;
    }
    
    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 479px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-slide {
        min-height: 500px;
    }
    
    .hero-slide-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-slide-content .tagline {
        font-size: 1rem;
    }
    
    .hero-paragraph {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .section-title p {
        font-size: 0.95rem;
    }
    
    .service-card,
    .feature-card,
    .mv-card {
        padding: 1.5rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    .testimonial-content {
        font-size: 1rem;
    }
    
    .service-detail-content {
        gap: 1.5rem;
    }
    
    .service-detail-icon {
        width: 80px;
        height: 80px;
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    /* Hero Slider */
    .hero-slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider-arrow.prev {
        left: 0.5rem;
    }
    
    .hero-slider-arrow.next {
        right: 0.5rem;
    }
    
    .hero-slider-arrow i {
        width: 20px;
        height: 20px;
    }
    
    .hero-slider-controls {
        bottom: 1rem;
    }
}

/* Extra Small Mobile (below 360px) */
@media (max-width: 359px) {
    .container {
        padding: 0 0.75rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .tagline {
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .service-card,
    .feature-card,
    .mv-card,
    .contact-form,
    .contact-info {
        padding: 1rem;
    }
}

