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

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {

    /* Why Choose Us */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Company Overview */
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Hero Slider */
    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {

    /* Container */
    .container {
        padding: 0 16px;
    }

    /* Typography */
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    /* Section Spacing */
    section {
        padding: 48px 0;
    }

    /* Header */
    .top-bar {
        display: none;
        /* Hide top bar on mobile */
    }

    .main-header {
        height: 60px;
    }

    .logo img {
        max-height: 32px;
    }

    /* Hero Slider */
    .hero-slider {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .slide-content .btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    /* Company Overview */
    .overview-grid {
        gap: 32px;
    }

    .overview-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-box {
        padding: 24px 20px;
    }

    .stat-box i {
        font-size: 36px;
    }

    .stat-box h3 {
        font-size: 40px;
    }

    /* Product Cards */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Why Choose Us */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-card {
        padding: 24px 20px;
    }

    /* Certifications */
    .cert-badges {
        gap: 20px;
    }

    /* Mobile Alignment Fixes */
    h2,
    h3 {
        text-align: center;
    }

    .cert-content {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .cert-text {
        max-width: 100%;
        text-align: center;
    }

    .cert-text h3 {
        text-align: center;
    }

    .cert-text p {
        text-align: center;
    }

    .cert-label {
        margin: 0 auto 12px;
    }

    .cert-badges {
        justify-content: center;
    }

    .heading-container {
        text-align: center;
    }

    .heading-container h2,
    .heading-container h3,
    .heading-container p {
        text-align: center;
    }

    .section-subtitle {
        text-align: center;
    }

    /* CTA Banner */
    .cta-left h2 {
        font-size: 24px;
    }

    .cta-left p {
        font-size: 14px;
    }

    .cta-features li {
        font-size: 14px;
    }

    .cta-features i {
        font-size: 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        margin-bottom: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-bottom .legal-links {
        justify-content: center;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {

    /* Typography */
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }

    /* Section Spacing */
    section {
        padding: 40px 0;
    }

    /* Header */
    .main-header {
        height: 56px;
    }

    .logo img {
        max-height: 28px;
    }

    /* Hero Slider */
    .hero-slider {
        height: 350px;
    }

    .slide-content {
        padding: 0 16px;
    }

    .slide-content h1 {
        font-size: 26px;
    }

    .slide-content p {
        font-size: 13px;
        max-width: 100%;
    }

    .slide-content .btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .prev-btn,
    .next-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .slider-dots {
        bottom: 15px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    /* Company Overview - Hide images on mobile */
    .overview-grid img {
        display: none;
    }

    .overview-text {
        text-align: center;
    }

    .overview-text h2 {
        text-align: center;
    }

    .subheading {
        text-align: center;
    }

    /* Product Cards */
    .card-image {
        height: 200px;
    }

    .product-card {
        padding: 16px;
    }

    /* Why Choose Us */
    .why-card {
        padding: 20px 16px;
    }

    .why-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .why-card h4 {
        font-size: 16px;
    }

    .why-card p {
        font-size: 13px;
    }

    /* Certifications */
    .cert-text h3 {
        font-size: 22px;
    }

    .cert-text p {
        font-size: 13px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 24px 16px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .client-name {
        font-size: 14px;
    }

    .client-role {
        font-size: 12px;
    }

    /* CTA Banner */
    .cta-card {
        padding: 28px 20px;
    }

    .cta-card h3 {
        font-size: 20px;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .contact-item a {
        font-size: 13px;
        word-break: break-all;
    }

    .cta-buttons .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

    .footer-col p {
        text-align: center;
    }

    .footer-col ul {
        text-align: center;
    }

    .contact-details p {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom {
        font-size: 12px;
    }

    .footer-bottom .legal-links a {
        font-size: 12px;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .hero-slider {
        height: 300px;
    }

    .slide-content h1 {
        font-size: 22px;
    }

    .slide-content p {
        font-size: 12px;
    }

    .stat-box h3 {
        font-size: 32px;
    }

    .cert-badge {
        width: 60px;
        height: 60px;
    }

    .cert-badge i {
        font-size: 14px;
    }

    .cert-num {
        font-size: 11px;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
        min-height: 400px;
    }

    .slide-content {
        justify-content: center;
    }

    section {
        padding: 32px 0;
    }
}