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

:root {
  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(145deg, #f6fafd 0%, #ffffff 100%);
  --bg-section-mild: #fbfdfe;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --border-light: rgba(0, 0, 0, 0.03);
  --border-card: rgba(0, 0, 0, 0.02);
  --text-primary: #1a2c3e;
  --text-secondary: #2c475c;
  --text-soft: #3d5e78;
  --accent: #1e4a6e;
  --accent-light: #2c7da0;
  --btn-bg: #1e4a6e;
  --btn-hover: #0f3a54;
  --btn-outline-border: #1e4a6e;
  --btn-outline-text: #1e4a6e;
  --btn-outline-hover-bg: #eef4fc;
  --card-shadow: 0 10px 25px -12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
  --card-hover-shadow: 0 25px 35px -18px rgba(27, 79, 114, 0.15);
  --facility-border: #eef2f6;
  --contact-wrapper-bg: #ffffff;
  --contact-wrapper-border: #ecf3f8;
  --contact-card-bg: #f9fcff;
  --footer-bg: #f8fafc;
  --footer-border: #e6edf2;
  --footer-text: #4c6f8c;
  --social-bg: #eef2f8;
  --social-hover-bg: #2c7da0;
  --icon-color: #2c7da0;
  --hero-icon-bg: radial-gradient(circle at 30% 20%, #eef5fa, #ffffff);
  --badge-bg: #e5f0f7;
  --badge-text: #1e6f9f;
}

body.dark {
  --bg-body: #0f1724;
  --bg-surface: #111827;
  --bg-card: #1e293b;
  --bg-hero: linear-gradient(145deg, #0a101c 0%, #0f1724 100%);
  --bg-section-mild: #0f1724;
  --bg-nav: rgba(15, 23, 36, 0.92);
  --border-light: rgba(255, 255, 255, 0.05);
  --border-card: rgba(255, 255, 255, 0.03);
  --text-primary: #eef2ff;
  --text-secondary: #cbd5e6;
  --text-soft: #a0b3cc;
  --accent: #3b82b6;
  --accent-light: #60a5fa;
  --btn-bg: #2c7da0;
  --btn-hover: #1e6f9f;
  --btn-outline-border: #60a5fa;
  --btn-outline-text: #93c5fd;
  --btn-outline-hover-bg: #1e2f44;
  --card-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.5);
  --facility-border: #25344d;
  --contact-wrapper-bg: #111827;
  --contact-wrapper-border: #25344d;
  --contact-card-bg: #0f1724;
  --footer-bg: #0b1018;
  --footer-border: #1e2a3a;
  --footer-text: #8ba0bc;
  --social-bg: #1e2a3a;
  --social-hover-bg: #3b82b6;
  --icon-color: #60a5fa;
  --hero-icon-bg: radial-gradient(circle at 30% 20%, #1e2a3a, #0f1724);
  --badge-bg: #1e2f3f;
  --badge-text: #90cdf4;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  scroll-behavior: smooth;
  transition: background-color 0.25s ease, color 0.2s ease;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.2rem;
  margin-bottom: 1.25rem;
}

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

h2:after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: var(--accent-light);
  margin: 0.75rem auto 0;
  border-radius: 4px;
  opacity: 0.6;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 400;
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--btn-bg);
  color: white;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn i {
  font-size: 0.9rem;
}

.btn:hover {
  background-color: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--btn-outline-border);
  color: var(--btn-outline-text);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--btn-outline-hover-bg);
  transform: translateY(-2px);
}

/* New two-line header layout */
.navbar {
  padding: 1rem 0;
  background: var(--bg-nav);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Top row: logo + toggle buttons */
.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.logo span {
  font-weight: 400;
  font-size: 0.85rem;
  background: none;
  color: var(--accent-light);
}

/* Toggle buttons group */
.toggle-group {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.lang-toggle, .theme-toggle {
  background: var(--social-bg);
  border: none;
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--accent-light);
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-toggle:hover, .theme-toggle:hover {
  background: var(--accent-light);
  color: white;
}

.theme-toggle {
  width: 42px;
  padding: 8px;
  justify-content: center;
}

/* Bottom row: navigation links - LEFT ALIGNED */
.nav-links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1.8rem;
  border-top: 1px solid var(--border-light);
  padding-top: 0.8rem;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

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

.nav-contact-btn {
  background: var(--accent-light);
  color: white !important;
  padding: 6px 18px;
  border-radius: 40px;
}

.nav-contact-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Hero section */
.hero {
  padding: 3rem 0 6rem;
  background: var(--bg-hero);
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1.2;
}

.hero-badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}

.hero-content h1 {
  background: linear-gradient(125deg, var(--accent-light), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  margin: 1.5rem 0 2rem;
  max-width: 550px;
  color: var(--text-secondary);
}

.hero-illustration {
  flex: 0.9;
  text-align: center;
}

.hero-icon {
  font-size: 11rem;
  color: var(--icon-color);
  background: var(--hero-icon-bg);
  padding: 1rem;
  border-radius: 60% 40% 50% 50% / 45% 40% 60% 55%;
  box-shadow: 0 20px 35px -15px rgba(0, 0, 0, 0.05);
}

section {
  padding: 5rem 0;
}

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

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

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

.card {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 2rem 1.8rem;
  flex: 1 1 280px;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-card);
  text-align: center;
}

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

.card-icon {
  font-size: 2.8rem;
  color: var(--icon-color);
  margin-bottom: 1.2rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* page specific */
.page-content {
  background: var(--bg-section-mild);
  border-radius: 28px;
  padding: 2rem;
  margin: 2rem 0;
}

.list-styled {
  list-style: none;
  padding-left: 0;
}
.list-styled li {
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--accent-light);
  padding-left: 1rem;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  background: var(--contact-wrapper-bg);
  border-radius: 40px;
  padding: 2.5rem 2.8rem;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--contact-wrapper-border);
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.contact-details i {
  width: 32px;
  color: var(--icon-color);
  font-size: 1.25rem;
}

.social-links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.social-links a {
  background: var(--social-bg);
  width: 42px;
  height: 42px;
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1.3rem;
  transition: 0.2s;
}

.social-links a:hover {
  background: var(--social-hover-bg);
  color: white;
  transform: translateY(-2px);
}

.contact-card {
  flex: 1;
  background: var(--contact-card-bg);
  border-radius: 28px;
  padding: 1.8rem;
}

.email-btn {
  background: transparent;
  border: 1px solid var(--facility-border);
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.footer {
  background: var(--footer-bg);
  padding: 2rem 0;
  border-top: 1px solid var(--footer-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--footer-text);
}

/* Responsive adjustments */
@media (max-width: 880px) {
  .container {
    padding: 0 24px;
  }
  h1 {
    font-size: 2.4rem;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-icon {
    font-size: 7rem;
  }
  .hero-grid {
    flex-direction: column;
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .contact-wrapper {
    padding: 1.8rem;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .nav-top {
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    gap: 1rem;
    justify-content: flex-start; /* ensure left alignment on mobile as well */
  }
}

@media (max-width: 640px) {
  .cards-grid {
    gap: 1.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
}