/* Base styling for the Al‑Saegh Specialty Center website */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: #f7f9fc;
  color: #333;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

header {
  background: linear-gradient(135deg, #007cf0 0%, #00dfd8 100%);
  color: #fff;
  padding-bottom: 4rem;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.8;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

#languageSwitcher {
  padding: 0.4rem;
  border: none;
  border-radius: 4px;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn.primary {
  background-color: #fff;
  color: #007cf0;
}

.btn.primary:hover {
  background-color: #e6f4ff;
}

.btn.secondary {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
}

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

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.section {
  padding: 4rem 2rem;
}

.section.light {
  background-color: #f0f7fa;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.section-intro {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  flex: 1 1 250px;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.card p {
  font-size: 1rem;
  color: #555;
}

/* Education list */
.education-list {
  list-style: disc;
  padding-left: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.education-list li {
  margin-bottom: 0.8rem;
}

/* Map */
.map-container {
  width: 100%;
  height: 350px;
  margin-top: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Social / Follow section */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 1.8rem;
}
.social-icons a {
  color: #007cf0;
  transition: color 0.3s ease;
}
.social-icons a:hover {
  color: #00dfd8;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
  margin-bottom: 1rem;
}

.modal-content label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.modal-content input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content .queue-result {
  margin-top: 1rem;
  font-weight: bold;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* AI Assistant */
.ai-section {
  padding: 4rem 2rem;
}

.chat-container {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.chat-log {
  height: 300px;
  overflow-y: auto;
  padding: 1rem;
  background-color: #f9f9f9;
}

.chat-log .message {
  margin-bottom: 1rem;
}

.chat-log .message.user {
  text-align: right;
}

.chat-log .message.bot {
  text-align: left;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ccc;
}

.chat-input input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  outline: none;
}

.chat-input button {
  padding: 0.8rem 1.5rem;
  border: none;
  background-color: #007cf0;
  color: #fff;
  cursor: pointer;
}

.chat-input button:hover {
  background-color: #0060b0;
}

/*
 * -------------------------------------------------------------------------
 * Dark theme overrides and enhanced styles
 *
 * These rules redefine the existing light colour palette to a dark one,
 * introduce CSS variables for easy theming, and provide styling for the new
 * statistics section. They appear at the end of the file to ensure they
 * override earlier rules thanks to CSS's cascading behaviour.
 */

:root {
  --color-bg: #0E1528;
  --color-primary: #F59E0B;
  --color-secondary: #14B8A6;
  --color-light: #111D39;
  --color-text: #E5E7EB;
  --color-muted: #CBD5E1;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  background-image:
    radial-gradient(1200px 800px at 80% -10%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(245, 158, 11, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: #FFFFFF;
}

header {
  background: linear-gradient(135deg, #0E1528 0%, #09142D 40%, #0E1528 100%);
  color: #FFFFFF;
}

.logo {
  color: var(--color-primary);
}

.nav-links a {
  color: var(--color-text);
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--color-primary);
}

#languageSwitcher {
  background-color: #15254A;
  color: var(--color-text);
  border: none;
  border-radius: 4px;
  padding: 0.4rem;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn.primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
}
.btn.primary:hover {
  background-color: #D68104;
}
.btn.secondary {
  background-color: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}
.btn.secondary:hover {
  background-color: rgba(20, 184, 166, 0.1);
}

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

.card {
  background-color: #15254A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  filter: brightness(1.05);
}
.card p {
  color: var(--color-muted);
}

.education-list {
  color: var(--color-muted);
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Modal overrides */
.modal-content {
  background-color: #15254A;
  color: var(--color-text);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}
.modal-content input {
  background-color: #0E2142;
  border: 1px solid #243B63;
  color: var(--color-text);
}
.modal-content label {
  color: var(--color-text);
}
.queue-result {
  color: var(--color-primary);
}
.close {
  color: var(--color-text);
}

/* AI chat styling overrides */
.chat-container {
  border: 1px solid #243B63;
  background-color: #15254A;
}
.chat-log {
  background-color: #0E2142;
  color: var(--color-text);
}
.chat-input {
  border-top: 1px solid #243B63;
}
.chat-input input {
  background-color: #0E2142;
  color: var(--color-text);
}
.chat-input button {
  background-color: var(--color-primary);
  color: var(--color-bg);
}
.chat-input button:hover {
  background-color: #D68104;
}

/* Statistics section */
.stats-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.stat-card {
  background-color: #15254A;
  padding: 2rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  text-align: center;
}
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
}
.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--color-muted);
}

/* News section */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 2rem auto 0 auto;
}
.news-item {
  background-color: #15254A;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.news-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--color-primary);
}
.news-item p {
  color: var(--color-muted);
}

/* Hero text permanent glow */
.hero .word-reveal {
  text-shadow: 0 0 19px rgba(245, 158, 11, 0.24), 0 0 36px rgba(20, 184, 166, 0.17);
}

@media (prefers-reduced-motion: reduce) {
  .hero .word-reveal {
    text-shadow: none;
  }
}
/* Word reveal */
.word-reveal {
  display: inline-block;
}

.word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);\n  text-shadow: 0 0 14px rgba(245, 158, 11, 0.18), 0 0 28px rgba(20, 184, 166, 0.12);
  animation: word-reveal 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
  margin-inline-end: 0.35em;
  will-change: transform, opacity, filter;
}

.word-reveal .word:last-child {
  margin-inline-end: 0;
}

@keyframes word-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);\n    text-shadow: 0 0 14px rgba(245, 158, 11, 0.18), 0 0 26px rgba(20, 184, 166, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-reveal .word {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}
/* Motion reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);\n  text-shadow: 0 0 14px rgba(245, 158, 11, 0.18), 0 0 28px rgba(20, 184, 166, 0.12);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);\n    text-shadow: 0 0 14px rgba(245, 158, 11, 0.18), 0 0 26px rgba(20, 184, 166, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;\n    text-shadow: none;\n    transition: none;
  }
}
/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .cards {
    flex-direction: column;
    align-items: center;
  }
}





