/* ===== Base Styles ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f4f9ff;
  color: #333;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #4a90e2;
  color: white;
  padding: 20px 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  margin: 5px 0 0;
  font-size: 1.2rem;
}

nav {
  background-color: #357abd;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffd700;
}

.hero {
  text-align: center;
  padding: 50px 20px;
  background: url('hero-image.jpg') no-repeat center center/cover;
  color: #fff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 0 0 3px rgba(0,0,0,0.6);
}

.hero a {
  display: inline-block;
  padding: 12px 25px;
  background-color: #ffd700;
  color: #4a90e2;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.hero a:hover {
  background-color: #4a90e2;
  color: white;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ===== Dark Mode ===== */
body.dark-mode {
  background-color: #121212;
  color: #eee;
}

body.dark-mode header {
  background-color: #222;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

body.dark-mode nav {
  background-color: #333;
}

body.dark-mode nav a {
  color: #eee;
}

body.dark-mode nav a:hover {
  color: #ffd700;
}

body.dark-mode .hero {
  background: url('hero-image.jpg') no-repeat center center/cover;
  filter: brightness(0.75);
  color: #ffd700;
}

body.dark-mode .hero a {
  background-color: #4a90e2;
  color: #ffd700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
}

body.dark-mode .hero a:hover {
  background-color: #ffd700;
  color: #4a90e2;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.9);
}

body.dark-mode footer {
  background-color: #111;
}

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

  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex; /* visible when .show */
}

.modal-content {
  background-color: #fff;
  margin: 0 20px;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  max-width: 90%;
  text-align: center;
  position: relative;
}

/* ===== Toggle Switch ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 20px 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  transition: background-color 0.4s;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px; width: 26px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: transform 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4a90e2;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* ===== Theme Button ===== */
.theme-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  width: 52px;
  height: 52px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: background-color 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.theme-btn:hover {
  background: #357abd;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
