* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
}

/* BODY */
body {
  background-color: #f6f4ef;
  color: #111;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 100px;
}

.logo {
  font-weight: 600;
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-size: 1rem;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Theme button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 16px;
}

.theme-toggle img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.theme-toggle:hover img {
  transform: scale(1.2);
}

/* DARK MODE */
body.dark {
  background-color: #111;
  color: #f6f4ef;
}

body.dark .navbar a,
body.dark .logo {
  color: #f6f4ef;
}

body.dark .project-card {
  border-color: #f6f4ef;
}

/* HERO */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 104px;
}

.hero-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 120px;
}

.hero-text p {
  max-width: 500px;
  line-height: 1.6;
}

.hero-media {
  flex-shrink: 0;
}

.profile-pic {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
}

/* SECTIONS */
section {
  padding: 80px 64px;
}

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

.about {
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-size: 1.05rem;
  opacity: 0.95;
}

/* PROJECTS */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-left: 100px;
  padding-right: 100px;
  line-height: 1.6;
}

.projects h2 {
  grid-column: 1 / -1;
}

.project-card {
  border: 2px solid black;
  border-radius: 16px;
  padding: 20px;
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.project-card h3 {
  margin-bottom: 12px;
}

.project-card p {
  font-size: 1rem;
  margin-bottom: 8px;
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: black;
  font-weight: 500;
}

.project-card a:hover {
  text-decoration: underline;
}

/* CONTACT */
.contact {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.contact-inner {
  text-align: center;
}

.contact-icons {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Circle button */
.icon-btn {
  width: 56px;
  height: 56px;
  border: 2px solid #111;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

/* Icon size */
.icon-btn img {
  width: 24px;
  height: 24px;
}

/* Hover = grow + invert */
.icon-btn:hover {
  transform: scale(1.15);
  background: #111;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.icon-btn:hover img {
  filter: invert(1);
}

/* Dark Mode For Icons */
body.dark .icon-btn {
  border-color: #f6f4ef;
}

body.dark .icon-btn img {
  filter: invert(1);
}


body.dark .icon-btn:hover img {
  filter: invert(0);
}

body.dark .icon-btn:hover {
  background: #f6f4ef;
}

/* Click effect */
.icon-btn:active {
  transform: scale(1.05);
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    padding: 20px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 20px;
  }

  .hero {
    padding: 40px 20px;
  }

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

  .hero-text {
    text-align: center;
  }

  .profile-pic {
    width: 200px;
    height: 200px;
  }

  .hero-inner {
  gap: 40px;
}
}
