/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* ================= BASE ================= */
body {
  background: #f9fafb;
  color: #222;
  line-height: 1.7;
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}

a {
  color: #4a6cf7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ================= HERO ================= */
.hero {
  margin-bottom: 70px;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
}

/* Profile Image */
.profile-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* ================= SECTIONS ================= */
.section {
  margin-bottom: 50px;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #111;
}

.section p {
  color: #555;
  max-width: 700px;
}

/* ================= SKILLS ================= */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span {
  background: #eef2f7;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
}

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

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  color: #111;
}

.project-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

.project-card span {
  font-size: 0.8rem;
  color: #4a6cf7;
  font-weight: 500;
}

/* CTA */
.view-cta {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a6cf7;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}

.project-card:hover .view-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ================= EDUCATION ================= */
.education h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #111;
}

.education p {
  color: #555;
  max-width: 700px;
  margin-bottom: 4px;
}

.education span {
  font-size: 0.9rem;
  color: #777;
}

/* ================= SOCIAL ================= */
.social-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  background: #eef2f7;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #0a66c2;
  text-decoration: none;
}

.social-link:hover {
  background: #dbe7f5;
}

/* ================= ANIMATIONS ================= */
[data-animate] {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.8s ease;
}

[data-animate].show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= TOGGLE ================= */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #eaeaea;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: 0.3s ease;
}

.theme-toggle:hover {
  background: #d6d6d6;
}

/* ================= DARK MODE ================= */
.dark {
  background: #121212;
  color: #eaeaea;
}

/* Headings */
.dark h1,
.dark .section h2,
.dark .project-card h3,
.dark .education h3 {
  color: #ffffff;
}

/* Text */
.dark p,
.dark .project-card p,
.dark .education p {
  color: #d1d5db;
}

/* Muted */
.dark .education span {
  color: #b0b0b0;
}

/* Cards */
.dark .project-card {
  background: #1e1e1e;
  box-shadow: none;
}

/* Skills */
.dark .skills span {
  background: #2a2a2a;
  color: #eaeaea;
}

/* Tech */
.dark .project-card span {
  color: #9bbcff;
}

/* Links */
.dark a {
  color: #9bbcff;
}

.dark a:hover {
  color: #c7d6ff;
}

/* Toggle */
.dark .theme-toggle {
  background: #2c2c2c;
  color: #ffffff;
}

/* CTA */
.dark .view-cta {
  color: #9bbcff;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  body {
    padding: 25px 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }

  .project-card {
    padding: 18px;
  }

  .view-cta {
    opacity: 1;
    transform: none;
  }
}
