@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #06060b;
    --bg-secondary: #0d0d16;
    --bg-surface: #151525;
    --bg-surface-light: #1e1e32;
    --text-primary: #eaeaef;
    --text-secondary: #9898b0;
    --accent: #ff4757;
    --accent-light: #ff6b81;
    --accent-glow: rgba(255, 71, 87, 0.35);
    --accent-soft: rgba(255, 71, 87, 0.12);
    --glass-bg: rgba(21, 21, 37, 0.6);
    --glass-border: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.bg-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: floatOrb 20s ease-in-out infinite;
}

.bg-orb:nth-child(1) { width: 600px; height: 600px; background: radial-gradient(circle, var(--accent), transparent 70%); top: -200px; left: -100px; }
.bg-orb:nth-child(2) { width: 500px; height: 500px; background: radial-gradient(circle, #ff6b81, transparent 70%); bottom: -150px; right: -150px; animation-delay: -7s; }
.bg-orb:nth-child(3) { width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,71,87,0.5), transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -14s; }

.bg-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, 50px) scale(1.1); }
    50% { transform: translate(50px, -30px) scale(0.9); }
    75% { transform: translate(-80px, -50px) scale(1.05); }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::selection { background: var(--accent); color: #fff; }

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    min-height: calc(100vh - 300px);
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 25px var(--accent-glow); }
.btn-primary:hover { background: #ff3355; transform: translateY(-3px); box-shadow: 0 0 45px var(--accent-glow); }
.btn-glass { background: rgba(255,255,255,0.05); color: var(--text-primary); border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); transform: translateY(-3px); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-label { display: inline-block; padding: 8px 20px; background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.section-title { font-size: 2.8rem; font-weight: 900; line-height: 1.4; margin-bottom: 16px; }
.section-subtitle { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 2; }

.scroll-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--accent); color: #fff;
    border: none; cursor: pointer;
    font-size: 1.2rem; z-index: 999;
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 0 25px var(--accent-glow);
    display: flex; align-items: center; justify-content: center;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-5px) scale(1.1); }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; }
    .page-wrapper { padding-top: 85px; }
}