/**
 * Site-wide utilities, fonts, accessibility, responsiveness,
 * and carousel motion — keep head free of inline CSS.
 */

@font-face {
    font-family: "icomoon";
    src: url("../icons/icomoon/fonts/icomoon.eot?7udb3");
    src: url("../icons/icomoon/fonts/icomoon.eot?7udb3#iefix") format("embedded-opentype"),
        url("../icons/icomoon/fonts/icomoon.ttf?7udb3") format("truetype"),
        url("../icons/icomoon/fonts/icomoon.woff?7udb3") format("woff"),
        url("../icons/icomoon/fonts/icomoon.svg?7udb3#icomoon") format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Skip link */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #0b0f19;
    outline: 2px solid #0b0f19;
    outline-offset: 2px;
}

/* Global landmarks / overflow */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

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

#main-content {
    scroll-margin-top: 100px;
}

.is-collapsed {
    display: none !important;
}

.is-expanded {
    display: unset;
}

/* Responsive utilities */

.tf-container,
.container {
    width: 100%;
}

@media (max-width: 767.98px) {
    .top-bar .list-topbar-item {
        flex-wrap: wrap;
        gap: 0.35rem 0.75rem;
        justify-content: center;
    }

    .top-bar-item {
        font-size: 0.8125rem;
    }

    .header-content {
        gap: 0.75rem;
    }

    .logo-header img {
        max-width: min(148px, 42vw);
        height: auto;
    }

    .section-services .heading-section .title,
    .section-testimonial .heading-section .title {
        font-size: clamp(1.5rem, 5vw + 0.75rem, 2rem);
        line-height: 1.25;
    }

    .sw-pagination {
        display: flex;
        justify-content: center;
        gap: 0.35rem;
    }
}

@media (max-width: 575.98px) {
    .tf-btn {
        min-height: 44px;
    }

    .footer-bottom .list-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-bottom .list-bottom ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 0.85rem;
    }
}

/* Home carousels — smoother swipe / slide motion */

.sw-services.tf-swiper,
.sw-testimonial.tf-swiper {
    overflow: hidden;
    touch-action: pan-y;
}

.sw-services .swiper-wrapper,
.sw-testimonial .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.sw-services .swiper-slide,
.sw-testimonial .swiper-slide {
    height: auto;
    transition:
        opacity 0.45s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sw-services .swiper-slide:not(.swiper-slide-active) .services-item {
    opacity: 0.88;
}

.sw-services .services-item {
    height: 100%;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease;
}

.sw-services .swiper-slide-active .services-item {
    transform: translateY(-4px);
}

.sw-testimonial .testimonial-item {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sw-testimonial .swiper-slide-active .testimonial-item {
    transform: translateY(-2px);
}

.sw-pagination-services .swiper-pagination-bullet,
.sw-pagination-testimonial .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: 0.45;
    transition:
        width 0.3s ease,
        opacity 0.3s ease,
        background-color 0.3s ease;
}

.sw-pagination-services .swiper-pagination-bullet-active,
.sw-pagination-testimonial .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 999px;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .sw-services .swiper-slide,
    .sw-testimonial .swiper-slide,
    .sw-services .services-item,
    .sw-testimonial .testimonial-item {
        transition: none;
    }
}

/* HTML Sitemap */

.section-sitemap .sitemap-intro {
    max-width: 40rem;
    margin-top: 0.85rem;
    color: var(--surface, rgba(255, 255, 255, 0.75));
    line-height: 1.65;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.75rem;
}

.sitemap-group {
    padding: 1.35rem 1.4rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.sitemap-group__head {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sitemap-group__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white, #fff);
}

.sitemap-group__hint {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--surface, rgba(255, 255, 255, 0.65));
}

.sitemap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sitemap-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    color: var(--white, #fff);
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.sitemap-link:hover,
.sitemap-link:focus-visible {
    background: rgba(var(--primary-rgb, 155, 92, 251), 0.14);
    color: var(--primary, #9b5cfb);
    outline: none;
}

.sitemap-link__label {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.sitemap-link i {
    font-size: 0.85rem;
    opacity: 0.55;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.sitemap-link:hover i,
.sitemap-link:focus-visible i {
    opacity: 1;
    transform: translateX(3px);
}

@media (max-width: 991.98px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }
}

@media (max-width: 575.98px) {
    .sitemap-group {
        padding: 1.1rem 1rem;
    }

    .sitemap-link {
        padding: 0.65rem 0.5rem;
    }
}

/* Portfolio filter */

.portfolio-filter .form-search-siderbar fieldset {
    position: relative;
    margin: 0;
}

.portfolio-filter .form-search-siderbar input[type="search"] {
    width: 100%;
    padding-right: 52px;
}

.portfolio-filter-actions {
    width: 100%;
}

.portfolio-filter-actions .tf-btn {
    min-height: 54px;
}

@media (max-width: 991.98px) {
    .portfolio-filter-actions {
        margin-top: 0.25rem;
    }
}

/* Services — lightweight CSS visual (replaces heavy 3D globe) */

.services-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.services-orbit {
    position: relative;
    width: min(360px, 80vw);
    height: min(360px, 80vw);
    margin-inline: auto;
}

.services-orbit .orbit-ring {
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation: services-ring-spin 28s linear infinite;
}

.services-orbit .orbit-ring.ring-2 {
    inset: 0;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.08);
    animation-duration: 42s;
    animation-direction: reverse;
}

.services-orbit .orbit-core {
    position: absolute;
    inset: 34%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 2rem;
}

.services-orbit .orbit-dot {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.85;
    animation: services-dot-spin 18s linear infinite;
}

.services-orbit .orbit-dot.d1 { animation-duration: 16s; }
.services-orbit .orbit-dot.d2 { animation-duration: 18s; animation-delay: -3s; }
.services-orbit .orbit-dot.d3 { animation-duration: 20s; animation-delay: -6s; }
.services-orbit .orbit-dot.d4 { animation-duration: 17s; animation-delay: -9s; }
.services-orbit .orbit-dot.d5 { animation-duration: 19s; animation-delay: -12s; }
.services-orbit .orbit-dot.d6 { animation-duration: 21s; animation-delay: -15s; }

@keyframes services-ring-spin {
    to { transform: rotate(360deg); }
}

@keyframes services-dot-spin {
    from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

@media (max-width: 767.98px) {
    @keyframes services-dot-spin {
        from { transform: rotate(0deg) translateX(110px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-orbit .orbit-ring,
    .services-orbit .orbit-dot {
        animation: none !important;
    }
}

/* Contact Google Map */

.contact-google-map,
.box-map .map {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 600px;
    border: 0;
    border-radius: 12px;
}

/* Content sidebar active states */

.sidebar-categories .item.is-active > a,
.sidebar-tags .tabs-item.active {
    color: var(--primary, #0b0f19);
    font-weight: 700;
}

.sidebar-tags .tabs-item.active {
    opacity: 1;
}

