:root {
  --primary-color: #00e676;
  --primary-hover: #00c466;
  --secondary-color: #444;
  --secondary-hover: #555;
  --dark-bg: #121212;
  --card-bg: #1e1e1e;
  --section-dark-bg: #181818;
  --text-primary: #e0e0e0;
  --text-secondary: #b3b3b3;
  --border-color: #2e2e2e;
  --shadow-color: rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--section-dark-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  color: #fff;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-image: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-hover)
  );
  color: #111;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 230, 118, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-3px);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  background-image: url("https://images.unsplash.com/photo-1580519542036-c47de6196ba5?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzOTAwNXwwfDF8c2VhcmNofDEyfHxjdXJyZW5jeSUyMGV4Y2hhbmdlJTIwYWJzdHJhY3R8ZW58MHx8fHwxNzIwMTczMjk4fDA&ixlib=rb-4.0.3&q=80&w=1080");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(18, 18, 18, 1),
    rgba(18, 18, 18, 0.3)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.service-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.service-item h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.service-item p {
  color: var(--text-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.about-content h2 {
  text-align: right;
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.office-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px var(--shadow-color);
  flex: 0 1 340px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.office-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px var(--shadow-color);
}

.office-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-content h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}
.card-details p {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.card-details .fas {
  color: var(--primary-color);
  width: 25px;
  margin-inline-end: 10px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.testimonial-card {
  /* background: var(--card-bg); */
  padding: 2rem;
  min-height: 300px;
  border-radius: 15px;
  /* border-right: 4px solid var(--primary-color); */
}
.testimonial-card p {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--text-secondary);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}
.testimonial-author h4 {
  color: #fff;
}

.footer {
  background: var(--section-dark-bg);
  padding-top: 4rem;
  color: var(--text-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer h3 {
  color: #fff;
  margin-bottom: 1.5rem;
}
.footer ul {
  list-style: none;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}
.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(-5px);
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.footer-contact i {
  color: var(--primary-color);
}
.social-links a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  margin-inline-end: 1rem;
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: var(--primary-color);
}
.footer-copyright {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .nav-menu {
    display: none;
  }
  .about-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .about-image {
    display: none;
  }
}
