/* ==================================================
   طراحی نهایی: بنفش سلطنتی + ذرات معلق بیشتر + افکت شیشه‌ای
   ================================================== */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f8f0ff;
    line-height: 1.7;
    scroll-behavior: smooth;
    overflow-x: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ---------- پس‌زمینه عمیق بنفش با هاله‌های نور متحرک ---------- */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 30% 20%, #2a0f4a, #0c0120);
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 35%, rgba(160, 80, 255, 0.5), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(210, 90, 230, 0.45), transparent 60%),
        radial-gradient(circle at 40% 85%, rgba(120, 60, 220, 0.6), transparent 65%);
    animation: auraFlow 20s ease infinite alternate;
    opacity: 0.9;
}

@keyframes auraFlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    100% { transform: translate(-5%, -3%) scale(1.15); opacity: 1; }
}

/* ---------- ذرات معلق افزایش یافته (9 نقطه با اندازه‌های متفاوت) ---------- */


@keyframes particlesSwim {
    0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 300px 320px, 380px 390px, 240px 260px, 340px 360px, 290px 310px,
            160px 200px, 320px 280px, 260px 300px, 220px 260px; }
}

/* ---------- اسکرول بار شیک ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1d073a;
}
::-webkit-scrollbar-thumb {
    background: #b77eff;
    border-radius: 10px;
}

/* ---------- هدر شیشه‌ای ---------- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 0, 25, 0.65);
    backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(160, 100, 255, 0.5);
    transition: 0.3s;
}
.main-header.scrolled {
    background: rgba(15, 2, 35, 0.85);
    backdrop-filter: blur(20px);
    border-bottom-color: #d390ff;
}
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f0d0ff, #d09eff, #ffb3f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    color: #f3e8ff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}
.nav-links a:hover {
    color: #ffcf9a;
    text-shadow: 0 0 5px rgba(255, 200, 100, 0.5);
}
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #e0b5ff;
}

/* ---------- دکمه شناور واتساپ ---------- */
.btn-whatsapp {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 22px;
    font-weight: bold;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.3s;
}
.btn-whatsapp:hover {
    transform: scale(1.05);
    background: #128C7E;
}

/* ---------- بخش قهرمان (Hero) با نوشته‌های شیشه‌ای ---------- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(125deg, #ffffff, #f3c6ff, #ffdead);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero .typed-text {
    font-size: 1.5rem;
    color: #fbe4b0;
    background: rgba(60, 30, 100, 0.45);
    backdrop-filter: blur(10px);
    display: inline-block;
    padding: 12px 28px;
    border-radius: 60px;
    margin-bottom: 35px;
    border: 1px solid rgba(200, 160, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 14px 38px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.btn-primary {
    background: linear-gradient(95deg, #aa5eff, #6a2bc0);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-4px);
    background: linear-gradient(95deg, #c07eff, #8245df);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}
.btn-outline {
    background: transparent;
    border: 2px solid #ffcd94;
    color: #ffefcf;
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    background: #ffcd94;
    color: #1f0936;
    transform: translateY(-4px);
}

/* ---------- کارت‌های شیشه‌ای با متن‌های طلایی/هلویی ---------- */
.section {
    padding: 95px 0;
}
.section-title {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 55px;
}
.section-title span {
    background: linear-gradient(120deg, #e0b0ff, #ffcf9a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border-bottom: 3px solid #ffbc6e;
    padding-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    justify-content: center;
}
.card {
    background: rgba(25, 10, 55, 0.65);
    backdrop-filter: blur(14px);
    border-radius: 44px;
    padding: 38px 22px;
    width: 300px;
    text-align: center;
    transition: all 0.4s;
    border: 1px solid rgba(170, 120, 255, 0.6);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.card:hover {
    transform: translateY(-12px);
    background: rgba(50, 25, 90, 0.85);
    border-color: #ffc285;
    box-shadow: 0 20px 35px rgba(0,0,0,0.4);
}
.card-icon {
    font-size: 3.2rem;
    margin-bottom: 22px;
}
.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffddb0;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}
.card p {
    font-size: 1rem;
    color: #ffe6cf;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ---------- درباره من – شیشه‌ای ---------- */
.glass-card {
    background: rgba(25, 10, 55, 0.65);
    backdrop-filter: blur(14px);
    border-radius: 50px;
    padding: 45px 35px;
    border: 1px solid rgba(170, 120, 255, 0.6);
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.glass-card h2 {
    font-size: 2.3rem;
    margin-bottom: 18px;
    color: #ffefcf;
}
.glass-card span {
    color: #ffbd7f;
}
.glass-card p {
    font-size: 1.1rem;
    color: #ffe6cf;
}

/* ---------- اسلایدر نقل قول‌ها با حس شیشه‌ای ---------- */
.quotes-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 65px;
    margin: 45px auto;
    padding: 55px 30px;
}
.quote-text {
    font-size: 1.55rem;
    font-style: italic;
    color: #fff5ea;
    padding: 22px;
    background: rgba(60, 30, 100, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    width: 100%;
    border: 1px solid rgba(200, 160, 255, 0.3);
}
.quote-author {
    font-size: 1rem;
    color: #ffdead;
    margin-top: 15px;
    text-align: center;
}

/* ---------- فرم تماس شیشه‌ای ---------- */
.contact-form {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(25, 10, 55, 0.7);
    backdrop-filter: blur(16px);
    padding: 50px 45px;
    border-radius: 52px;
    border: 1px solid rgba(170, 120, 255, 0.7);
}
.form-group {
    margin-bottom: 25px;
}
input, textarea {
    width: 100%;
    padding: 15px 25px;
    background: #fef7ff;
    border: none;
    border-radius: 70px;
    font-family: 'Vazirmatn';
    font-size: 1rem;
    transition: 0.2s;
}
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px #b27eff;
}
textarea {
    border-radius: 36px;
    resize: vertical;
}
button[type="submit"] {
    background: #b37eff;
    color: #1a0438;
    font-weight: bold;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}
button[type="submit"]:hover {
    background: #ce9eff;
    transform: scale(1.01);
}

/* ---------- فوتر ---------- */
footer {
    background: #0a021b;
    text-align: center;
    padding: 50px 20px;
    margin-top: 80px;
    border-top: 1px solid #5a3a8a;
}
.social-links a {
    color: #e1c4ff;
    margin: 0 14px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}
.social-links a:hover {
    color: #ffdaa5;
}

/* ---------- انیمیشن‌ها ---------- */
.floating {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero h1, .typed-text, .btn-group {
    animation: fadeInUp 0.8s ease;
}

/* ---------- ریسپانسیو (موبایل) ---------- */
@media (max-width: 768px) {

    .hero h1 { font-size: 2.1rem; }

    .hero .typed-text { font-size: 1rem; padding: 8px 18px; }

    .nav-links {

        display: none;

        width: 100%;

        flex-direction: column;

        text-align: center;

        gap: 20px;

        padding: 25px 0;

    }
    .nav-links.show { display: flex; }
    .menu-icon { display: block; }
    .section-title { font-size: 1.9rem; }
    .contact-form { padding: 35px 25px; }
    .btn-whatsapp { padding: 8px 18px; font-size: 0.8rem; bottom: 15px; left: 15px; }
}
