@font-face {
  font-family: "appFontFa";
  src: url("vazir.woff2") format("woff2");
}

@font-face {
  font-family: "appFontEn";
  src: url("vazir-en.woff2") format("woff2");
}

* {
  -webkit-tap-highlight-color: transparent;
  font-family: appFontFa;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: 300ms;
  user-select: none;
  -webkit-user-drag: none;
}

body {
  font-family: appFontFa;
  background-color: #fafcff;
  color: #1a2c3e;
  line-height: 1.5;
  scroll-behavior: smooth;
}

:root {
  --primary: #0a66c2;
  --primary-dark: #004182;
  --accent: #00a6c4;
  --gray-light: #f0f4f9;
  --gray: #e2e8f0;
  --dark: #0f172a;
  --shadow-sm:
    0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 20px 25px -12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--gray-light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 20px;
}

.english {
  font-family: appFontEn;
}

.dark-blue {
  color: #004182;
}

.taja {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.2;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--dark);
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: var(--transition);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(125deg, var(--primary) 20%, var(--accent) 80%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.logo span {
  font-size: 1rem;
  font-weight: 500;
  background: none;
  color: var(--primary-dark);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
  font-size: 1rem;
}
.nav-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(10, 102, 194, 0.2);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: scale(0.98);
  box-shadow: 0 8px 20px rgba(10, 102, 194, 0.3);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 0.6rem 1.6rem;
  border-radius: 40px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.green-bean-button {
  padding: 10px 20px;
  border-radius: 100px;
  background: #0e8a0e;
  color: white;
  text-decoration: none;
  position: relative;
}
.green-bean-button:hover {
  transform: translateY(-1%) !important;
  filter: saturate(120%) brightness(105%);
}
.hero {
  padding: 5rem 0 3rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.hero-content {
  flex: 1.2;
}
.hero-image {
  flex: 0.9;
  background: linear-gradient(145deg, var(--gray-light), #ffffff);
  border-radius: 2rem;
  padding: 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.hero-image img {
  max-width: 100%;
  max-width: 20rem;
  border-radius: 1.5rem;
  object-fit: contain;
  aspect-ratio: 1 / 0.9;
}
.badge {
  display: inline-block;
  background: #eef2ff;
  color: var(--primary);
  border-radius: 100px;
  padding: 0.25rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  color: #334155;
  margin: 1.5rem 0;
  max-width: 90%;
}
.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.services {
  padding: 4rem 0;
  background: var(--gray-light);
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title p {
  color: var(--primary);
  font-weight: 500;
  margin-top: 0.5rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: white;
  border-radius: 28px;
  padding: 2rem 1.8rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 102, 194, 0.2);
}
.icon {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: #475569;
}

.about {
  padding: 5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}
.about-text {
  flex: 1;
}
.about-stats {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-card {
  background: white;
  padding: 1.8rem;
  border-radius: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 140px;
  border-bottom: 3px solid var(--accent);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.team {
  background: var(--gray-light);
  padding: 4rem 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.team-member {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
  padding-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.team-member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #cbd5e1;
}
.team-member h4 {
  margin-top: 1rem;
  font-size: 1.25rem;
}

.contact {
  padding: 5rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  background: white;
  border-radius: 2rem;
  box-shadow: var(--shadow-md);
  padding: 2rem;
}
.contact-info {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  border-radius: 1.5rem;
  padding: 2rem;
}
.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.contact-detail {
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
input,
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray);
  border-radius: 1rem;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.2s;
  background: #fefefe;
  text-align: right;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}
button[type="submit"] {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 2rem;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}
.call {
  text-decoration: none;
  color: white;
}
footer {
  background: var(--dark);
  color: #94a3b8;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

.nav-links a.active {
  color: #004182 !important;
  font-weight: 700;
}

.nav-links a.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #004182;
  margin-top: 4px;
}

section[id] {
  scroll-margin-top: 85px;
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 450px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-container {
    justify-content: space-between;
  }
  .hero .hero-content p {
    max-width: 100%;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about {
    flex-direction: column;
  }
  .navbar {
    padding: 0.8rem 0;
  }
  .mobile-menu-btn {
    display: block;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
  }
}
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--primary);
}
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links.show {
    display: flex;
    flex-direction: column;
    background: white;
    width: 100%;
    padding: 1rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-sm);
    margin-top: 0.5rem;
    text-align: center;
  }
  .nav-container {
    flex-wrap: wrap;
  }
}

.fade-up {
  animation: fadeUp 0.6s ease-out;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
