/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #a855f7;
    --primary-dark: #7c3aed;
    --primary-light: #c084fc;
    --bg-dark: #0a0a0f;
    --bg-card: #110e1c;
    --bg-input: #1a1530;
    --border: #2a1a4a;
    --text: #e2e2e8;
    --text-muted: #a8a2c8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --gradient: linear-gradient(135deg, #c084fc, #a855f7, #7c3aed);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== HEADER ========== */
header {
    background: #0a0a0f;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 15px rgba(156, 63, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2a1a4a;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #c084fc, #a855f7, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.logo p {
    font-size: 0.7rem;
    color: #a78bfa;
    letter-spacing: 1px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #c084fc;
    cursor: pointer;
    z-index: 1100;
    transition: 0.2s;
}

.menu-toggle:hover {
    color: #e2baff;
}

nav {
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    color: #d8d8ff;
}

nav ul li a:hover {
    color: #c084fc;
    text-shadow: 0 0 6px #9b4dff;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.btn-outline {
    padding: 8px 20px;
    border: 2px solid #a855f7;
    background: transparent;
    border-radius: 40px;
    color: #c084fc;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: #2a1a4a;
    color: white;
    border-color: #c084fc;
    box-shadow: 0 0 12px #a855f7;
}

.btn-primary {
    padding: 8px 24px;
    background: linear-gradient(95deg, #2a1a4a, #1a0b2e);
    border: 1px solid #a855f7;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.02);
    background: #3b2a5c;
    box-shadow: 0 0 18px #a855f7;
    border-color: #c084fc;
}

.btn-primary-gradient {
    padding: 12px 28px;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.btn-primary-gradient:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========== RESPONSIVE MENU ========== */
@media (max-width: 850px) {
    .menu-toggle {
        display: block;
    }
    nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 260px;
        height: 100vh;
        background: #0c091bc9;
        backdrop-filter: blur(20px);
        z-index: 1050;
        padding: 80px 20px 30px;
        transition: right 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        box-shadow: -5px 0 25px rgba(0,0,0,0.6);
        border-left: 2px solid #a855f7;
    }
    nav.open {
        right: 0;
    }
    nav ul {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }
    nav ul li a {
        font-size: 1.2rem;
        display: block;
        padding: 8px 0;
    }
    .header-buttons {
        margin-right: auto;
    }
    .overlay-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: 0.2s;
    }
    .overlay-menu.active {
        opacity: 1;
        visibility: visible;
    }
    .header-container {
        padding: 15px 20px;
    }
}

@media (max-width: 550px) {
    .header-buttons .btn-outline span, .header-buttons .btn-primary span {
        display: none;
    }
    .btn-outline, .btn-primary {
        padding: 8px 14px;
    }
    .logo h1 {
        font-size: 1.5rem;
    }
}

/* ========== HERO ========== */
.hero-new {
    background: radial-gradient(circle at 10% 20%, #db00ff, #05040a);
    padding: 60px 0;
    border-bottom: 1px solid #2a1a4a;
    color: #f0eaff;
    position: relative;
}

.hero-new::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 30%, rgba(106, 13, 173, 0.15), transparent);
    pointer-events: none;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content .badge-top {
    background: #1f1738;
    display: inline-block;
    padding: 6px 18px;
    border-radius: 40px;
    color: #c084fc;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 20px;
    border-right: 2px solid #a855f7;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content h1 span {
    color: #c084fc;
    border-bottom: 3px solid #b77eff;
    text-shadow: 0 0 8px #b94eff;
}

.hero-content p {
    color: #cbc3f0;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.guarantee-box {
    background: #110e1c;
    padding: 20px;
    border-radius: 24px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    border: 1px solid #2a1a4a;
    backdrop-filter: blur(4px);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guarantee-item i {
    font-size: 1.5rem;
    color: #b77eff;
}

.stats-wrapper {
    flex: 1;
    background: #0b0818;
    border-radius: 32px;
    padding: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid #2f2152;
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(75, 45, 135, 0.2);
    border-radius: 24px;
    transition: 0.2s;
    backdrop-filter: blur(2px);
}

.stat-item:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #d6aaff;
}

.stat-label {
    font-size: 0.85rem;
    color: #c3b5f0;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-grid { flex-direction: column; }
    .hero-content h1 { font-size: 2rem; }
    .stats-grid { gap: 15px; }
}

/* ========== INTRO SERVICES ========== */
.intro-services {
    background: #0c0919;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #221a3a;
}

.intro-services h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #d9b8ff;
}

.intro-services p {
    max-width: 800px;
    margin: 0 auto;
    color: #b9afe3;
    line-height: 1.8;
}

/* ========== CATEGORY SECTION ========== */
.category-section {
    padding: 60px 0;
    border-bottom: 1px solid #221a3a;
    background: #0a0715;
}

.category-header-with-image {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    margin-bottom: 50px;
    align-items: center;
    background: linear-gradient(89deg, #db00ff, #07040f);
    border-radius: 40px;
    padding: 30px;
    border: 1px solid #2e2152;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.2);
}

.category-image {
    width: 220px;
    height: 220px;
    border-radius: 32px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(0,0,0,0.5);
    border: 3px solid #b77eff;
    transition: 0.3s;
    filter: brightness(0.9) contrast(1.1);
}

.category-image:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 32px rgba(139, 92, 246, 0.3);
    border-color: #d9aaff;
}

.category-text {
    flex: 1;
}

.category-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #e5caff;
    margin-bottom: 15px;
}

.category-text h2 i {
    color: #c37eff;
    margin-left: 12px;
}

.category-text .category-desc {
    color: #cdc2f0;
    line-height: 1.8;
    margin-bottom: 18px;
    font-size: 1rem;
}

.category-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.category-features span {
    background: #1e1738;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #cfb9ff;
    font-weight: 500;
    border: 1px solid #3b2b66;
}

@media (max-width: 768px) {
    .category-header-with-image { flex-direction: column; text-align: center; }
    .category-text h2 { font-size: 1.6rem; }
    .category-image { width: 180px; height: 180px; }
}

/* ========== SERVICE CARD ========== */
.service-card {
    background: #0e0b1b;
    border-radius: 28px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
    transition: 0.3s;
    border: 1px solid #31245a;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(106, 13, 173, 0.4);
    border-color: #b77eff;
    background: #12102c;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #1e163b;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    color: #c084fc;
    box-shadow: 0 0 8px rgba(168,85,247,0.4);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #ebdbff;
}

.service-desc {
    color: #aca6d4;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.price-tag {
    display: inline-block;
    background: #231c42;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #cfb5ff;
}

/* ========== TEAM SECTION ========== */
.team-section {
    background: #080615;
    padding: 60px 0;
    text-align: center;
}

.team-section h2 {
    color: #e2cfff;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: #0f0c22;
    border-radius: 40px;
    padding: 25px;
    width: 250px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
    transition: 0.3s;
    border: 1px solid #3c2a66;
}

.team-card:hover {
    border-color: #aa70ff;
    transform: translateY(-5px);
    background: #141132;
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #b77eff;
}

.team-card h3 { color: #f0e2ff; }
.team-card p, .team-card small { color: #b7a8e6; }

/* ========== TESTIMONIALS ========== */
.testimonials {
    background: #0a0715;
    padding: 60px 0;
}

.testi-card {
    background: #110e24;
    padding: 30px;
    border-radius: 32px;
    text-align: center;
    border: 1px solid #352864;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.testi-card i, .testi-card strong { color: #c480ff; }

/* ========== FOOTER ========== */
footer {
    background: #03020a;
    color: #bbafdf;
    padding: 50px 0 30px;
    border-radius: 40px 40px 0 0;
    border-top: 1px solid #2f2152;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

footer h4 { color: #d6afff; }

/* ========== FLOATING CALL ========== */
.floating-call {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #150f2b;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6), 0 0 15px #a855f7;
    z-index: 999;
    transition: 0.2s;
    border: 1px solid #b77eff;
}

.floating-call a {
    color: #e2baff;
    font-size: 1.8rem;
}

.floating-call:hover {
    transform: scale(1.05);
    background: #251e47;
    box-shadow: 0 0 20px #a855f7;
}

/* ========== SWIPER CUSTOMIZATION ========== */
.swiper-button-next, .swiper-button-prev {
    color: #c480ff !important;
}

.swiper-pagination-bullet {
    background: #5e44a3 !important;
}

.swiper-pagination-bullet-active {
    background: #c084fc !important;
}

/* ========== FORM ELEMENTS ========== */
input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
    background: #1f1a38;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-light);
    font-weight: 500;
}

/* ========== CARDS & CONTAINERS ========== */
.dashboard-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

/* ========== TABLES ========== */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #1a1530;
    color: var(--primary-light);
    padding: 15px;
    font-weight: 600;
    text-align: right;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

tr:hover td {
    background: rgba(168, 85, 247, 0.05);
}

/* ========== BADGES ========== */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge-warning { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.badge-success { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge-info { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.badge-primary { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.badge-secondary { background: rgba(168, 162, 200, 0.2); color: #a8a2c8; }

/* ========== ALERTS ========== */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin: 15px 0;
}

.alert-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); color: #f59e0b; }
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #10b981; }
.alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; }
.alert-info { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #3b82f6; }

/* ========== TABS ========== */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #1a1530;
    color: var(--primary-light);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2rem; }
    .category-image { width: 180px; height: 180px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-grid { flex-direction: column; }
    .stats-grid { gap: 15px; }
    .category-header-with-image { flex-direction: column; text-align: center; }
    .category-text h2 { font-size: 1.6rem; }
    table { font-size: 0.8rem; }
    th, td { padding: 10px; }
}

@media (max-width: 550px) {
    .tab-nav { flex-direction: column; }
    .tab-btn { width: 100%; text-align: center; }
}