/* BASE */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fafafa;
  color: #222;
  transition: 0.3s;
}

/* DARK MODE (Tea Theme) */
body.dark {
  background: #1f1a17;
  color: #f5e9e2;
}

body.dark .navbar {
  background: #2b2320;
}

body.dark .card,
body.dark .skill-card {
  background: #2b2320;
  color: #f5e9e2;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background: white;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar h1 {
  color: #b57edc;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: gray;
}

nav button {
  margin-left: 10px;
  cursor: pointer;
}

/* HERO */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.profile {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #b57edc;
}

.bio {
  max-width: 500px;
  margin: auto;
  color: gray;
}

/* SECTIONS */
.section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

h3 {
  color: #b57edc;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.skill-card {
  padding: 15px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: white;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card h4 {
  color: #b57edc;
  margin-bottom: 5px;
}

.duration {
  font-size: 12px;
  color: gray;
}

.tags {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* DARK MODE SUPPORT */
body.dark .project-card {
  background: #2b2320;
  color: #f5e9e2;
}

body.dark .tags {
  color: #cbb8b0;
}

/* EDUCATION / CARD */
.card {
  background: white;
  padding: 15px;
  margin-top: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
}

/* ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade 1s forwards;
}

@keyframes fade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
