/* ================= HEADER & PRE-HEADER RESPONSIVE ================= */

/* Pre-Header Responsive */
@media (max-width: 1200px) {
    .pre-header .d-flex {
        gap: 2rem !important;
    }

    .pre-header span {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .pre-header {
        padding: 10px 0;
    }

    .pre-header .col-md-8 .d-flex {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem !important;
        margin-bottom: 10px;
    }

    .pre-header .col-md-4 .d-flex {
        justify-content: center !important;
    }

    .pre-header span {
        font-size: 12px;
        white-space: nowrap;
    }

    .pre-header a {
        font-size: 14px;
        margin: 0 3px;
    }
}

@media (max-width: 768px) {
    .pre-header {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .pre-header {
        padding: 6px 0;
        display: none !important;
    }

    .pre-header .d-flex {
        gap: 0.5rem !important;
        flex-direction: column;
        align-items: center;
    }

    .pre-header span {
        font-size: 10px;
        margin: 1px 0;
        text-align: center;
    }

    .pre-header .col-md-4 .d-flex {
        flex-direction: row !important;
        margin-top: 5px;
    }
}

/* Main Header Responsive */
@media (max-width: 1200px) {
    .navbar-brand img {
        max-height: 55px;
    }

    .navbar-nav .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }

    .btn-header-quote {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    .navbar-brand img {
        max-height: 50px;
    }

    .navbar-toggler {
        border: 1px solid var(--secondary);
        padding: 4px 8px;
        font-size: 14px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(223, 249, 148, 0.25);
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(6, 29, 36, 0.98);
        padding: 60px 1rem 2rem;
        border-radius: 0;
        border: none;
        backdrop-filter: blur(10px);
        transition: right 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-nav {
        gap: 0 !important;
        text-align: left;
        margin-top: 0;
    }

    .navbar-nav .nav-link {
        padding: 15px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .btn-header-quote {
        margin-top: 20px;
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    /* Close button for sidebar */
    .sidebar-close {
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        font-size: 30px;
        color: #fff;
        cursor: pointer;
        z-index: 10000;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-close:hover {
        color: var(--secondary);
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        max-height: 45px;
    }

    .navbar-collapse {
        margin-top: 0.8rem;
        padding: 0.8rem;
    }

    .navbar-nav .nav-link {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn-header-quote {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 40px;
    }

    .navbar-toggler {
        padding: 3px 6px;
        font-size: 12px;
    }

    .navbar-collapse {
        margin-top: 0px !important;
        padding: 0.6rem;
        border-radius: unset !important;
    }

    .navbar-nav .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .btn-header-quote {
        padding: 8px;
        font-size: 12px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .pre-header span {
        font-size: 9px;
    }

    .pre-header a {
        font-size: 11px;
    }

    .navbar-brand img {
        max-height: 35px !important;
        margin-right: 10px !important;
    }

    .navbar-nav .nav-link {
        font-size: 14px;
        padding: 4px 10px;
        margin: 10px 0 !important;
    }
}

/* ================= HOME PAGE RESPONSIVE ================= */

/* Banner Section */
@media (max-width: 1200px) {
    .banner-title {
        font-size: 42px;
        line-height: 1.2;
    }

    .banner-text {
        font-size: 16px;
    }

    .banner-buttons .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .banner-title {
        font-size: 36px;
    }

    .banner-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .banner-buttons {
        text-align: center;
    }

    .banner-buttons .btn {
        margin: 5px;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 32px;
        text-align: center;
    }

    .banner-text {
        font-size: 14px;
        text-align: center;
    }

    .banner-buttons .btn {
        width: 100%;
        margin: 5px 0;
        padding: 14px;
    }
}

@media (max-width: 576px) {
    .banner-title {
        font-size: 28px;
    }

    .banner-text {
        font-size: 13px;
    }
}

/* About Section */
@media (max-width: 1200px) {
    .about-title {
        font-size: 32px;
    }

    .about-text {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .about-title {
        font-size: 28px;
        text-align: center;
    }

    .about-text {
        font-size: 14px;
        text-align: center;
    }

    .about-card-modern {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 24px;
    }

    .about-card-modern {
        padding: 25px;
        text-align: center;
    }

    .card-icon {
        font-size: 40px;
    }
}

@media (max-width: 576px) {
    .about-title {
        font-size: 22px;
    }

    .about-card-modern {
        padding: 20px;
    }

    .about-card-modern h5 {
        font-size: 16px;
    }

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

/* Service Section */
@media (max-width: 1200px) {
    .service-intro {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .special-services .row.align-items-center {
        text-align: center;
    }

    .special-services h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .service-intro {
        font-size: 14px;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .vertical-line {
        display: none;
    }

    .special-services h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .service-box {
        padding: 25px;
        text-align: center;
        margin-bottom: 20px;
    }

    .service-icon {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .service-box h5 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .service-box p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .special-services h2 {
        font-size: 20px;
    }

    .service-box {
        padding: 20px;
    }

    .service-box h5 {
        font-size: 15px;
    }

    .service-box p {
        font-size: 12px;
    }
}

/* Stats Section */
@media (max-width: 1200px) {
    .stats-title {
        font-size: 28px;
    }

    .counter {
        font-size: 48px;
    }
}

@media (max-width: 991px) {
    .stats-title {
        font-size: 26px;
    }

    .counter {
        font-size: 44px;
    }

    .counter-label {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .stats-title {
        font-size: 22px;
        line-height: 1.5;
    }

    .counter {
        font-size: 42px;
    }

    .counter-label {
        font-size: 13px;
    }

    .stats-section .col-lg-3 {
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .stats-title {
        font-size: 18px;
    }

    .counter {
        font-size: 36px;
    }

    .counter-label {
        font-size: 12px;
    }
}

/* Why Choose Section */
@media (max-width: 1200px) {
    .section-title {
        font-size: 28px;
    }

    .choose-item h5 {
        font-size: 16px;
    }

    .choose-item p {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .section-title {
        font-size: 24px;
        text-align: center;
    }

    .title-line {
        margin: 0 auto 20px;
    }

    .choose-item {
        text-align: center;
        margin-bottom: 25px;
    }

    .quote-form {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .choose-item {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .choose-icon {
        margin-bottom: 10px;
    }

    .quote-form .form-control {
        margin-bottom: 10px;
    }

    .quote-form .btn {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 20px;
    }

    .choose-item h5 {
        font-size: 15px;
    }

    .choose-item p {
        font-size: 13px;
    }
}

/* Partners Section */
@media (max-width: 991px) {
    .partner-logo {
        width: 160px;
        height: 60px;
    }

    .partner-logo img {
        max-width: 100px;
        max-height: 40px;
    }
}

@media (max-width: 768px) {
    .logo-item {
        width: 180px;
        height: 70px;
    }

    .logo-track {
        animation-duration: 18s;
    }

    .partner-logo {
        width: 140px;
        height: 50px;
    }

    .partner-logo img {
        max-width: 80px;
        max-height: 35px;
    }
}

@media (max-width: 576px) {
    .partner-logo {
        width: 120px;
        height: 45px;
    }

    .partner-logo img {
        max-width: 70px;
        max-height: 30px;
    }
}

/* Testimonial Section */
@media (max-width: 991px) {
    .testimonial-card {
        margin-bottom: 20px;
    }

    .carousel-item .col-lg-6:last-child {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 30px;
        text-align: center;
    }

    .testimonial-user {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .testimonial-user img {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 20px;
    }

    .testimonial-card h5 {
        font-size: 16px;
    }

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

/* Blog Section */
@media (max-width: 991px) {
    .blog-feature {
        margin-bottom: 30px;
    }

    .blog-feature h4 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .blog-feature img {
        height: 260px;
        object-fit: cover;
    }

    .blog-list-item {
        gap: 15px;
        padding: 20px 0;
    }

    .blog-list-item img {
        width: 80px;
        height: 80px;
    }

    .blog-list-item h6 {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .blog-feature h4 {
        font-size: 18px;
    }

    .blog-text {
        font-size: 13px;
    }

    .blog-list-item {
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }

    .blog-list-item img {
        width: 100%;
        height: 150px;
        border-radius: 8px;
    }
}

/* General Responsive Utilities */
@media (max-width: 768px) {
    .py-5 {
        padding: 40px 0 !important;
    }

    .mb-5 {
        margin-bottom: 30px !important;
    }

    .section-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .py-5 {
        padding: 30px 0 !important;
    }

    .mb-4 {
        margin-bottom: 20px !important;
    }

    .mb-5 {
        margin-bottom: 25px !important;
    }
}

/* ================= FOOTER RESPONSIVE ================= */

/* Footer Top Section */
@media (max-width: 1200px) {
    .footer-top {
        padding: 25px 0;
    }

    .footer-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .footer-top h6 {
        font-size: 15px;
    }

    .footer-top small {
        font-size: 12px;
    }
}

@media (max-width: 991px) {
    .footer-top {
        padding: 20px 0;
    }

    .footer-top .col-md-4 {
        margin-bottom: 20px;
        text-align: center;
    }

    .footer-top .col-md-4:last-child {
        margin-bottom: 0;
    }

    .footer-top .d-flex {
        justify-content: center;
        flex-direction: column;
        gap: 10px !important;
    }

    .footer-icon {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 15px 0;
    }

    .footer-top .col-md-4 {
        margin-bottom: 15px;
    }

    .footer-top h6 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .footer-top small {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .footer-top .d-flex {
        gap: 8px !important;
    }

    .footer-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .footer-top h6 {
        font-size: 13px;
        line-height: 1.3;
    }

    .footer-top small {
        font-size: 10px;
    }
}

/* Footer Content Section */
@media (max-width: 1200px) {
    .footer-content {
        padding: 60px 0 40px;
    }

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

    .footer-links a {
        font-size: 13px;
    }

    .footer-social a {
        font-size: 16px;
        margin-right: 8px;
    }
}

@media (max-width: 991px) {
    .footer-content {
        padding: 50px 0 30px;
    }

    .footer-content .col-lg-3 {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-content .col-lg-3:last-child {
        margin-bottom: 0;
    }

    .footer-content img {
        max-height: 80px;
        margin: 0 auto;
        display: block;
    }

    .footer-content p {
        text-align: center;
        margin-top: 15px;
    }

    .footer-social {
        text-align: center;
        margin-top: 20px;
    }

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

    .newsletter {
        max-width: 400px;
        margin: 0 auto;
        display: flex !important;
        flex-direction: row !important;
    }

    .newsletter input {
        flex: 1;
    }

    .newsletter button {
        background: var(--secondary) !important;
        color: #000 !important;
        border: none !important;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 40px 0 25px;
    }

    .footer-content .col-lg-3 {
        margin-bottom: 25px;
    }

    .footer-content img {
        max-height: 70px;
    }

    .footer-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

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

    .footer-links li {
        margin-bottom: 6px;
    }

    .footer-social a {
        font-size: 15px;
        margin-right: 6px;
    }

    .newsletter {
        display: flex !important;
        flex-direction: row !important;
        gap: 0;
        max-width: 100%;
    }

    .newsletter input {
        border-radius: 5px 0 0 5px !important;
        flex: 1;
    }

    .newsletter button {
        border-radius: 0 5px 5px 0 !important;
        padding: 12px 15px;
        background: var(--secondary) !important;
        color: #000 !important;
        border: none !important;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .footer-content {
        padding: 30px 0 20px;
    }

    .footer-content .col-lg-3 {
        margin-bottom: 20px;
    }

    .footer-content img {
        max-height: 60px;
    }

    .footer-content p {
        font-size: 13px;
        line-height: 1.5;
        margin-top: 10px;
    }

    .footer-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .footer-links a {
        font-size: 11px;
    }

    .footer-links li {
        margin-bottom: 4px;
    }

    .footer-social {
        margin-top: 15px;
    }

    .footer-social a {
        font-size: 14px;
        margin-right: 5px;
    }

    .newsletter input {
        padding: 10px;
        font-size: 13px;
        border-radius: 5px 0 0 5px !important;
        flex: 1;
    }

    .newsletter button {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 0 5px 5px 0 !important;
        background: var(--secondary) !important;
        color: #000 !important;
        border: none !important;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .footer-content img {
        max-height: 50px;
    }

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

    .footer-title {
        font-size: 16px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-social a {
        font-size: 14px;
    }
}

/* Footer Bottom Section */
@media (max-width: 991px) {
    .footer-bottom {
        padding: 12px 0;
    }

    .footer-bottom .col-md-6 {
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-bottom .col-md-6:last-child {
        margin-bottom: 0;
    }

    .footer-bottom .d-flex {
        justify-content: center !important;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        padding: 10px 0;
    }

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

    .footer-bottom a {
        font-size: 11px;
    }

    .footer-bottom .d-flex {
        gap: 12px;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .footer-bottom {
        padding: 8px 0;
    }

    .footer-bottom p {
        font-size: 13px;
        line-height: 1.4;
    }

    .footer-bottom a {
        font-size: 13px;
    }

    .footer-bottom .d-flex {
        gap: 10px;
        align-items: center;
        display: flex !important;
    }
    .footer-bottom .d-flex a{
        text-decoration: none !important;
    }
}

/* Scroll Top Button Responsive */
@media (max-width: 768px) {
    #scrollTopBtn {
        width: 45px;
        height: 45px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    #scrollTopBtn {
        width: 40px;
        height: 40px;
        font-size: 14px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    #scrollTopBtn {
        width: 35px;
        height: 35px;
        font-size: 12px;
        bottom: 12px;
        right: 12px;
    }
}

/* ================= END FOOTER RESPONSIVE ================= */

/* ================= END HOME PAGE RESPONSIVE ================= */

@media (max-width: 991px) {
    .main-header {
        top: 0;
        background: rgba(6, 29, 36, 0.95);
        backdrop-filter: blur(10px);
    }

    .main-header.sticky {
        background: rgba(6, 29, 36, 0.98);
    }

    .banner-title {
        font-size: 36px;
    }

    .pre-header .d-flex {
        justify-content: center;
    }

    .pre-header .gap-3 {
        gap: 1rem !important;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {

    .banner-title {
        font-size: 28px;
    }

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

    .pre-header {
        text-align: center;
    }
}
@media (max-width: 768px){
    .vertical-line{
        display:none;
    }

    .special-services h2{
        margin-bottom:20px;
    }
}
@media (max-width: 768px){
    .stats-title{
        font-size:22px;
        line-height:1.5;
    }

    .counter{
        font-size:42px;
    }
}
@media (max-width: 768px){
    .choose-item{
        gap:15px;
    }
}

@media (max-width:768px){
    .logo-item{
        width:180px;
        height:70px;
    }

    .logo-track{
        animation-duration:18s;
    }
}
@media (max-width:768px){
    .testimonial-card{
        padding:30px;
    }
}
@media (max-width:768px){
    .blog-feature img{
        height:260px;
    }

    .blog-list-item{
        gap:15px;
    }
}


@media (max-width: 991px) {
    .navbar-toggler {
        border: 1px solid var(--secondary);
        padding: 4px 8px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(223, 249, 148, 0.25);
    }

    .navbar-collapse {
        background: rgba(6, 29, 36, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid rgba(223, 249, 148, 0.2);
    }

    .footer-social a {
        font-size: 16px;
        margin-right: 8px;
    }
}

@media (max-width: 768px) {
    .loading .spinner {
        width: 40px;
        height: 40px;
    }

    .fade-in,
    .slide-up {
        transform: translateY(20px);
    }

    .service-box {
        padding: 25px;
    }

    .testimonial-card {
        padding: 25px;
    }

    .footer-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .newsletter {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter input,
    .newsletter button {
        border-radius: 5px !important;
    }
}

@media (max-width: 576px) {
    .pre-header {
        padding: 8px 0;
    }

    .pre-header .row {
        text-align: center;
    }

    .pre-header .col-md-8 .d-flex {
        justify-content: center;
        gap: 1rem !important;
        margin-bottom: 10px;
    }

    .pre-header .col-md-4 .d-flex {
        justify-content: center !important;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn-accent {
        padding: 10px 20px;
        font-size: 14px;
    }

    #scrollTopBtn {
        width: 45px;
        height: 45px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}
