/* ==== RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: #f1f1f1;
  transition: background-color 0.3s, color 0.3s;
}

body.light {
  background-color: #f9f9f9;
  color: #121212;
}

/* ==== HEADER & NAVBAR ==== */
header {
  background-color: #1f1f1f;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
}

/* Nav links desktop */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a,
.nav-links li button {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.nav-links li a:hover {
  color: #00bcd4;
}

/* ==== SECTION LAYOUT ==== */
.section {
  padding: 4rem 2rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

h1 span {
  color: #00bcd4;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ==== PROJECTS & SKILLS ==== */
.projects-grid, .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-card, .skills-grid span {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #333;
}

.project-card:hover {
  transform: translateY(-4px);
  transition: transform 0.3s;
}

.skills-grid span {
  text-align: center;
  font-weight: 500;
}

/* ==== CONTACT ==== */
.btn {
  display: inline-block;
  margin-top: 1rem;
  background-color: #00bcd4;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  text-decoration: none;
}

.btn:hover {
  background-color: #0097a7;
}

/* ==== FOOTER ==== */
footer {
  background-color: #1f1f1f;
  color: #aaa;
  text-align: center;
  padding: 1rem;
}

/* ==== LIGHT THEME OVERRIDES ==== */
body.light header,
body.light footer {
  background-color: #e0e0e0;
}

body.light .logo,
body.light .nav-links a,
body.light .nav-links button {
  color: #121212;
}

body.light .project-card,
body.light .skills-grid span {
  background-color: #ffffff;
  color: #121212;
  border: 1px solid #ccc;
}

/* ==== MEDIA QUERIES ==== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #1f1f1f;
    display: none;
    padding: 1rem 0;
  }

  .nav-links li {
    padding: 0.75rem 1.5rem;
    text-align: center;
  }

  .nav-toggle:checked + .hamburger + .nav-links {
    display: flex;
  }
}
.home-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.profile-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #00bcd4;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.4);
}
