/* Base variables for colours and spacing */
:root {
  --dark-bg: #0f0f0f;
  --light-bg: #f9f9f9;
  --text-dark: #111;
  --text-light: #f4f4f4;
  --amber: #c97a2b;
  --light-yellow: #f9d976;
  --font-heading: 'Inter', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
}

/* Navigation bar */
/* Navigation bar */
/* Navbar styling */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 2rem;
  z-index: 100;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(6px);
}
.logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--light-yellow);
}
/* Navigation container: holds nav links and language selector */
.nav-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  flex: 1;
}

/* Nav links list */
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  /* Increase horizontal gap between nav items for better readability */
  gap: 0.75rem;
}

/* Add spacing between navigation list items */
.nav-links li {
  /* Remove margin from list item; spacing will be handled via anchor padding */
  margin-right: 0;
}
.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0 0.5rem;
  font-size: 0.7rem; /* slightly larger for readability while keeping items compact */
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--light-yellow);
}

/* Language selector styling */
/* Language selector inside nav */
.language-select {
  background: var(--amber);
  color: var(--dark-bg);
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  appearance: none;
  cursor: pointer;
  flex-shrink: 0;
}

/* Position the language selector absolutely inside the navbar so it remains visible even when nav links wrap */

/* Custom arrow for select (optional) */
.language-select::-ms-expand {
  display: none;
}
.language-select:focus {
  outline: none;
  border-color: var(--light-yellow);
}

/* Remove fixed language bar as selector is integrated into nav */
/* Fixed language bar to hold the selector */
.language-bar {
  position: fixed;
  top: 0.8rem;
  right: 2.5rem; /* leave space between selector and edge */
  z-index: 200;
}

/* Contact link outside the nav list keeps it visible on wide screens. */

/* Menu toggle for mobile */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  margin-left: auto;
}

/* Hero section */
.hero {
  height: 100vh;
  position: relative;
  /* Remove static background image. Video will fill the background instead */
  background-image: none;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-light);
}

/* Hero background video styles */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Animated amber gradient overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Remove overlay gradient and opacity so the video plays with its original colours */
  background: transparent;
  opacity: 0;
  background-size: auto;
  animation: none;
  z-index: -1;
}
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  /* Set hero heading to black to contrast against golden background */
  color: #000;
}
.hero p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  color: #111;
}

/* Section styling */
.section {
  padding: 5rem 2rem;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.section-content .text {
  flex: 1 1 50%;
  min-width: 280px;
}
.section-content .image-wrapper {
  flex: 1 1 50%;
  min-width: 280px;
}
.section-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: inherit;
}
.section p {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.section ul, .section ol {
  padding-left: 1.2rem;
  margin: 0;
  margin-bottom: 1rem;
}
.section li {
  margin-bottom: 0.5rem;
}

/* Steps list formatting */
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
.steps li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--amber);
  color: var(--dark-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}
.card {
  flex: 1 1 30%;
  background-color: rgba(201, 122, 43, 0.1);
  border: 1px solid rgba(201, 122, 43, 0.3);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.card p {
  margin: 0;
  font-size: 0.9rem;
}

/* Centered content for contact section */
.contact .section-content.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8rem;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal.show {
  display: flex;
}
.modal-content {
  background: var(--light-bg);
  color: var(--text-dark);
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.modal-content h3 {
  margin-top: 0;
}
.close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Chat widget styles */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
}
.chat-toggle {
  background-color: var(--amber);
  color: var(--dark-bg);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.chat-toggle.hidden {
  display: none;
}
.chat-panel {
  display: none;
  flex-direction: column;
  width: 320px;
  height: 420px;
  background-color: var(--light-bg);
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  position: absolute;
  bottom: 70px;
  right: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.chat-panel.open {
  display: flex;
}
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(120deg, var(--amber), var(--light-yellow), var(--amber));
  color: var(--dark-bg);
  padding: 0.5rem 1rem;
}
.chat-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--dark-bg);
}
.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  font-size: 0.9rem;
  background-color: var(--light-bg);
  color: var(--text-dark);
}
.chat-message {
  margin-bottom: 0.5rem;
}
.chat-message.user {
  text-align: right;
}
.chat-message.assistant {
  text-align: left;
}
.chat-input-area {
  display: flex;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.chat-input-area input {
  flex: 1;
  padding: 0.5rem;
  border: none;
  outline: none;
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-size: 0.9rem;
}
.chat-send {
  background-color: var(--amber);
  color: var(--dark-bg);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: bold;
}

/* Pre-chat form styling */
.chat-preform {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  overflow-y: auto;
  background-color: var(--light-bg);
  color: var(--text-dark);
}
.chat-preform p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
}
.chat-preform input {
  padding: 0.4rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
}
.chat-preform button {
  background-color: var(--amber);
  color: var(--dark-bg);
  border: none;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.api-key {
  display: flex;
  gap: 0.5rem;
}
.api-key input {
  flex: 1;
  padding: 0.4rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
}


/* Contact logo styling */
.contact-logo {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

/* Remove old nav-group styles - nav-container now handles grouping */

/* Responsive navigation */
@media (max-width: 768px) {
  /* Show the hamburger icon */
  .menu-toggle {
    display: block;
  }
  /* Hide the nav-container by default on mobile */
  .nav-container {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 1rem;
    background: rgba(15, 15, 15, 0.9);
    padding: 1rem;
    border-radius: 4px;
  }
  /* When nav-container has the open class, show it */
  .nav-container.open {
    display: flex;
  }
  /* Stack nav links vertically on mobile */
  .nav-links {
    flex-direction: column;
    width: 100%;
  }
  .nav-links a {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }
  /* Place language selector full-width on mobile */
  .language-select {
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
  }
  /* Adjust section padding on small screens */
  .section {
    padding: 4rem 1rem;
  }
  .section-content {
    flex-direction: column;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .card {
    flex-basis: 100%;
  }
}

/* RTL support: apply right-to-left text and layout adjustments when Arabic is selected */
body[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
body[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}
body[dir="rtl"] .section-content {
  flex-direction: row-reverse;
}
@media (max-width: 768px) {
  .hero {
    height: 65vh;      /* Mobilde hero yüksekliğini düşürür. İstersen 60‑70 arası değer ile oynayabilirsiniz. */
    min-height: 420px; /* Çok küçük ekranlarda bile yeterli yükseklik sağlar. */
  }

  .hero-video {
    width: 120%;       /* Videoyu enine genişletir, dikeyde kırpma azaltılır. */
    height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .hero-content {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }
}
