@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Inter:wght@400;500&display=swap');

/* === Color Variables === */
:root {
  --bg-color: #ffffff;
  --text-color: #222222;
  --nav-bg: #f0f0f0;
  --nav-text: #1a1a1a;
  --accent-color: #e6b800;
  --hover-bg: rgba(230, 184, 0, 0.1);
  --dropdown-bg: #ffffff;
  --dropdown-hover: #f9f9f9;
  --title-color: #1a1a1a;
}

body.dark-mode {
  --bg-color: #121212;
  --text-color: #eeeeee;
  --nav-bg: #1e1e1e;
  --nav-text: #eeeeee;
  --accent-color: #7acbd9;
  --hover-bg: rgba(122, 203, 217, 0.15);
  --dropdown-bg: #1f1f1f;
  --dropdown-hover: #2a2a2a;
  --title-color: #ffffff;
}

/* === Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* === Navigation Bar === */
nav {
  width: 100%;
  background-color: var(--nav-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 80px;
}

nav p {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--accent-color);
  letter-spacing: 1px;
}

/* --- Nav Links --- */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--nav-text);
  padding: 10px 14px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
  background-color: var(--hover-bg);
  color: var(--accent-color);
}

/* === Dropdown === */
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--dropdown-bg);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
  min-width: 200px;
}

nav ul li:hover ul {
  display: block;
}

nav ul li ul li a {
  display: block;
  padding: 12px 16px;
  color: var(--text-color);
  transition: background 0.3s ease;
}

nav ul li ul li a:hover {
  background-color: var(--dropdown-hover);
  color: var(--accent-color);
}

/* === Dark Mode Toggle === */
.toggle-container {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.theme-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #aaa;
  border-radius: 34px;
  transition: 0.4s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* === Main Content === */
main {
  padding: 100px 40px;
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--title-color);
}

p {
  font-size: 18px;
  color: var(--text-color);
}


