@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  color: #222;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}
header .logo { font-weight: bold; }
nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: inherit;
}

/* MAIN */
main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* HERO GRID */
.hero-grid {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
}
.hero-grid > * { grid-column: 2; }

/* INTRO */
.intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.6em 1.2em;
  text-decoration: none;
  border-radius: 4px;
}

/* HERO IMAGE */
.hero-img { flex: 1; }
.hero-img img {
  width: 80%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
}

/* TECH ICONS */
.tech-heading {
  font-size: 1.5rem;
  text-align: center;
  margin: 2rem 0 1rem;
  text-transform: capitalize;
}
.tech {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 2rem;
}
.tech-item { text-align: center; }
.tech-item img { width: 80px; height: auto; }
.tech-item span {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

/* SEPARATOR */
.separator {
  width: 80%;
  margin: 2rem auto;
  border: none;
  border-top: 1px solid #ccc;
}

/* FOOTER */
footer { padding: 0 1rem 2rem; }
.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
footer .contact-info { text-align: left; }
footer .social a {
  display: inline-flex;
  align-items: center;
  margin: 0 0.5rem;
  text-decoration: none;
}
footer .social img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
a { color: #000; }

/* EDUCATION LIST */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.edu-item {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.edu-item img { width: 80px; height: auto; }
.edu-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.edu-content p {
  margin: 0;
  line-height: 1.4;
  color: #555;
}

.subtitle {
  max-width: 900px;
  margin: 0.5rem auto 2rem;
  padding: 0 1rem;
  color: #555;
}

/* PROJECT GRID - 3 columns */
.proj-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.proj-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease;
}

.proj-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.proj-item img {
  width: 52px;
  height: auto;
}

.proj-content h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.proj-content p {
  margin: 0;
  line-height: 1.5;
  color: #444;
  font-size: 0.875rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav { width: 100%; margin-top: 0.5rem; }
  nav a { display: block; margin: 0.5rem 0; }

  .hero-grid { flex-direction: column; gap: 1rem; }
  .hero-img img { width: 100%; height: auto; }
  .tech { flex-direction: column; gap: 1.5rem; }
  .footer-content { flex-direction: column; align-items: flex-start; gap: 1.5rem; }

  .proj-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  main { padding: 0 0.5rem; }
  footer { padding: 0 0.5rem 2rem; }
  .proj-list { grid-template-columns: 1fr; }
}

/* TYPING EFFECT */
#typed {
  white-space: nowrap;
  overflow: hidden;
  border-right: .12em solid #000;
  animation: blink-caret .75s step-end infinite;
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50%      { border-color: #000; }
}
