:root {
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --accent-color: #38bdf8;
  --sub-accent-color: #f8b838;
  --nav-height: 70px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.science-link {
  color: #008080; /* Teal color */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px; /* Pushes underline down slightly */
  transition: color 0.2s;
}

.science-link:hover {
  color: #005555; /* Darker teal */
  text-decoration-thickness: 2px;
}
body {
  font-family: system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  margin-top: 20px;
  background: var(--accent-color);
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  border-left: 5px solid var(--accent-color);
  padding-left: 15px;
}

.btn-outline {
  padding: 10px 25px;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  border-radius: 5px;
  transition: 0.3s;
}
.btn-outline:hover {
  background: var(--accent-color);
  color: #000;
}

.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  padding: 12px 24px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: sans-serif;
  cursor: pointer;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}
.floating-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

header,
main,
footer,
hero-section,
projects-section,
publications-section,
experience-section {
  transition: opacity 0.8s ease, filter 0.8s ease;
}

body.focus-mode header,
body.focus-mode main,
body.focus-mode footer,
body.focus-mode hero-section,
body.focus-mode projects-section,
body.focus-mode publications-section,
body.focus-mode experience-section {
  opacity: 0;
  pointer-events: none;
  filter: blur(5px);
}

@media (max-width: 768px) {
  :root {
    --nav-height: auto;
  }

  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }
}
