:root {
    --primary: #0D9488;
    --primary-light: #14B8A6;
    --primary-dark: #0F766E;
    --secondary: #7C3AED;
    --secondary-light: #8B5CF6;
    --secondary-dark: #6D28D9;
    --accent: #F59E0B;
    --accent-light: #FBBF24;
    --accent-dark: #D97706;
    --bg: #FAFAF9;
    --surface: #FFFFFF;
    --surface-alt: #F5F0EB;
    --text: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #A8A29E;
    --border: #E7E5E4;
    --gradient-hero: linear-gradient(135deg, #0D9488 0%, #7C3AED 100%);
    --gradient-soft: linear-gradient(135deg, #F5F0EB 0%, #FAFAF9 100%);
    --gradient-cta: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    --gradient-accent: linear-gradient(135deg, #7C3AED 0%, #0D9488 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
    direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
}

h1 { font-size: 2.75rem; font-weight: 800; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.375rem; font-weight: 600; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== NAVBAR ===== */
.navbar-vp {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar-vp.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-vp .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-vp .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.938rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-vp .nav-link:hover,
.navbar-vp .nav-link.active {
    color: var(--primary);
    background: rgba(13, 148, 136, 0.06);
}

/* ===== BUTTONS ===== */
.btn-vp-primary {
    background: var(--gradient-cta);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-vp-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
    color: #fff;
}

.btn-vp-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.7rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-vp-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-vp-secondary {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    transition: var(--transition);
}

.btn-vp-secondary:hover {
    background: var(--secondary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-hero);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.hero-section h1 {
    font-size: 3.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.375rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.85;
    max-width: 600px;
    line-height: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== SECTIONS ===== */
.section-padding {
    padding: 6rem 0;
}

.section-alt {
    background: var(--surface-alt);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-cta);
    border-radius: 2px;
    margin-top: 0.75rem;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
}

.section-subtitle.text-center {
    margin-left: auto;
    margin-right: auto;
}

/* ===== CARDS ===== */
.card-vp {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
}

.card-vp:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-vp .card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(13,148,136,0.1), rgba(124,58,237,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.card-vp h4 {
    margin-bottom: 0.75rem;
}

.card-vp p {
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 1.8;
}

/* ===== WHY ME ITEMS ===== */
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.why-item:hover {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.why-item .why-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.why-item h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.why-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* ===== INSIGHTS CARDS ===== */
.insight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.insight-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.insight-card .card-body {
    padding: 1.5rem;
}

.insight-card .card-category {
    display: inline-block;
    background: rgba(13,148,136,0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.813rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.insight-card .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.insight-card .card-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.8;
}

.insight-card .card-date {
    color: var(--text-muted);
    font-size: 0.813rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.testimonial-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.875rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 2;
    flex: 1;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-hero);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.938rem;
    color: var(--text);
}

.testimonial-author span {
    font-size: 0.813rem;
    color: var(--text-muted);
}

/* ===== CONTACT FORM ===== */
.form-vp .form-control,
.form-vp .form-select {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.938rem;
    transition: var(--transition);
    background: var(--surface);
}

.form-vp .form-control:focus,
.form-vp .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-vp label {
    font-weight: 500;
    font-size: 0.938rem;
    margin-bottom: 0.375rem;
    color: var(--text);
}

/* ===== FOOTER ===== */
.footer-vp {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

.footer-vp h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-vp a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-vp a:hover {
    color: var(--primary-light);
}

.footer-vp .footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ===== ABOUT PAGE ===== */
.about-section-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.about-list li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.about-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--gradient-hero);
    padding: 5rem 0 3rem;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.85;
    font-size: 1.125rem;
}

/* ===== ALERT ===== */
.alert-vp {
    border-radius: var(--radius-sm);
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.938rem;
}

.alert-vp.success {
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary-dark);
}

.alert-vp.error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .hero-section h1 { font-size: 2.5rem; }
    .section-padding { padding: 4rem 0; }
    .section-title { font-size: 1.875rem; }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    .hero-section h1 { font-size: 2rem; }
    .hero-description { margin: 0 auto; }
    .hero-subtitle { font-size: 1.125rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .section-padding { padding: 3rem 0; }
    .about-section-card { padding: 1.5rem; }
}

/* ===== LOADING SPINNER ===== */
.spinner-vp {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-cta);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
