/* ===========================
   Responsive Design - Mobile First
   =========================== */

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-title {
        font-size: 3.8rem;
    }
    
    .about-content {
        padding-right: 20px;
    }
    
    .contact-info {
        padding-right: 20px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991px) {
    /* Header adjustments */
    .top-header {
        text-align: center;
    }
    
    .header-info {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .header-social {
        text-align: center !important;
    }
    
    /* Navigation */
    .navbar-toggler {
        border: 2px solid #4CAF50;
        border-radius: 5px;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2876, 175, 80, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar-collapse {
        margin-top: 15px;
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: #f8f9fa;
        border: none;
        box-shadow: none;
    }
    
    /* Hero section */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    /* Features */
    .feature-box {
        margin-bottom: 30px;
    }
    
    /* About section */
    .about-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
        margin: 30px 0;
    }
    
    .about-image {
        text-align: center;
    }
    
    .experience-badge {
        position: relative;
        top: auto;
        right: auto;
        display: inline-block;
        margin-top: 20px;
    }
    
    /* Services */
    .service-card {
        margin-bottom: 30px;
    }
    
    /* Products */
    .product-item {
        margin-bottom: 30px;
    }
    
    /* Contact */
    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    /* Footer */
    .footer-visitor-counter {
        text-align: center;
        margin: 15px 0;
    }

    .footer-terms {
        text-align: left !important;
        margin-top: 20px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    /* Header */
    .top-header {
        padding: 8px 0;
        font-size: 13px;
    }
    
    .header-info span {
        display: block;
        margin-bottom: 5px;
        margin-right: 0;
    }
    
    .header-social a {
        margin: 0 5px;
    }
    
    .main-header {
        padding: 10px 0;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .hero-prev {
        left: 15px;
    }
    
    .hero-next {
        right: 15px;
    }
    
    /* Features */
    .feature-icon {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 28px;
    }
    
    /* About */
    .about-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    /* Services */
    .service-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 24px;
        margin: -40px auto 20px;
    }
    
    /* Products */
    .product-filter {
        text-align: center;
    }
    
    .filter-btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    /* Contact */
    .contact-item {
        text-align: center;
        flex-direction: column;
        margin-bottom: 25px;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    /* Footer */
    .footer-widget {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .footer-terms a {
        display: block;
        margin: 10px 0;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding: 0 10px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Hero */
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    /* Features */
    .feature-box {
        padding: 30px 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 24px;
    }
    
    /* Services */
    .service-content {
        padding: 20px;
    }
    
    /* Products */
    .product-content {
        padding: 20px;
    }
    
    /* Testimonials */
    .testimonial-content {
        padding: 25px 20px;
    }
    
    .testimonial-text p {
        font-size: 16px;
    }
    
    .testimonial-author {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Contact */
    .form-control {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer-top {
        padding: 60px 0 30px;
    }
    
    .footer-widget p {
        font-size: 14px;
    }
}

/* Ultra small devices (less than 480px) */
@media (max-width: 479px) {
    /* Hero */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* Navigation dots */
    .hero-dots {
        bottom: 20px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    /* Features */
    .feature-box {
        padding: 25px 15px;
    }
    
    /* About stats */
    .stat-item h3 {
        font-size: 2rem;
    }
    
    /* Back to top */
    .back-to-top {
        width: 45px;
        height: 45px;
        line-height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .hero-content {
        padding: 20px 0;
    }
}

/* Print styles */
@media print {
    .header-area,
    .hero-navigation,
    .hero-dots,
    .back-to-top,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        height: auto;
        background: white !important;
    }
    
    .hero-slide::before {
        display: none;
    }
    
    .hero-content {
        color: black !important;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    
    .hero-slide::before {
        background: rgba(0,0,0,0.7);
    }
    
    .nav-link::after {
        height: 3px;
    }
}