@font-face {
  font-family: 'Parwarda';
  src: url('./Parwarda.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary: #0A1D37;

  --primary-dark: #050E1B;

  --primary-light: #15325C;

  --accent: #be9e4b;

  --accent-light: #DFCD98;

  --accent-dark: #8F722A;

  --bg-light: #F8F9FA;

  --bg-card: #FFFFFF;

  --text-main: #212529;

  --text-muted: #6C757D;

  --text-light: #F8F9FA;

  --font-family: 'Outfit', 'Inter', 'Parwarda', sans-serif;

  --shadow-sm: 0 4px 6px rgba(10, 29, 55, 0.03);
  --shadow-md: 0 8px 20px rgba(10, 29, 55, 0.06);
  --shadow-lg: 0 16px 32px rgba(10, 29, 55, 0.1);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  text-align: left;
}

#main-content {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  transform: translateX(0);
  opacity: 1;
}

#main-content.slide-out-right {
  transform: translateX(100px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.25, 0, 1, 1), opacity 0.25s ease-in;
}

#main-content.slide-in-left {
  transform: translateX(-100px);
  opacity: 0;
  transition: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  color: var(--primary);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  position: relative;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  transition: var(--transition-smooth);
}

header.scrolled .nav-container {
  height: 65px;
}

.nav-menu-wrapper {
  display: contents;
}

.mobile-menu-toggle {
  display: none;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-item img {
  height: 55px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

header.scrolled .logo-item img {
  height: 42px;
}

.logo-separator {
  width: 1px;
  height: 40px;
  background-color: rgba(10, 29, 55, 0.15);
  transition: var(--transition-smooth);
}

header.scrolled .logo-separator {
  height: 28px;
}

.logo-text-box {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo-text-box span.title-main {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.logo-text-box span.title-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav ul li a {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  position: relative;
  padding: 8px 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--accent);
  transition: var(--transition-smooth);
}

html[dir="rtl"] nav ul li a::after {
  left: auto;
  right: 0;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: var(--accent-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-login {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--accent);
  color: var(--primary);
  background-color: transparent;
  transition: var(--transition-smooth);
}

.btn-login:hover {
  background-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(191, 159, 74, 0.25);
}

.lang-switcher-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  margin-right: 8px;
}

html[dir="rtl"] .lang-switcher-inline {
  margin-right: 0;
  margin-left: 8px;
}

.lang-btn {
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-muted);
  padding: 2px 4px;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--accent-dark);
}

#lang-ku,
#lang-ar {
  font-family: 'Parwarda', 'Vazirmatn', sans-serif;
}

.lang-separator {
  color: rgba(10, 29, 55, 0.15);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 2px solid transparent;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(191, 159, 74, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 60px;
  background-color: var(--primary-dark);
  background-image: linear-gradient(135deg, rgba(5, 14, 27, 0.95) 0%, rgba(15, 46, 89, 0.9) 100%), url('../logo/background.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(191, 159, 74, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

html[dir="rtl"] .hero::before {
  left: auto;
  right: 0;
  background: radial-gradient(circle at 20% 30%, rgba(191, 159, 74, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
}

.hero-content {
  max-width: 800px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(191, 159, 74, 0.15);
  border: 1px solid rgba(191, 159, 74, 0.3);
  padding: 6px 18px;
  border-radius: 50px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.3;
  color: white;
  margin-bottom: 24px;
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px auto;
}

.section-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  margin-bottom: 12px;
  background-color: rgba(191, 159, 74, 0.1);
  padding: 6px 18px;
  border-radius: 50px;
}

.section-header h2 {
  font-size: 34px;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.section-header p {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 14px;
}

.about-section {
  background-color: #FFFFFF;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h3 {
  font-size: 24px;
  margin-bottom: 18px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.8;
}

.stages-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stage-item {
  display: flex;
  gap: 16px;
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

html[dir="rtl"] .stage-item {
  border-left: none;
  border-right: 4px solid var(--accent);
}

.stage-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stage-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-dark);
  line-height: 1;
}

.stage-details h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--primary);
}

.stage-details p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.modules-section {
  background-color: var(--bg-light);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.module-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(10, 29, 55, 0.06);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.module-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.module-logo-container {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.module-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0px 4px 10px rgba(10, 29, 55, 0.08));
}

.module-card h3 {
  font-size: 17px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--primary);
}

.module-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.module-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.module-card-link:hover {
  color: var(--primary);
}

.stats-section {
  background-color: var(--bg-light);
  padding: 80px 0;
}

.stats-wrapper-card {
  background-color: var(--primary);
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(191, 159, 74, 0.25);
  box-shadow: var(--shadow-lg);
  color: white;
}

.stats-wrapper-card .section-header h2,
.stats-wrapper-card .section-header p {
  color: white;
}

.stats-wrapper-card .section-header h2::after {
  background-color: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 30px 15px;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 10px;
  direction: ltr;
  display: inline-block;
}

.stat-label {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.contact-section {
  background-color: #FFFFFF;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-text {
  text-align: left;
}

html[dir="rtl"] .contact-text {
  text-align: right;
}

.contact-text h2 {
  font-size: 34px;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-desc-text {
  font-size: 15px;
  color: var(--text-main);
  font-weight: 600;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  text-align: left;
  background-color: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

html[dir="rtl"] .contact-detail-item {
  text-align: right;
  border-left: none;
  border-right: 4px solid var(--accent);
}

.contact-detail-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(191, 159, 74, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.contact-desc h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary);
}

.contact-desc p {
  font-size: 13.5px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

footer {
  background-color: #303434;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px 0;
  font-size: 14px;
  border-top: 5px solid var(--accent);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logos img {
  height: 50px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-container {
    height: 80px;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
  }

  .mobile-menu-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
  }

  /* Hamburger transform animations to X when active */
  .mobile-menu-open .mobile-menu-toggle .bar:nth-child(1) {
    transform: translateY(7.75px) rotate(45deg);
  }

  .mobile-menu-open .mobile-menu-toggle .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .mobile-menu-open .mobile-menu-toggle .bar:nth-child(3) {
    transform: translateY(-7.75px) rotate(-45deg);
  }

  /* Mobile menu drawer wrapper */
  .nav-menu-wrapper {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1005;
    padding: 40px 24px;
    gap: 32px;
    overflow-y: auto;
    align-items: center;
    box-shadow: 0 10px 30px rgba(10, 29, 55, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: var(--transition-smooth);
  }

  .mobile-menu-open .nav-menu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  header nav {
    width: 100%;
  }

  header nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  header nav ul li a {
    font-size: 18px;
    padding: 6px 0;
  }

  .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .lang-switcher-inline {
    margin-right: 0;
    margin-left: 0;
    font-size: 15px;
    gap: 12px;
  }

  .btn-login {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 15px;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-details-list {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
  }
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(10, 29, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(10, 29, 55, 0.25);
}