/* ============================================================
   Global Resets and Variables
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
}

[data-theme="dark"] {
  --bg-color: #111111;
  --text-color: #ffffff;
}

/* ============================================================
   Body and Page Layout
   ============================================================ */
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Helvetica Neue', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}
main {
  padding-top: 120px; /* adjust based on header height */
}

/* ============================================================
   Header Layout and Logo
   ============================================================ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0; 
  left: 0;

}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  flex: 1;
}

.logo h1 {
  font-size: 3rem;
  letter-spacing: 0.1em;
  margin: 0;
}

/* ============================================================
   Responsive Design
   ============================================================ */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
  }

  .logo h1 {
    font-size: 2rem;
  }

  button#menu-toggle {
    font-size: 2rem;
  }
}

/* ============================================================
   Navigation Menu and Toggle
   ============================================================ */
.nav-toggle {
  position: static;
  top: 1rem;
  right: 1rem;
}

button#menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-color);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  align-self: flex-start;
  margin-right: auto;
}

ul#nav-menu {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

ul#nav-menu.hidden {
  display: none;
}

a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.5rem;
}

/* ============================================================
   Hero Section with Logo Image
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  width: 100%;
}

.site-logo {
  max-width: 80%;
  height: auto;
  transition: filter 0.3s ease;
}

/* ============================================================
   Theme Toggle Switch (inside menu)
   ============================================================ */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

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

.slider {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 24px;
  transition: background-color 0.3s;
}

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

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

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

.theme-label {
  font-size: 1rem;
  color: var(--text-color);
}

/* ============================================================
   Footer and Misc.
   ============================================================ */
.subtitle {
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: #444;
}

.coming-soon {
  margin-top: 3rem;
  text-align: center;
}

footer {
  margin-top: 4rem;
  font-size: 0.9rem;
}
/* ============================================================
   Squares Background Animation
   ============================================================ */
#squares-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
:root {
  --square-border-color: rgba(0, 0, 0, 0.2);
  --square-hover-fill: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --square-border-color: rgba(11, 133, 27, 0.897);
  --square-hover-fill: rgba(48, 236, 79, 0.863);
}