/* ==========================================================================
   Qlobal Dəyişənlər, Reset və Baza Tənzimləmələri
   ========================================================================== */
:root {
  --primary-bg: #1c44a2;
  --dark-bg: #111c33;
  --navbar-bg: rgba(15, 23, 42, 0.85);
  --card-bg: #0f172abf;
  --gold: #F80505;
  --gold-hover: #c50404;
  --text-main: #ffffff;
  --text-muted: #CBD5E1;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden; 
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--primary-bg);
  color: var(--text-main);
  width: 100%;
  overflow-x: hidden; 
}

main {
  width: 100%;
  overflow-x: hidden; 
}

section {
  padding: 100px 80px;
  text-align: center;
  scroll-margin-top: 100px;
}

section h2 {
  font-size: 42px;
  margin-bottom: 50px;
}

/* Ortaq Düymə Stilləri */
.btn-gold,
.btn-outline {
  display: inline-block; 
  transition: 0.3s;
  text-decoration: none;
  padding: 15px 35px;
  border-radius: 8px;
  font-weight: 600;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-outline {
  border: 2px solid var(--text-main);
  color: var(--text-main);
}

.btn-gold:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(248, 5, 5, 0.3);
}

.btn-outline:hover {
  transform: scale(1.05);
  border-color: var(--text-main);
  color: var(--text-main);
}

/* Ortaq Kart Stili */
.card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  color: var(--text-main);
  transition: 0.3s;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  background: var(--primary-bg);
  box-shadow: 0 20px 40px rgba(248, 5, 5, 0.25); 
}

.card h3 {
  color: var(--text-main);
  margin-bottom: 10px;
}

/* Modal Arxa Fonu */
#calc-modal-container,
#cert-modal-container,
#modal-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Modal Kartının Özü */
#calc-modal-container > div,
#cert-modal-container > div,
#modal-container > div,
.calc-modal,
.modal-content {
  margin: auto;
  max-height: 85vh;
  max-height: 85dvh;
  max-width: 600px;
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.calculator-modal-content {
  background: #111c33;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 650px; 
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column; 
  gap: 20px;
  box-sizing: border-box;
}

.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2e3d5c;
  padding-bottom: 15px;
}

.calc-header h3 {
  font-size: 20px;
  color: #fff;
  margin: 0;
}

.close-calc {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.calc-tabs {
  display: flex;
  gap: 10px;
  width: 100%;
}

.calc-tabs .tab-btn {
  flex: 1;
  padding: 12px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.calc-tabs .tab-btn.active {
  background: var(--gold);
  color: #fff;
  font-weight: bold;
  border-color: var(--gold);
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 15px;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-group label {
  font-size: 14px;
  color: var(--text-muted);
}

.input-group input, 
.input-group select {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

.calc-result {
  margin-top: 15px;
  padding: 15px;
  background: #0f172a;
  border-radius: 6px;
  text-align: left;
  border-left: 4px solid var(--gold);
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   TƏLİM / MÜƏLLİM MODALININ STILLƏRİ (DƏYİŞDİRİLDİ VƏ TƏKMİLLƏŞDİRİLDİ)
   ========================================================================== */

.modal {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  height: 100dvh;
  background-color: rgba(15, 23, 42, 0.85); 
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; 
  justify-content: center; 
  align-items: center;
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal.show { 
  opacity: 1; 
  pointer-events: auto; 
}

.modal-content {
  background: var(--dark-bg); 
  border: 1px solid rgba(255, 255, 255, 0.1) !important; 
  padding: 40px 35px; 
  border-radius: 16px; 
  max-width: 650px; 
  width: 100%; 
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  text-align: left; 
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  transform: translateY(-20px); 
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 25px;
  box-sizing: border-box;
  margin: auto;
}

.modal.show .modal-content { 
  transform: translateY(0); 
}

.close-modal { 
  position: absolute; 
  top: 18px; 
  right: 22px; 
  font-size: 28px; 
  color: var(--text-muted); 
  cursor: pointer; 
  transition: 0.2s;
  background: none;
  border: none;
  z-index: 10;
}
.close-modal:hover { 
  color: #ffffff; 
}

.modal-header-content h2,
#modalTitle { 
  font-size: 26px; 
  color: #ffffff; 
  margin-bottom: 12px; 
}

.modal-header-content p,
#modalDescription { 
  color: var(--text-muted); 
  font-size: 16px; 
  line-height: 1.6; 
  margin: 0; 
}

/* Müəllim Kartı vı Şəkil Stilləri */
.teacher-card {
  width: 100%; 
  padding: 22px 25px; 
  border-radius: 14px; 
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12); 
  display: flex; 
  align-items: center; 
  gap: 25px; 
  box-sizing: border-box;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  text-align: left;
}

.teacher-card img { 
  width: 100px !important; 
  height: 100px !important; 
  min-width: 100px !important;
  min-height: 100px !important;
  border-radius: 50%; 
  object-fit: cover !important; 
  display: block !important;
  border: 3px solid var(--gold); 
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.teacher-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.teacher-card h3 { 
  font-size: 21px; 
  color: #fff; 
  margin: 0; 
  font-weight: 700;
}

.teacher-card p { 
  font-size: 15px; 
  color: var(--text-muted); 
  margin: 0; 
  line-height: 1.4;
}

.teacher-card span { 
  font-size: 14px; 
  color: #ffffff; 
  font-weight: 600; 
}

#modalCloseBtn, 
.modal-content .btn-gold { 
  background-color: var(--gold) !important;
  color: #ffffff !important;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 17px;
  text-decoration: none;
  display: block;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
  margin-top: 10px;
}

#modalCloseBtn:hover {
  opacity: 0.9;
}

/* Mobil tənzimləmələr */
@media (max-width: 600px) {
  section {
    padding: 60px 20px;
  }

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

  .calc-tabs {
    flex-direction: column; 
  }

  /* Müəllim kartının mobil ekran uyğunluğu */
  .teacher-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
    align-items: center;
  }

  .teacher-info {
    align-items: center;
    text-align: center;
  }

  #calc-modal-container,
  #cert-modal-container,
  #modal-container,
  .modal {
    padding: 10px;
  }

  #calc-modal-container > div,
  #cert-modal-container > div,
  #modal-container > div,
  .calc-modal,
  .modal-content {
    max-height: 95vh;
    max-height: 95dvh;
  }

  .modal-content {
    padding: 25px 20px;
  }
}

/* ==========================================================================
   KOMPONENT CSS FAYLLARININ İMPORTU
   ========================================================================== */
@import url('./components/css/header.css');
@import url('./components/css/hero.css');
@import url('./components/css/services.css');
@import url('./components/css/trainings.css');
@import url('./components/css/about.css');
@import url('./components/css/whyour.css');
@import url('./components/css/testimonials.css');
@import url('./components/css/team.css');
@import url('./components/css/gallery.css');
@import url('./components/css/contact.css');
@import url('./components/css/footer.css');
@import url('./components/css/utilities.css');