@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  /* Colors */
  --c-primary: #00A896;
  --c-primary-hover: #028C7D;
  --c-primary-active: #017064;
  --c-secondary: #0B2545;
  --c-secondary-hover: #133863;
  --c-bg: #F8FAFC;
  --c-surface: #FFFFFF;
  --c-text-primary: #0F172A;
  --c-text-secondary: #475569;
  --c-muted: #94A3B8;
  --c-border: #E2E8F0;
  
  --c-success: #10B981;
  --c-warning: #F59E0B;
  --c-error: #EF4444;

  /* Typography (Base: 16px) */
  --font-family: 'Vazirmatn', system-ui, sans-serif;
  --text-h1: clamp(2rem, 5vw, 3rem);
  --text-h2: clamp(1.75rem, 4vw, 2.25rem);
  --text-h3: clamp(1.25rem, 3vw, 1.5rem);
  --text-h4: clamp(1.125rem, 2vw, 1.25rem);
  --text-body: 1rem;
  --text-caption: 0.875rem;

  /* Spacing */
  --sp-1: 0.25rem; /* 4px */
  --sp-2: 0.5rem;  /* 8px */
  --sp-3: 0.75rem; /* 12px */
  --sp-4: 1rem;    /* 16px */
  --sp-5: 1.5rem;  /* 24px */
  --sp-6: 2rem;    /* 32px */
  --sp-8: 3rem;    /* 48px */
  --sp-12: 4.5rem; /* 72px */
  --sp-16: 6rem;   /* 96px */
  --sp-20: 7.5rem; /* 120px */

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Animation */
  --anim-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --anim-med: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --anim-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background-color: var(--c-bg);
    color: var(--c-text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--anim-fast);
}

ul {
    list-style: none;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font: inherit;
}

/* Typography Classes */
h1 { font-size: var(--text-h1); font-weight: 800; line-height: 1.2; }
h2 { font-size: var(--text-h2); font-weight: 700; line-height: 1.3; }
h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.4; }
h4 { font-size: var(--text-h4); font-weight: 500; line-height: 1.4; }
.text-body { font-size: var(--text-body); }
.text-caption { font-size: var(--text-caption); color: var(--c-text-secondary); }
.text-primary { color: var(--c-primary); }
.text-secondary { color: var(--c-text-secondary); }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--sp-4);
}
@media (min-width: 768px) {
    .container {
        padding: 0 var(--sp-6);
    }
}

.section {
    padding: var(--sp-12) 0;
}
@media (min-width: 768px) {
    .section {
        padding: var(--sp-16) 0;
    }
}
@media (min-width: 1024px) {
    .section {
        padding: var(--sp-20) 0;
    }
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--anim-fast);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--c-primary);
    color: var(--c-surface);
}
.btn-primary:hover {
    background-color: var(--c-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    color: var(--c-primary);
    border: 2px solid var(--c-primary);
}
.btn-outline:hover {
    background-color: rgba(0, 168, 150, 0.05);
}

.card {
    background-color: var(--c-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--c-border);
    padding: var(--sp-5);
    transition: all var(--anim-med);
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.badge {
    display: inline-block;
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-sm);
    background-color: rgba(0, 168, 150, 0.1);
    color: var(--c-primary);
    font-size: var(--text-caption);
    font-weight: 500;
}

/* Header */
.site-header {
    background-color: var(--c-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--sp-4) 0;
}

.nav-links {
    display: none;
}
@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: var(--sp-6);
    }
}
.nav-links a:hover {
    color: var(--c-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--c-text-primary);
}
@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mt-4 { margin-top: var(--sp-4); }

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--anim-slow), transform var(--anim-slow);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Call Button */
.floating-call {
    position: fixed;
    bottom: var(--sp-4);
    right: var(--sp-4);
    background-color: var(--c-primary);
    color: var(--c-surface);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 90;
}
@media (min-width: 768px) {
    .floating-call {
        display: none;
    }
}

/* Tabs */
.tabs-header {
    display: flex;
    gap: var(--sp-2);
    border-bottom: 2px solid var(--c-border);
    margin-bottom: var(--sp-6);
    overflow-x: auto;
}
.tab-btn {
    background: none;
    border: none;
    padding: var(--sp-3) var(--sp-4);
    font-weight: 500;
    color: var(--c-text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}
.tab-btn.active {
    color: var(--c-primary);
    border-bottom-color: var(--c-primary);
}
.tab-content {
    display: none;
    animation: fadeIn var(--anim-med);
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- New Design Utilities for Redesign --- */

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(11, 37, 69, 0.05);
}

/* Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--c-primary) 0%, #007A6D 100%);
    color: var(--c-surface);
}

.text-gradient {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
}

.bg-gradient-mesh {
    background-color: var(--c-surface);
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 168, 150, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(11, 37, 69, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 168, 150, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(11, 37, 69, 0.05) 0px, transparent 50%);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 168, 150, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 168, 150, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 168, 150, 0); }
}

/* Enhanced Buttons */
.btn-glow {
    position: relative;
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    z-index: -1;
    border-radius: calc(var(--radius-md) + 2px);
    filter: blur(8px);
    opacity: 0;
    transition: opacity var(--anim-med);
}
.btn-glow:hover::after {
    opacity: 0.6;
}
.btn-primary.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--c-primary);
}

/* Modern Card Enhancements */
.card-modern {
    background-color: var(--c-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    padding: var(--sp-6);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,168,150,0.03) 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--anim-med);
}
.card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 168, 150, 0.3);
    box-shadow: 0 20px 40px -15px rgba(11, 37, 69, 0.1);
}
.card-modern:hover::before {
    opacity: 1;
}
.card-modern .icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: rgba(0, 168, 150, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-4);
    transition: all var(--anim-med);
}
.card-modern:hover .icon-wrapper {
    background-color: var(--c-primary);
    color: var(--c-surface);
    transform: scale(1.1) rotate(-5deg);
}
.card-modern:hover .icon-wrapper i {
    color: var(--c-surface) !important;
}

/* Stat Counters */
.stat-item {
    text-align: center;
    padding: var(--sp-4);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--c-secondary);
    line-height: 1;
    margin-bottom: var(--sp-2);
}
.stat-label {
    font-size: var(--text-caption);
    color: var(--c-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Utility Helpers */
.rounded-full { border-radius: 9999px; }
.shadow-glow { box-shadow: 0 10px 25px -5px rgba(0, 168, 150, 0.3); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
