:root {
  --bg: #000;
  --text: #e484c3;
  --link: #75f5f3;
  --bar: #111;
}

body.light {
  --bg: #fdfdfd;
  --text: #111;
  --link: #f480ff;
  --bar: #ccc;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Consolas, monospace;
  background-color: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* 🧭 NAVIGATION BAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bar);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--text);
}

.navbar a {
  font-family: Consolas, monospace;
  color: var(--text);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 1rem;
  transition: color 0.3s;
}

.navbar a:hover {
  color: var(--link);
}

.navbar-left .brand {
  font-weight: bold;
  font-size: 1.2rem;
  margin-left: 0;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem; /* keep this line for mobile */
}



/* 🌗 Toggle in Nav */
.toggle-container {
  margin-left: 1.5rem;
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.switch input {
  display: none;
}
.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 20px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: 0.4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}
input:checked + .slider {
  background-color: #77f3f1;
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* 💻 Terminal Window */
.terminal-window {
  max-width: 850px;
  margin: 2rem auto;
  border: 2px solid var(--text);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgb(240, 234, 237);
}

.terminal-bar {
  background: var(--bar);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-title {
  margin-left: auto;
  font-weight: bold;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal {
  padding: 1.5rem;
}

.typewriter::after {
  content: '|';
  animation: blink 1s infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.profile-pic {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.profile-pic img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--text);
  filter: grayscale(100%);
  transition: 0.3s ease;
}
.profile-pic img:hover {
  filter: grayscale(0%);
  box-shadow: 0 0 10px var(--text);
}

.content p,
.content ul {
  margin: 0.8rem 0;
}
.projects {
  list-style: none;
  padding-left: 1rem;
  margin-top: 1rem;
}

.projects li {
  margin-bottom: 0.5rem;
}

/* 🌐 Icon Links */
.icon-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.icon-links a {
  color: var(--text);
  font-size: 1.8rem;
  transition: transform 0.2s ease, color 0.3s ease;
}
.icon-links a:hover {
  transform: scale(1.2);
  color: var(--link);
}

/* Light mode fixes */
body.light .terminal-window {
  box-shadow: 0 0 20px #aaa;
  border-color: #333;
}
body.light .terminal-bar {
  background-color: #eee;
  border-bottom: 1px solid #999;
}
body.light .dot.red { background: #f55; }
body.light .dot.yellow { background: #ffb; }
body.light .dot.green { background: #5c5; }

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .navbar-right {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .terminal-window {
    margin: 1rem;
    box-shadow: none;
    border-width: 1px;
  }

  .terminal {
    padding: 1rem;
  }

  .profile-pic img {
    width: 90px;
    height: 90px;
  }

  .terminal-title {
    font-size: 0.9rem;
  }

  .content p,
  .content ul li {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .typewriter {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .switch {
    width: 36px;
    height: 18px;
  }
  .slider:before {
    height: 14px;
    width: 14px;
    bottom: 2px;
    left: 2px;
  }

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

.projects code {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95em;
}

body.light .profile-pic img {
  filter: none;
  box-shadow: none;
}
