@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Light Theme */
body.light-theme {
  background: #f9f9f9;
  color: #333;
}

body.light-theme h2 {
  border-bottom: 2px solid #ccc;
}

/* Dark Theme */
body.dark-theme {
  background: #121212;
  color: #eaeaea;
}

body.dark-theme h2 {
  border-bottom: 2px solid #444;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #007acc;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

body.dark-theme .navbar {
  background: #222;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Left, center, right sections */
.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-center {
  flex-grow: 1;
  justify-content: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

body.dark-theme .nav-menu a {
  color: #eaeaea;
}

/* Resume link (left) */
.resume-link {
  background: #ffcc00;
  color: #222;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.resume-link:hover {
  background: #e6b800;
  transform: translateY(-1px);
}

body.dark-theme .resume-link {
  background: #66b2ff;
  color: #fff;
}

body.dark-theme .resume-link:hover {
  background: #3399ff;
}

/* Theme toggle (right) */
#theme-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: #fff;
}

body.dark-theme #theme-toggle {
  border-color: rgba(234,234,234,0.9);
  color: #eaeaea;
}

#theme-toggle:hover {
  opacity: 0.85;
}

/* Layout */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem; /* extra top padding for fixed navbar */
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 600;
}

.tagline {
  font-size: 1.2rem;
  color: inherit;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.skill-category h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.3rem;
}

body.dark-theme .skill-category h3 {
  border-bottom: 2px solid #444;
}

.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-category ul li {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

/* Experience Section */
.resume-block {
  margin-bottom: 2rem;
}

.resume-block h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.resume-block p {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: inherit;
}

.resume-block ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.resume-block ul li {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

body.light-theme .btn {
  background: #007acc;
  color: #fff;
}

body.dark-theme .btn {
  background: #444;
  color: #eaeaea;
}

.btn:hover {
  opacity: 0.9;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 3rem;
  color: inherit;
}

/* Responsive navbar stacking for small screens */
@media (max-width: 780px) {
  .navbar-inner {
    flex-direction: column;
    align-items: center;
    row-gap: 0.6rem;
    padding: 0.6rem 0.75rem;
  }

  .nav-left,
  .nav-center,
  .nav-right {
    justify-content: center;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .resume-link {
    border-radius: 16px;
    padding: 0.45rem 0.9rem;
  }

  #theme-toggle {
    padding: 0.35rem 0.65rem;
  }
}