:root {
  --navy: #1e293b;
  --gold: #facc15;
  --slate: #64748b;
  --light-bg: #f8fafc;
  --off-white: #f1f5f9;
  --link-hover: #eab308;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Merriweather', serif;
  color: var(--navy);
  background: var(--light-bg);
  overflow-x: hidden;
}

/* Typography */
h1, h2 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
}

p, li {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: rgba(30, 41, 59, 0.85); /* navy transparent */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  height: 3%;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.navbar-left {
   position: absolute;
  left: 1rem;
}

.navbar-left .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.navbar-right {
  flex: 2 1 100%;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.navbar-right a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;

}

.navbar-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--link-hover);
  transition: width 0.3s ease;
}

.navbar-right a:hover {
  color: var(--link-hover);
  text-decoration: overline;

}

/* Hamburger menu */
.hamburger-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: absolute;
  top: 0.5rem;
  left: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  display: block;
  transition: all 0.3s ease-in-out;
}

/* Hamburger animation */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(to top, #e0f2fe, var(--light-bg));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.8rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.hero-text p {
  max-width: 700px;
  font-size: 1.2rem;
  color: var(--slate);
}

.hero-image {
  width: 100%;
  max-width: 720px;
  margin-top: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

/* Section Layout */
.section {
  padding: 6rem 2rem;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.section:nth-of-type(even) {
  background-color: var(--off-white);
}

.section-content {
  max-width: 1000px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  padding-bottom: 0.25rem;
}

.section ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 1rem;
}

.with-image {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.with-image.reverse {
  flex-direction: row-reverse;
}

.section-image {
  flex: 1 1 300px;
  max-width: 450px;
  border-radius: 0.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.with-image div {
  flex: 1 1 300px;
}

/* AI section banner image */
.section-full-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background-color: var(--navy);
  color: #cbd5e1;
  text-align: center;
  padding: 2rem;
  font-size: 0.95rem;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Scroll animation */
.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Section Link Styling */
.section a {
  color: var(--link-hover);
  text-decoration: none;
}

.section a:hover {
  text-decoration: underline;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .hamburger-wrapper {
    display: flex;
    align-items: center;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .navbar-right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(30, 41, 59, 0.97);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .navbar-right.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .navbar-right a {
    color: #f8fafc;
    font-size: 1.1rem;
  }
}

/* -------------------- DARK MODE -------------------- */
html.dark {
  background-color: #0f172a;
  color: #e2e8f0;
}

html.dark body {
  background-color: #0f172a;
}

html.dark .navbar {
  background-color: rgba(15, 23, 42, 0.9); /* darker navy */
  border-bottom-color: #334155;
}

html.dark .navbar-left .logo {
  color: var(--gold);
}

html.dark .navbar-right a {
  color: #cbd5e1;
}

html.dark .navbar-right a:hover {
  color: var(--link-hover);
}

html.dark .hero {
  background: linear-gradient(to top, #1e293b, #0f172a);
}

html.dark .hero-text h1 {
  color: #f8fafc;
}

html.dark .hero-text p {
  color: #cbd5e1;
}

html.dark .section {
  background-color: #1e293b;
}

html.dark .section:nth-of-type(even) {
  background-color: #0f172a;
}

html.dark .section h2 {
  color: #facc15;
  border-color: #facc15;
}

html.dark .section p,
html.dark .section li {
  color: #e2e8f0;
}

html.dark .section a {
  color: #facc15;
}

html.dark .section a:hover {
  color: #fde68a;
}

html.dark .footer {
  background-color: #0f172a;
  color: #cbd5e1;
}

html.dark .footer a {
  color: #facc15;
}

/* Dark Mode Toggle Position */
.dark-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1002;
}

.dark-toggle button {
  background: none;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-size: 1.2rem;
  padding: 0.4rem 0.6rem;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-toggle button:hover {
  background-color: var(--gold);
  color: #1e293b;
}

/* Smooth theme transition */
body,
.navbar,
.hero,
.section,
.footer {
  transition: background-color 0.4s ease, color 0.4s ease;
}
