body, html {
  background-color: #f8f9fa;
  color: #212529;
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}

/* Dark mode overrides */
html.dark-mode, html.dark-mode body {
  background-color: #000;
  color: #f8f9fa;
}

html.dark-mode .project-card {
  background-color: rgba(255,255,255,0.1) !important;
  color: #f8f9fa;
}

.project-card {
  transition: transform 0.3s;
  background-color: #fff !important;
  color: inherit;
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  position: relative;
}

.project-card:hover {
  transform: scale(1.05);
}

.about-section {
  padding: 60px 0;
  text-align: center;
}

.about-section p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: auto;
}

.about-img {
  border-radius: 50%;
  max-width: 200px;
  margin-bottom: 20px;
}

.navbar-brand, .nav-link {
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

#hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

#hero .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  width: 100px;
  height: 50px;
  --light: #d8dbe0;
  --dark: #28292c;
}

.switch-label {
  position: absolute;
  width: 100%;
  height: 50px;
  background-color: var(--dark);
  border-radius: 25px;
  cursor: pointer;
  border: 3px solid var(--dark);
}

.checkbox {
  position: absolute;
  display: none;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  transition: 0.3s;
}

.checkbox:checked ~ .slider {
  background-color: var(--light);
}

.slider::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  box-shadow: inset 12px -4px 0px 0px var(--light);
  background-color: var(--dark);
  transition: 0.3s;
}

.checkbox:checked ~ .slider::before {
  transform: translateX(50px);
  background-color: var(--dark);
  box-shadow: none;
}

/* Report badge positioning */
.report-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.25rem 0.5rem;
}

/* Modal image constraints */
.modal-body img {
  max-height: 300px;
  width: auto;
  max-width: 100%;
  margin: auto;
  display: block;
}

/* Dark mode modal overrides */
html.dark-mode .modal-content {
  background-color: #1e1e1e;
  color: #f8f9fa;
}

html.dark-mode .modal-header,
html.dark-mode .modal-body,
html.dark-mode .modal-footer {
  color: #f8f9fa;
  border-color: #444;
}

html.dark-mode .btn-close {
  filter: invert(1);
}
