/* --- Loader Overlay --- */
.site-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}
.site-loader.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.site-loader-logo {
  width: 120px;
  height: auto;
  animation: loader-bounce 1.2s infinite alternate;
}
@keyframes loader-bounce {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.08) translateY(-12px); }
}

/* --- Desktop Navbar Slide Animation --- */
#desktop-navbar .desktop-navbar-list {
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.7s cubic-bezier(.4,1.4,.6,1), transform 0.7s cubic-bezier(.4,1.4,.6,1);
}
#desktop-navbar .desktop-navbar-list.navbar-visible {
  opacity: 1;
  transform: translateY(0);
}
/* استایل صفحات داخلی خدمات دسکتاپ */
.desktop-service-content-box {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1rem;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.04);
    padding: 2.2rem 2.2rem 2rem 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.desktop-service-header {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.2rem;
    justify-content: flex-start;
}

.desktop-service-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.desktop-service-header .desktop-service-icon {
    margin: 0;
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    box-shadow: none;
}

.desktop-service-header .desktop-service-back {
    margin-right: auto;
    margin-left: 0;
    font-size: 0.98rem;
    padding: 0.45rem 1.2rem;
    border-radius: 0.7rem;
}

.desktop-service-desc {
    margin-top: 0.7rem;
    font-size: 1.08rem;
    color: #222;
    line-height: 2.1;
    text-align: justify;
}

/* آیکون خدمات دسکتاپ */
.desktop-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    max-width: 54px;
    max-height: 54px;
    border-radius: 50%;
    margin-left: 1.1rem;
    margin-right: 0.2rem;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.07);
}

.desktop-service-icon i {
    font-size: 2.1rem !important;
    transition: color 0.2s;
}

.desktop-service-item:hover .desktop-service-icon {
    filter: brightness(0.95) saturate(1.2);
}

.desktop-service-item:hover .desktop-service-icon i {
    color: #fff !important;
}

/* --- Desktop Services List --- */
.desktop-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 24px;
    margin-top: 2.5rem;
    justify-content: center;
}

.desktop-service-item {
    flex: 0 1 calc(50% - 24px);
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.03);
    padding: 1.2rem 1.5rem 1.2rem 1.2rem;
    min-width: 320px;
    max-width: 420px;
    margin-bottom: 0;
}

.desktop-service-item .fw-bold {
    font-size: 1.08rem;
}

.desktop-service-item .text-muted {
    font-size: 0.98rem;
}

/* --- Fade Animation for Desktop Sections --- */
.fade-in {
    animation: fadeInDesktop 0.7s cubic-bezier(.4, 0, .2, 1);
}

@keyframes fadeInDesktop {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Desktop Sections --- */
.desktop-section {
    min-height: 60vh;
    display: block;
    align-items: center;
    justify-content: center;
    padding-top: 110px;
    /* افزایش فاصله از ناوبار */
    padding-bottom: 32px;
}

.desktop-section-content {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.03);
    padding: 1.2rem 1.5rem 1.2rem 1.2rem;
    min-width: 320px;
    max-width: 600px;
    margin: auto;
    margin-bottom: 0;
    cursor: pointer;
    transition: box-shadow 0.25s, transform 0.22s;
    position: relative;
    overflow: hidden;
}

.desktop-service-item:hover {
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.10);
    transform: translateY(-6px) scale(1.025);
    background: rgba(245, 245, 245, 0.97);
}

.desktop-service-item:active {
    transform: scale(0.98);
}

.desktop-service-item i {
    background: #fff !important;
    color: #222 !important;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.07);
    font-size: 2.1rem !important;
    margin-left: 0.7rem;
    margin-right: 0.2rem;
    transition: background 0.2s, color 0.2s;
}

.desktop-service-item:hover i {
    background: #111 !important;
    color: #fff !important;
}

/* --- Desktop Navbar --- */
.desktop-navbar {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 340px;
    max-width: 700px;
    width: fit-content;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    border: 1.5px solid #111;
    z-index: 100;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.07);
    padding: 0 32px;
}

.desktop-navbar-list {
    display: flex;
    gap: 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-navbar-link {
    color: #222;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 6px 18px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    border: none;
    outline: none;
    position: relative;
}

.desktop-navbar-link:hover,
.desktop-navbar-link.active {
    background: #111;
    color: #fff;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/iransans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body,
* {
    font-family: 'IRANSans' !important;
}

/* --- Three Blurred Circles Background --- */
/* بکگراند سه دایره بلور متحرک */
.blur-bg-static {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.blur-circle-static {
    position: absolute;
    width: 320px;
    /* اندازه دایره */
    height: 320px;
    border-radius: 50%;
    filter: blur(200px) brightness(1.1);
    /* شدت بلور */
    opacity: 0.7;
    /* شفافیت */
    left: 0;
    top: 0;
    /* موقعیت هر دایره توسط جاوااسکریپت کنترل می‌شود */
}

.blur-circle-blue {
    background: radial-gradient(circle, #0055ff 70%, #bad7ff 100%);
    /* رنگ آبی */
}

.blur-circle-red {
    background: radial-gradient(circle, #ff0000 70%, #ffbaba 100%);
    /* رنگ قرمز */
}

.blur-circle-green {
    background: radial-gradient(circle, #00ff55 70%, #baffd7 100%);
    /* رنگ سبز */
}