@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
    body {
      font-family: 'Roboto', Arial, sans-serif;
      margin: 0;
      background: linear-gradient(135deg, #e8ecef 0%, #f4f6fa 100%);
      color: #222;
      transition: background 0.3s, color 0.3s;
    }
  
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 0;
  background: #333;
  padding: 0 24px; 
  border-radius: 0 0 12px 12px;
  margin-bottom: 32px;
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  z-index: 100;
  transition: opacity 1s;
}

.navbar.fade {
  opacity: 0.1;
  pointer-events: none;
}

.navbar a {
  color: #eee;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.navbar a:hover {
  color: #ffd600;
  transform: scale(1.08);
}

.navbar-links {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
}
    .container {
      max-width: 1000px;
      margin: 40px auto;
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
      padding: 96px 20px 40px 20px; 
    }
    .profile-header {
      display: flex;
      align-items: center;
      gap: 32px;
      margin-bottom: 32px;
      padding: 0 8px; 
    }
    .profile-pic {
      width: 96px;
      height: 96px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #555;
      background: #e3e3e3;
      transition: border-color 0.3s;
      margin-left: 0; 
    }
    .tagline {
      color: #555;
      font-size: 1.2em;
      margin-top: 8px;
      transition: color 0.3s;
    }
    h1 {
      color: #111;
      font-size: 2.5em;
      margin-bottom: 0.2em;
      transition: color 0.3s;
    }
    h2 {
      color: #555;
      margin-top: 2em;
      margin-bottom: 0.5em;
      border-bottom: 1px solid #e3e3e3;
      padding-bottom: 0.2em;
      scroll-margin-top: 80px;
      transition: color 0.3s, border-color 0.3s;
      font-family: 'Inter', Arial, sans-serif;
      font-weight: 700;
      font-size: 2em;
      margin-top: 2em;
    }
    h3 {
      font-family: 'Inter', Arial, sans-serif;
      font-weight: 700;
      font-size: 1.3em;
      margin-top: 1.5em;
    }
    ul {
      list-style: disc;
      padding-left: 0;
      margin-left: 1em;
      color: #222;
      transition: color 0.3s;
    }
    ul ul {
      list-style: disc;
      padding-left: 1.5em;
    }
    .card {
      background: #f4f6fa;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      padding: 24px;
      margin-bottom: 20px;
      transition: background 0.3s, box-shadow 0.3s, color 0.3s;
      color: #222;
    }
    .project-link {
      color: #1976d2;
      text-decoration: none;
      font-weight: bold;
      transition: color 0.2s;
    }
    .project-link:hover {
      text-decoration: underline;
    }
    .contact-icons {
      margin-top: 2em;
      display: flex;
      gap: 24px;
      justify-content: flex-start;
    }
    .contact-icons a {
      color: #555;
      font-size: 2em;
      transition: color 0.2s;
      text-decoration: none;
    }
    .contact-icons a:hover {
      color: #111;
    }
    footer {
      text-align: center;
      color: #888;
      margin-top: 40px;
      padding: 16px 0;
      font-size: 0.95em;
      transition: color 0.3s;
    }
    .fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
  will-change: opacity, transform;
  }

  .fade-section.visible {
    opacity: 1;
    transform: translateY(0);
  }
/* Modal Styles (Contact & Notes) */
.modal {
  display:none;
  position: fixed;
  z-index: 2000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items:center;
  justify-content:center;
  transition: opacity 0.3s ease;
}

.modal-content{
  position: relative;
  background:#fff;
  padding: 32px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  animation: slideDown 0.4s ease;
}

.modal-content h2 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 16px;
}

.modal-content form{
  display: flex;
  flex-direction: column;
  gap: 12px
}

.modal-content input,
.modal-content textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  font-family: 'Roboto', Arial, sans-serif;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-content textarea{
  min-height: 120px;
  height: 3em;
}
.modal-content input:focus,
.modal-content textarea:focus{
  outline:none;
  border-color: #1976d2;
  box-shadow: 0 0 6px rgba(25, 118,219,0.3);
}

.modal-content button {
  background: #1976d2;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-content button:hover {
  background: #1259a5;
}
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5em;
  color: #333;
  cursor: pointer;
}

@keyframes slideDown {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1;}
}
.note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.note-actions {
  display:flex;
  gap: 8px;
}
.notes-list .edit-btn,
.notes-list .delete-btn{
  font-size: 0.8em;
  padding: 2px 6px;
  background: none;
  border: none;
  color: #1976d2;
  cursor:pointer;
}

.notes-list .edit-btn:hover {
  text-decoration: underline;
  color: #1259a5;
}

.notes-list .delete-btn:hover {
  text-decoration: underline;
  color: #8e0000;
}
/* Nightmode Button */
.toggle-theme-btn {
  background-color: #fff;
  width: 56px;
  height: 32px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18); 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  padding: 0;
  margin-right: 40px;
}

.toggle-theme-btn-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 0 0 2px rgba(0,0,0,0.08); 
  transition: left 0.3s, background 0.3s, box-shadow 0.3s;
  font-size: 1.2em;
  color: #ffd600;
  z-index: 1;
}
body.dark .toggle-theme-btn {
  background-color: #111;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
}
body.dark .toggle-theme-btn-indicator {
  background: #222;
  color: #ffd600;
  box-shadow: 0 2px 12px rgba(255,255,255,0.12), 0 0 0 2px #444;
}
.toggle-theme-btn .fa-moon {
  color: #ffffff;
}
.toggle-theme-btn .fa-sun {
  color: #ffd600;
}
.toggle-theme-btn:hover {
  color: #c7a600;
}
.hamburger {
  display: block;
  cursor: pointer;
  font-size: 1.6em;
  color: #eee;
  background: none;
  border: none;
  margin-right: 16px;
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 8px;
    height: 56px;
  }
  .toggle-theme-btn {
    margin-right: 18px; 
    margin-left: 0;
    align-self: center;
  }
  .navbar-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    left: 0;
    top: 40px;
    background: #333;
    width: max-content;
    padding: 8px 0;
    border-radius: 0 0 12px 12px;
    z-index: 1000;
    box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.1);
    height:auto
  }
  .navbar-links.open {
    display: flex;
  }
  .navbar.open .navbar-links {
    display: flex;
  }
  .navbar-links a {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
    padding: 40px 25px;
    height: auto;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}
    body.dark {
      background: linear-gradient(135deg, #121212 0%, #232526 100%);
      color: #ddd;
    }
    body.dark .navbar {
      background: #222;
    }
    body.dark .navbar a {
      color: #ddd;
    }
    body.dark .navbar a:hover {
      color: #ffd600;
    }
    body.dark .container {
      background: #1e1e1e;
      box-shadow: 0 2px 16px rgba(255, 255, 255, 0.1);
      color: #ddd;
    }
    body.dark .profile-pic {
      border-color: #bbb;
      background: #444;
    }
    body.dark .tagline {
      color: #bbb;
    }
    body.dark h1 {
      color: #eee;
    }
    body.dark h2 {
      color: #bbb;
      border-bottom-color: #444;
    }
    body.dark ul,
    body.dark .card {
      color: #ddd;
      background: #2a2a2a;
      box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
    }
    body.dark .project-link {
      color: #90caf9;
    }
    body.dark .project-link:hover {
      color: #bbdefb;
    }
    body.dark .contact-icons a {
      color: #bbb;
    }
    body.dark .contact-icons a:hover {
      color: #eee;
    }
    body.dark footer {
      color: #666;
    }
    body.dark .toggle-theme-btn {
      color: #ccc;
    }
    body.dark .toggle-theme-btn:hover {
      color: #ffd600;
    }
    body.dark .modal-content {
      background: #1e1e1e;
      color: #ddd;
    }
    body.dark .modal-content input,
    body.dark .modal-content textarea{
      background: #2a2a2a;
      border: 1px solid #555;
      color: #eee;
    }
section {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e3e3e3;
}
