:root {
  --bg-dark: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  --bg-light: linear-gradient(135deg, #e0eafc, #cfdef3);
  --text-dark: #ffffff;
  --text-light: #1a1a1a;
  --card-dark: rgba(0, 0, 0, 0.4);
  --card-light: rgba(255, 255, 255, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--bg-dark), radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  background-blend-mode: overlay;
  color: var(--text-dark);
  transition: background 0.6s ease, color 0.6s ease;
  padding-top: 100px;
  line-height: 1.6;
}


body.light-mode {
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec, #bcccdc), radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.05) 0%, transparent 40%);
  background-blend-mode: overlay;
  color: var(--text-light);
}

.about-me-card {
  padding: 40px;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  text-align: center;
  transition: background 0.4s ease;
}

body.light-mode .about-me-card {
  background: transparent;
  box-shadow: none;
}

.switch {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 34px;
}

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

.slider {
  position: relative;
  cursor: pointer;
  background-color: #555;
  border-radius: 34px;
  transition: background-color 0.4s ease;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 8px;
  box-sizing: border-box;
}

.slider:before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 26px;
  height: 26px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s ease, background-color 0.4s ease;
  box-shadow:
    0 0 0 0 rgba(255, 223, 0, 0.7),
    0 0 8px 4px rgba(255, 223, 0, 0.5);
}

body.light-mode {
  background-color: #f0f0f0;
  color: #1a1a1a;
}

body.light-mode .details > div {
  background: #fefefe;
  border-color: #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.light-mode .details h2 {
  color: #1a1a2e;
  border-color: #aaa;
}

body.light-mode .details p,
body.light-mode .details li {
  color: #222;
}

body.light-mode .slider {
  background-color: #f1c40f;
}

body.light-mode .slider:before {
  transform: translateX(26px);
  background-color: #fff;
  box-shadow:
    0 0 4px rgba(255, 223, 0, 0.9),
    0 0 12px rgba(255, 223, 0, 0.6);
}

input:not(:checked) + .slider:after {
  content: none;
}

.nav-bar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 999;
}

.nav-btn {
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: inherit;
  font-weight: bold;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

body.light-mode .nav-btn {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.profile-float-image {
  position: absolute;
  top: 180px;
  right: 20px;
}

.profile-float-image img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  padding: 1px;
  background-color: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.profile-float-image img:hover {
  transform: scale(1.05);
}

.my-story {
  margin-top: 30px;
  max-width: 600px;
  padding: 20px;
  background: transparent;
  text-align: left;
  color: var(--text-dark);
  margin-left: auto;
  margin-right: auto;
}

body.light-mode .my-story {
  color: var(--text-light);
}

.passion {
  text-align: center;
  margin-top: 40px;
}

.passion-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.passion-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 12px;
  width: 180px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* FIREFOX FIX */
  min-width: 0;
}

.passion-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  /* FIREFOX FIX */
  min-width: 0;
}

.passion-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

body.light-mode .passion-card {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-light);
}

.my-mission {
  text-align: center;
  margin: 40px auto;
  padding: 20px;
  max-width: 700px;
}

h1, h2, h3 {
  text-align: center;
}

h3 {
  text-decoration: underline;
  margin-bottom: 20px;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
  margin: 40px auto;
  width: 60%;
}

body.light-mode hr {
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.3), transparent);
}

.content-section {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  text-align: left;
}

.content-section h2 {
  margin-bottom: 20px;
  color: inherit;
}

.content-section p {
  margin-bottom: 15px;
}