:root {
  --bg-start: #061c19;
  --bg-mid1: #0a2b27;
  --bg-mid2: #0e3f3a;
  --bg-end: #134d44;
  --glass-bg: rgba(11, 39, 36, 0.3);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text: #e0f7f5;
  --accent: #3bd9c4;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 16.5rem;
    background: linear-gradient(
        135deg,
        var(--bg-start) 0%,
        var(--bg-mid1) 25%,
        var(--bg-mid2) 60%,
        var(--bg-end) 100%
    );
    z-index: -1;
}
#rain-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}
html {
  scroll-behavior: smooth;
}
body {
  padding-top: 17rem;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(
    135deg,
    var(--bg-start) 0%,
    var(--bg-mid1) 25%,
    var(--bg-mid2) 60%,
    var(--bg-end) 100%
  );
  color: var(--text);
  position: relative;
  z-index: 0;
}
header {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  text-align: center;
  padding: 2rem 1rem;
  margin: 1rem;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
header h1 {
  margin: 0;
  color: var(--accent);
  font-size: 2.5rem;
}
header p {
  margin: 0.5rem 0 0 0;
  opacity: 0.8;
}
nav {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
  margin: 0 1rem 1rem 1rem;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: background 0.3s, color 0.3s;
  border-radius: 8px;
}
nav a:hover {
  background: rgba(59, 217, 196, 0.2);
  color: var(--text);
}
.settings-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

#settings-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  backdrop-filter: blur(10px) saturate(150%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

#settings-btn:hover {
  filter: brightness(1.3);
  transform: scale(1.05);
}
.icon {
  width: 30px;
  height: 30px;
}
.glass-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: background 0.4s ease, transform 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 1000;
} 
.glass-menu button {
  font-size: 20px;
  padding: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  backdrop-filter: blur(10px) saturate(150%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease
}
.glass-menu button:hover {
  transform: scale(1.05);
  filter: brightness(1.3);
}
.hidden {
  display: none;
}
section {
  scroll-margin-top: 18rem;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 0;
}
h2 {
  border-left: 4px solid var(--accent);
  padding-left: 0.5rem;
  color: var(--accent);
}
.glass-card {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  transition: background 0.4s ease, transform 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.glass-card:hover {
  transform: scale(1.015);
  filter: brightness(1.3);
}
.TopGlassWrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}
.TopGlassImageBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 16.5rem;
  background: url('skyline.jpg') center/cover no-repeat;
  opacity: 0.55;
  z-index: 5;
  pointer-events: none;
}
.TopGlassBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 16.5rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(5px) saturate(160%);
  -webkit-backdrop-filter: blur(5px) saturate(160%);
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.socials a {
  margin: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.socials a:hover {
  text-decoration: underline;
}
a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: #26bba9;
  text-decoration: underline;
}
footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  opacity: 0.7;
  font-size: 0.9rem;
  color: var(--text);
}
footer a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.5rem;
}
footer a:hover {
  text-decoration: underline;
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 10, 15, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.popup-box {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  text-align: center;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.popup-box button {
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.4s ease;
}
.popup-box button:hover {
  transform: scale(1.05);
  filter: brightness(1.3);
}
.popup-box h2 {
  border-left: none;
  padding-left: 0;
}
.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  nav {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  nav a {
    flex: 0 0 auto;
  }
}