/* Responsive Styles */
@media (max-width: 1199.98px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-item .btn-premium {
        margin-top: 10px;
        width: 100%;
        padding: 15px;
        border-radius: 10px;
    }

    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-section::before {
        width: 400px;
        height: 400px;
        right: 50%;
        transform: translate(50%, -50%);
        top: 50%;
        opacity: 0.1;
    }

    .hero-image {
        margin-top: 60px;
    }

    .section {
        padding: 80px 0;
    }

    .process-number {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 0px;
        display: block;
    }

    .process-card {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .top-bar .contact-info span {
        display: block;
        margin-bottom: 5px;
    }

    .top-bar .social-icons {
        margin-top: 10px;
    }

    .footer-widget {
        margin-bottom: 40px;
    }

    .tech-grid {
        gap: 20px;
    }

    .tech-item i {
        font-size: 2rem;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-form .btn {
        margin-top: 10px;
        width: 100%;
    }

    /* Process steps vertical line removal/adjustment if needed */
    .process-step {
        padding-left: 0;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-buttons .btn {
        display: flex;
        width: 100%;
        margin-bottom: 12px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .stat {
        margin-bottom: 24px;
    }

    .project-tags {
        justify-content: center;
    }

    .hero-stats .col-4 {
        width: 100%;
        text-align: center;
    }
}

/* Extra Small Devices (320px - 374px) */
@media (max-width: 374.98px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .btn-premium,
    .btn-outline-premium {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-card,
    .project-card {
        padding: 20px;
    }
}

/* Large Screens (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title h2 {
        font-size: 3rem;
    }

    .service-card,
    .project-card {
        padding: 40px;
    }
}

/* Ultra-Wide Screens (2560px+) */
@media (min-width: 2560px) {
    .container {
        max-width: 2000px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .section-title h2 {
        font-size: 3.5rem;
    }

    body {
        font-size: 1.125rem;
    }
}

/* Short Screens (Height < 600px) - Landscape Mobile/Tablets */
@media (max-height: 599.98px) {
    .carousel-item {
        min-height: 400px;
        height: 90vh;
    }

    .hero-slider h1 {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .hero-slider p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-header {
        padding: 40px 0 20px;
        min-height: 180px;
    }

    .section {
        padding: 40px 0;
    }

    .navbar {
        padding: 8px 0;
    }

    body {
        padding-top: 60px;
    }
}

/* Very Short Screens (Height < 500px) */
@media (max-height: 499.98px) {
    .carousel-item {
        min-height: 350px;
    }

    .hero-slider h1 {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .hero-slider p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .btn-lg {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Tablet Portrait (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .service-card,
    .project-card {
        padding: 28px;
    }

    .section {
        padding: 60px 0;
    }
}

/* Desktop/Laptop (1025px - 1920px) - Default Bootstrap handles this well */
@media (min-width: 1025px) and (max-width: 1920px) {

    /* Most styles are already optimal in this range */
    .container {
        max-width: 1320px;
    }
}