/* ===== Responsive layer ===== */

html {
    scroll-padding-top: 90px;
}

img {
    max-width: 100%;
    height: auto;
}

.hero .container,
.services-section .container,
#projects .container,
.about-pro .container,
#contact .container,
.footer-advanced .container {
    position: relative;
    z-index: 2;
}

.hero h1,
.hero .display-2 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.08;
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.35rem) !important;
    max-width: 720px;
}

@keyframes servicesAutoMobile {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1199.98px) {
    .project-layout {
        gap: 40px;
        grid-template-columns: 1fr 1fr;
    }

    .project-info {
        padding: 32px;
    }

    .services-track,
    .tech-track {
        gap: 32px;
    }

    .service-card {
        min-width: 340px;
        padding: 36px 28px;
    }

    .footer-advanced::after {
        font-size: 110px;
    }
}

@media (max-width: 991.98px) {
    section,
    .about-pro,
    .services-section {
        padding: 72px 0;
    }

    #services,
    #projects,
    #about,
    #contact {
        min-height: auto;
    }

    #services {
        display: block;
        align-items: stretch;
    }

    #services .container,
    #services .services-marquee {
        width: 100%;
    }

    .services-section {
        display: block;
    }

    .services-section .container {
        margin-bottom: 24px;
    }

    .services-header {
        text-align: left !important;
        margin-bottom: 0;
    }

    .services-subtitle {
        max-width: 680px;
        margin-bottom: 0;
    }

    .services-marquee {
        margin: 0;
        padding: 8px 24px 10px;
        overflow: hidden;
    }

    .services-marquee::before,
    .services-marquee::after {
        width: 36px;
    }

    .services-track {
        width: max-content;
        display: flex;
        align-items: stretch;
        gap: 20px;
        animation: servicesAutoMobile 28s linear infinite !important;
        will-change: transform;
        padding-bottom: 8px;
    }

    .services-track .service-card:nth-child(n + 7) {
        display: block;
    }

    .service-card,
    .service-card:nth-child(odd),
    .service-card:nth-child(even) {
        flex: 0 0 auto;
        width: clamp(280px, 38vw, 340px);
        min-width: clamp(280px, 38vw, 340px);
        height: 100%;
        animation: none !important;
        transform: none !important;
    }

    .navbar {
        padding: 1rem 0;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.95);
    }

    .navbar-nav {
        gap: 0.35rem;
    }

    .navbar-nav .nav-link {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .navbar-nav .btn {
        width: 100%;
        margin-top: 0.75rem;
    }

    .hero {
        min-height: auto;
        padding: 140px 0 150px;
    }

    .hero-shapes {
        opacity: 0.6;
    }

    .blob,
    .shape {
        filter: blur(90px);
    }

    .hero-tech {
        padding: 16px 0;
    }

    .tech-item {
        min-width: 68px;
    }

    .tech-item img {
        width: 32px;
        height: 32px;
    }

    .services-header h2,
    .contact-left h2 {
        font-size: clamp(2rem, 4.5vw, 2.75rem);
    }

    .service-card {
        min-width: 300px;
    }

    .project-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .project-layout::before {
        display: none;
    }

    .project-image,
    .project-info {
        max-width: 100%;
    }

    .project-meta {
        gap: 18px;
        flex-wrap: wrap;
    }

    .project-link {
        margin-left: 0;
    }

    .features-pro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-left,
    .contact-form-box {
        max-width: 100%;
    }

    .footer-advanced::after {
        font-size: 72px;
        letter-spacing: 6px;
        bottom: 24px;
    }
}

@media (max-width: 767.98px) {
    html {
        scroll-padding-top: 76px;
    }

    body {
        font-size: 15px;
    }

    .section-title {
        margin-bottom: 1.75rem;
    }

    .hero {
        padding: 118px 0 138px;
    }

    .hero::after {
        width: 520px;
        height: 260px;
        bottom: -120px;
    }

    .hero .badge {
        font-size: 0.8rem;
        white-space: normal;
        text-align: center;
    }

    .hero .lead {
        margin-bottom: 2rem !important;
    }

    .hero .d-flex.gap-3 {
        flex-direction: column;
        align-items: stretch;
    }

    .hero .btn {
        width: 100%;
    }

    .services-header {
        margin-bottom: 24px;
    }

    .services-marquee {
        padding: 12px 18px 10px;
    }

    .services-track {
        gap: 16px;
        animation-duration: 24s !important;
    }

    .service-card {
        width: clamp(258px, 78vw, 300px);
        min-width: clamp(258px, 78vw, 300px);
        padding: 24px 18px;
        border-radius: 24px;
    }

    .service-card h4 {
        font-size: 1.15rem;
    }

    .service-features li {
        font-size: 0.95rem;
    }

    #projects .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    #projects .d-flex.gap-2 {
        width: 100%;
        justify-content: center;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
    }

    .project-info {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .project-info h3 {
        font-size: 1.45rem;
    }

    .project-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .project-link {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .about-pro {
        padding: 80px 0;
    }

    .about-img {
        max-width: 420px;
    }

    .about-glow {
        width: 260px;
        height: 260px;
        filter: blur(100px);
        opacity: 0.22;
        left: 50%;
        transform: translateX(-50%);
    }

    .features-pro {
        grid-template-columns: 1fr;
    }

    .stats-modern {
        flex-direction: column;
    }

    .contact-creative {
        padding: 80px 0;
    }

    .contact-creative::before,
    #contact::before {
        width: 320px;
        height: 320px;
        filter: blur(110px);
    }

    .contact-form-box {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .input-group input,
    .input-group textarea,
    .btn-submit {
        padding: 14px;
    }

    .footer-advanced {
        padding-top: 64px;
    }

    .footer-advanced::after {
        font-size: 46px;
        letter-spacing: 4px;
    }
}

@media (max-width: 575.98px) {
    section,
    .about-pro,
    .services-section,
    .contact-creative {
        padding: 64px 0;
    }

    .services-header {
        text-align: left !important;
    }

    .services-marquee {
        padding: 12px 16px 10px;
    }

    .services-track {
        gap: 14px;
        animation-duration: 22s !important;
    }

    .service-card {
        width: calc(100vw - 64px);
        min-width: calc(100vw - 64px);
    }

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero {
        padding: 104px 0 126px;
    }

    .hero .display-2,
    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .hero .lead {
        font-size: 1rem !important;
    }

    .hero-tech {
        padding: 12px 0;
    }

    .tech-track {
        gap: 20px;
    }

    .tech-item span {
        font-size: 12px;
    }

    .services-header h2,
    .contact-left h2,
    .section-title {
        font-size: 1.9rem;
    }

    .services-subtitle,
    .about-description,
    .contact-left p,
    .project-info p {
        font-size: 0.96rem;
    }

    .services-track {
        grid-auto-columns: minmax(248px, calc(100vw - 56px));
    }

    .project-image img {
        border-radius: 18px;
    }

    .project-meta {
        grid-template-columns: 1fr;
    }

    .feature-pro,
    .stat-modern {
        padding: 18px;
    }

    .contact-info {
        gap: 6px;
        font-size: 0.95rem;
    }

    .footer-advanced::after {
        font-size: 30px;
        letter-spacing: 2px;
        bottom: 18px;
    }

    .footer-advanced .row {
        margin-bottom: 2rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
