/* Base Styles (Dark mode default) */
body {
  margin: 0;
  padding: 0;
  /* Dark background with subtle neon gradients */
  background: radial-gradient(circle at 20% 20%, rgba(0,255,255,0.15), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,0,255,0.15), transparent 50%),
              #0a0a0a;
  color: #e0e0e0;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  /* Smooth scrolling for anchor links */
  scroll-behavior: smooth;
  transition: background 0.5s, color 0.5s;
}
/* Use Orbitron font for headings and navigational text */
h1, h2, h3, .logo, .nav-links a, button, label {
  font-family: 'Orbitron', sans-serif;
}

/* Navigation Bar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);    /* semi-transparent for overlay effect */
  backdrop-filter: blur(5px);       /* slight blur for behind content (frosted effect) */
  z-index: 1000;
}
/* Nav inner container for alignment */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}
/* Logo (site name) */
.logo {
  color: #0ff;              /* neon cyan accent */
  font-size: 1.5em;
  margin: 0;
}
/* Nav menu (links + toggle) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;                /* space between nav links and toggle */
}
/* Nav Links */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.nav-links li {
  margin: 0 15px;
}
.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.95em;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover {
  color: #0ff;
  text-shadow: 0 0 5px #0ff;   /* glow effect on hover */
}
/* Theme Toggle Button */
#theme-toggle {
  background: none;
  color: #0ff;
  border: 1px solid #0ff;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
#theme-toggle:hover {
  background: #0ff;
  color: #000;
  box-shadow: 0 0 10px #0ff;
}

/* Sections */
.section {
  padding: 80px 0;  /* space above and below each section */
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #0ff;
}
h3 {
  font-size: 1.4em;
  color: #e0e0e0;
  margin: 1em 0 0.5em;
}
.intro {
  font-size: 1.1em;
}

/* Projects */
.project-item {
  background: #111;
  border-left: 4px solid #0ff;   /* neon accent stripe */
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

/* Contact Form */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}
label {
  font-size: 0.9em;
  margin-bottom: 5px;
}
input, textarea {
  padding: 8px;
  font: inherit;                 /* inherit font (Roboto) for readability */
  background: #222;
  color: #e0e0e0;
  border: 1px solid #333;
  border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #0ff;
  box-shadow: 0 0 5px #0ff;
}
/* Submit Button */
button[type=submit] {
  background: #0ff;
  color: #000;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
button[type=submit]:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0,255,255,0.5);
}

/* Social Links */
.social-links {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: flex;
  justify-content: center;
}
.social-links li {
  margin: 0 15px;
}
.social-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s, text-shadow 0.3s;
}
.social-links i {
  margin-right: 5px;
}
.social-links a:hover {
  color: #0ff;
  text-shadow: 0 0 5px #0ff;
}

/* Light Mode Styles (when .light-mode is added to body) */
body.light-mode {
  background: #fdfdfd;
  color: #222;
}
body.light-mode nav {
  background: rgba(255, 255, 255, 0.8);
}
body.light-mode .nav-links a {
  color: #222;
}
body.light-mode .nav-links a:hover {
  color: #0ff;
  text-shadow: none;
}
body.light-mode h3 {
  color: #222;
}
body.light-mode .social-links a {
  color: #222;
}
body.light-mode .social-links a:hover {
  color: #0ff;
}
body.light-mode #theme-toggle {
  color: #000;
  border-color: #000;
}
body.light-mode #theme-toggle:hover {
  background: #000;
  color: #fff;
  box-shadow: none;
}
body.light-mode input, 
body.light-mode textarea {
  background: #f0f0f0;
  color: #000;
  border: 1px solid #bbb;
}
body.light-mode input:focus, 
body.light-mode textarea:focus {
  border-color: #0ff;
  box-shadow: 0 0 5px #0ff;
}

/* Responsive Design: make nav and text adapt on smaller screens */
@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
  }
  .nav-menu {
    flex-direction: column;
    align-items: center;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
  .nav-links li {
    margin: 10px 0;
  }
  /* Adjust theme toggle position on mobile */
  #theme-toggle {
    margin-top: 10px;
  }
  /* Slightly reduce heading size on smaller screens for better fit */
  h2 {
    font-size: 1.5em;
  }
}
