/* ==========================================================================
   ۱. تنظیمات فونت و متغیرهای سراسری (Fonts & Variables)
   ========================================================================== */

@font-face {
    font-family: 'Peyda';
    src: url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.eot');
    src: url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.woff2') format('woff2'),
    url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.woff') format('woff'),
    url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


:root {
    --main-font: 'Peyda', system-ui, sans-serif;
    --accent-blue: #00f2fe;
    --text-light: #e2e8f0;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --glass-bg: rgba(8, 22, 45, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-aqua-cyan: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --card-bg: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   ۲. استایل‌های پایه و ریست (Base Styles & Resets)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--main-font);
}

body {
    /* پس‌زمینه گرادینت اقیانوسی */
    background: linear-gradient(135deg, #0a234a, #0a315b, #06204d);
    background-size: 400% 400%;
    animation: oceanFluid 15s ease infinite;
    min-height: 100vh;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

@keyframes oceanFluid {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================================================
   ۳. حباب‌های متحرک پس‌زمینه (Background Bubbles)
   ========================================================================== */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 4px rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-110vh) scale(1.2);
        opacity: 0;
    }
}

/* ==========================================================================
   ۴. دکمه شناور بازگشت به سایت (Floating Back Button)
   ========================================================================== */
.floating-back-btn {
    position: fixed;
    /* ثابت در گوشه صفحه */
    top: 30px;
    right: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(4, 15, 36, 0.6);
    /* شیشه تیره */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1000;
    /* بالاتر از همه لایه‌ها */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.floating-back-btn svg {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
    transition: transform 0.3s ease;
}

.floating-back-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.4);
    color: #fff;
    transform: translateX(-5px);
    /* حرکت ظریف به سمت چپ در زمان هاور */
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.2);
}

/* ==========================================================================
   ۵. کانتینر اصلی فرم (Wizard Panel)
   ========================================================================== */
.wizard-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    position: relative;
    z-index: 5;
    margin-top: 80px;
    /* فاصله از دکمه شناور بالای صفحه */
}

.glass-wizard-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 242, 254, 0.05);
    position: relative;
    overflow: hidden;
}

/* --- هدر فرم و پروگرس بار --- */
.wizard-header {
    text-align: center;
    margin-bottom: 40px;
}

.wizard-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 10px;
}

.wizard-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 300;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 25px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 33.33%;
    background: var(--neon-aqua-cyan);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 15px var(--accent-blue);
}

/* ==========================================================================
   ۶. مراحل فرم و المان‌های درونی (Wizard Steps)
   ========================================================================== */
.wizard-body {
    min-height: 350px;
    position: relative;
}

/* انیمیشن محو شدن و جابجایی مراحل */
.wizard-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.wizard-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInSlideUp 0.6s ease forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-question {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
}

.required {
    color: #ff3366;
    font-size: 14px;
}

/* --- مرحله ۱: کارت‌های گرافیکی --- */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 254, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

.service-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.service-card.selected {
    border-color: var(--accent-blue);
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.1);
}

.service-card.selected .card-icon {
    background: var(--neon-aqua-cyan);
    color: #040c1a;
    transform: scale(1.1);
}

/* باکس ورودی مخفی برای کارت "سایر" */
.other-input-wrapper {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
    opacity: 0;
}

.service-card.selected#other-card .other-input-wrapper {
    max-height: 60px;
    margin-top: 10px;
    opacity: 1;
}

/* --- مرحله ۲: دکمه‌های انتخابی --- */
.mt-xl {
    margin-top: 40px;
}

.options-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.option-btn {
    flex: 1;
    min-width: 200px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.option-btn.selected {
    background: var(--accent-blue);
    color: #040c1a;
    border-color: var(--accent-blue);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

/* --- مرحله ۳: ورودی‌های متنی (Inputs) --- */
.step-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 8px;
    font-weight: 500;
}

.elite-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.elite-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.elite-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    background: rgba(0, 242, 254, 0.02);
}

.ltr-input {
    direction: ltr;
    text-align: left;
}

/* ==========================================================================
   ۷. فوتر فرم و دکمه‌های ناوبری (Buttons)
   ========================================================================== */
.wizard-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
}

.btn-elegant {
    padding: 14px 35px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    outline: none;
}

.primary-elegant {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.primary-elegant:hover {
    background: var(--accent-blue);
    color: #040c1a;
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
}

.secondary-elegant {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-elegant:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* ==========================================================================
   ۸. پیام‌های خطا (Validation Toasts)
   ========================================================================== */
.error-toast {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #ff3366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
}

.error-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   ۹. مرحله موفقیت (Success Status)
   ========================================================================== */
.success-step {
    text-align: center;
    padding: 40px 0;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px auto;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #00f2fe;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #00f2fe;
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0px 0px 0px #00f2fe;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px rgba(0, 242, 254, 0.1);
    }
}

.success-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
}

.success-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 35px;
}

/* ==========================================================================
   ۱۰. پنل اعتمادسازی و نمونه کارها (Trust & Portfolio Hub)
   ========================================================================== */
.trust-portfolio-section {
    width: 100%;
    max-width: 1050px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.trust-glass-panel {
    background: rgba(4, 15, 36, 0.4);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* آیکون‌های آماری */
.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(0, 242, 254, 0.04);
    border-color: rgba(0, 242, 254, 0.2);
    transform: translateY(-3px);
}

.badge-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.badge-icon svg {
    width: 22px;
    height: 22px;
}

.badge-text h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.badge-text p {
    color: var(--text-muted);
    font-size: 12px;
}

/* هدر اسلایدر */
.portfolio-header {
    text-align: center;
    margin-bottom: 30px;
}

.elite-heading {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    display: inline-block;
    position: relative;
}

.elite-heading::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.portfolio-header p {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 15px;
}

/* اسلایدر متحرک عکس‌ها */
.premium-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 10px 0;
}

.premium-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: luxuryScroll 40s linear infinite;
}

.premium-marquee-track:hover {
    animation-play-state: paused;
}

.premium-project-card {
    width: 260px;
    height: 170px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    filter: brightness(0.7);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px 15px 15px;
    background: linear-gradient(to top, rgba(4, 12, 26, 0.95), transparent);
    display: flex;
    flex-direction: column;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.project-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.project-tag {
    color: var(--accent-blue);
    font-size: 11px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-project-card:hover {
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.15);
}

.premium-project-card:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.premium-project-card:hover .project-overlay {
    transform: translateY(0);
}

.premium-project-card:hover .project-tag {
    opacity: 1;
}

@keyframes luxuryScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}


/* ==========================================================================
   ۱۱. استایل‌های ریسپانسیو (Responsive Breakpoints)
   ========================================================================== */
@media (max-width: 900px) {
    .trust-badges-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .trust-glass-panel {
        padding: 30px 20px;
    }

    .premium-project-card {
        width: 220px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .glass-wizard-panel {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .service-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .wizard-title {
        font-size: 22px;
    }

    /* تنظیم دکمه شناور در تبلت و موبایل */
    .floating-back-btn {
        top: 20px;
        right: 20px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
    }

    .option-btn {
        width: 100%;
    }

    .trust-badge {
        padding: 12px 15px;
    }

    .badge-icon {
        width: 35px;
        height: 35px;
    }

    .badge-icon svg {
        width: 18px;
        height: 18px;
    }

    .badge-text h4 {
        font-size: 13px;
    }

    .premium-project-card {
        width: 180px;
        height: 120px;
    }

    .project-title {
        font-size: 12px;
    }
}