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

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-dark);
  transition: background 0.6s ease, color 0.6s ease;
  padding-top: 40px;
}


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);
}

/* Toggle Switch */
.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 .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);
}
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;
}
.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);
}

/* Right column specific styling */
.right-column {
    padding-left: 160px;
}

/* Project section headings */
.right-column h1 {
    font-size: 2.2em;
    margin-bottom: 30px;
    /*color: #1a1a2e;*/
    text-align: center;
}

.right-column h2 {
    font-size: 1.5em;
    margin: 25px 0 15px 0;
    /*color: #1a1a2e;*/
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
}

.right-column h3 {
    font-size: 1.2em;
    margin: 20px 0 12px 0;
    /*color: #1a1a2e;*/
}

/* Project paragraphs */
.right-column p {
    line-height: 1.7;
    margin-bottom: 18px;
    /*color: #333;*/
}

/* Project list styling */
.right-column ul {
    margin: 15px 0;
    padding-left: 25px;
}

.right-column li {
    margin-bottom: 10px;
    line-height: 1.6;
    /*color: #333;*/
}

/* Tech stack tags */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tech-tag {
    background: rgba(79, 195, 247, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #1976d2;
    font-weight: 500;
}

/* Divider between projects */
.project-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 40px 0;
}

