:root {
  --light-bg: #f0f9ff; /* Light Sky Blue */
  --primary-glow: #1d4ed8; /* Strong Blue */
  --secondary-glow: #0ea5e9; /* Sky Blue */
  --text-primary: #1e3a8a; /* Darker Blue */
  --text-secondary: #475569; /* Slate Grey */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(226, 232, 240, 0.9);
  --white-color: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background-color: var(--light-bg);
  color: var(--text-primary);
  scroll-behavior: smooth;
}

.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.4;
}

.shape1 {
  width: 400px;
  height: 400px;
  background: var(--primary-glow);
  top: -100px;
  right: -100px;
}

.shape2 {
  width: 300px;
  height: 300px;
  background: var(--secondary-glow);
  bottom: -50px;
  left: -50px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  position: relative;
}

h1,
h2,
h3 {
  font-weight: 800;
}

h2.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 60px;
}

.glass-card {
  background: var(--glass-bg);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 30px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px -15px rgba(29, 78, 216, 0.2),
    0 0 40px -10px rgba(14, 165, 233, 0.3);
  border-color: var(--secondary-glow);
}

.hero {
  padding-top: 150px;
  padding-bottom: 120px;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: -webkit-linear-gradient(
    45deg,
    var(--primary-glow),
    var(--secondary-glow)
  );
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

#about p {
  font-size: 1.1rem;
  line-height: 2.2;
  text-align: justify;
  margin-bottom: 20px;
  color: var(--text-secondary);
}
#about h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
}
.feature-item .icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(
    45deg,
    var(--primary-glow),
    var(--secondary-glow)
  );
  color: var(--white-color);
}
.feature-item .icon svg {
  width: 24px;
  height: 24px;
}
.feature-item span {
  font-size: 1.1rem;
  font-weight: 500;
}

.branch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.branch-card {
  padding: 0;
  overflow: hidden;
}
.branch-image {
  height: 300px;
  background-color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.5rem;
  background-size: cover;
  background-position: center;
  border-radius: 20px 20px 0 0;
}
.branch-content {
  padding: 30px;
}
.branch-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.branch-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.8;
}
.contact-details {
  list-style: none;
  padding: 0;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 500;
}
.contact-details a {
  color: var(--text-primary);
  text-decoration: none;
}
.map-container {
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  height: 300px;
  margin-top: 25px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.language-card {
  text-align: center;
  padding: 30px 20px;
}
.language-flag {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 4px solid var(--white-color);
}
.language-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.language-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.language-card p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  min-height: 70px;
}
.language-card a {
  font-weight: 700;
  color: var(--primary-glow);
  text-decoration: none;
  font-size: 1.1rem;
}

@media (max-width: 992px) {
  .branch-grid,
  .languages-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }
  h2.section-title {
    font-size: 2rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .languages-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}
