/* =========================================
   1. Fonts (لوکال)
   ========================================= */
@font-face {
    font-family: 'PrimaryFont';
    src: url('../fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PrimaryFont';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

/* =========================================
   2. Reset & Base با ترکیب آبی و سفید
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #ffffff 0%, #e8f4ff 30%, #d4ecff 60%, #b5dfff 85%, #8ecaff 100%);
    background-size: 300% 300%;
    animation: gradientBG 10s ease-in-out infinite alternate;
    font-family: 'PrimaryFont', Tahoma, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* =========================================
   3. دایره‌های متحرک با ترکیب آبی و سفید
   ========================================= */
.floating-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: floatAround 25s ease-in-out infinite alternate;
}

.c1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ffffff, transparent);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.c2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #64B9FF, transparent);
    bottom: -80px;
    left: -80px;
    animation-delay: -5s;
}

.c3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #ffffff, transparent);
    top: 50%;
    right: 5%;
    animation-delay: -10s;
}

.c4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #8ecaff, transparent);
    bottom: 25%;
    left: 8%;
    animation-delay: -15s;
}

.c5 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #ffffff, transparent);
    top: 20%;
    left: 10%;
    animation-delay: -7s;
}

.c6 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #b5dfff, transparent);
    bottom: 15%;
    right: 15%;
    animation-delay: -12s;
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(40px, -30px) scale(1.1) rotate(90deg);
    }
    50% {
        transform: translate(-30px, 40px) scale(0.9) rotate(180deg);
    }
    75% {
        transform: translate(20px, 20px) scale(1.05) rotate(270deg);
    }
    100% {
        transform: translate(-20px, -20px) scale(0.95) rotate(360deg);
    }
}

/* =========================================
   4. کانتینر اصلی
   ========================================= */
.loading-container {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInScale 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    transform: scale(0.9);
    opacity: 0;
}

@keyframes fadeInScale {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   5. لوگو (بدون پرتو و خورشید)
   ========================================= */
.logo-wrapper {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.logo-glow {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-glow::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 185, 255, 0.12), transparent 70%);
    animation: glowPulse 2.5s ease-in-out infinite;
}

.logo-glow::after {
    content: '';
    position: absolute;
    inset: -35px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 185, 255, 0.05), transparent 70%);
    animation: glowPulse 2.5s ease-in-out infinite 0.8s;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.logo-glow img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(100, 185, 255, 0.2));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

/* =========================================
   6. اسم سایت با طیف آبی
   ========================================= */
.brand-name {
    font-family: 'PrimaryFont', Tahoma, sans-serif;
    font-weight: bold;
    font-size: 68px;
    background: linear-gradient(135deg, #64B9FF, #4a9ee0, #2d7fc1);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3.5s ease-in-out infinite;
    margin-bottom: 6px;
    letter-spacing: 3px;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.brand-sub {
    font-family: 'PrimaryFont', Tahoma, sans-serif;
    font-weight: normal;
    font-size: 17px;
    color: #7a9bb0;
    margin-top: 4px;
    margin-bottom: 38px;
    letter-spacing: 2px;
    animation: fadeInSub 1s ease 0.5s forwards;
    opacity: 0;
}

@keyframes fadeInSub {
    to {
        opacity: 1;
    }
}

/* =========================================
   7. دایره چرخان (دو لایه) با طیف آبی
   ========================================= */
.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-ring {
    width: 55px;
    height: 55px;
    border: 3px solid rgba(100, 185, 255, 0.08);
    border-top: 3px solid #64B9FF;
    border-right: 3px solid #4a9ee0;
    border-left: 3px solid rgba(100, 185, 255, 0.15);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.6, 0.0, 0.4, 1.0) infinite;
    position: relative;
}

.spinner-ring::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px solid rgba(100, 185, 255, 0.05);
    border-top: 2px solid #8ecaff;
    border-bottom: 2px solid rgba(100, 185, 255, 0.08);
    animation: spin 1.4s cubic-bezier(0.6, 0.0, 0.4, 1.0) infinite reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   8. ریسپانسیو کامل
   ========================================= */
@media (max-width: 768px) {
    .brand-name {
        font-size: 52px;
        letter-spacing: 2px;
    }

    .brand-sub {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .logo-glow {
        width: 110px;
        height: 110px;
    }

    .logo-glow img {
        width: 64px;
        height: 64px;
    }

    .spinner-ring {
        width: 48px;
        height: 48px;
    }

    .spinner-ring::before {
        inset: 8px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 40px;
        letter-spacing: 1px;
    }

    .brand-sub {
        font-size: 13px;
        margin-bottom: 28px;
        letter-spacing: 1px;
    }

    .logo-glow {
        width: 95px;
        height: 95px;
    }

    .logo-glow img {
        width: 54px;
        height: 54px;
    }

    .logo-glow::before {
        inset: -12px;
    }

    .logo-glow::after {
        inset: -28px;
    }

    .spinner-ring {
        width: 42px;
        height: 42px;
        border-width: 2.5px;
    }

    .spinner-ring::before {
        inset: 7px;
        border-width: 1.5px;
    }
}

@media (max-width: 380px) {
    .brand-name {
        font-size: 32px;
    }

    .brand-sub {
        font-size: 12px;
        margin-bottom: 24px;
    }

    .logo-glow {
        width: 80px;
        height: 80px;
    }

    .logo-glow img {
        width: 46px;
        height: 46px;
    }

    .spinner-ring {
        width: 36px;
        height: 36px;
        border-width: 2px;
    }

    .spinner-ring::before {
        inset: 6px;
        border-width: 1.5px;
    }
}