@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: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* HERO GRID: intro + image share same gutters */
.hero-grid {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
  max-width: 900px;   
  margin: 2rem auto;  /* center the whole block */
}

.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;   /* centers it and keeps vertical spacing */
  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;
}

.proj-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.proj-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.proj-item img {
  width: 80px;
  height: auto;
}

.proj-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.proj-content p {
  margin: 0;
  line-height: 1.4;
  color: #333;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  /* stack header */
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    width: 100%;
    margin-top: 0.5rem;
  }
  nav a {
    display: block;
    margin: 0.5rem 0;
  }

  /* stack hero */
  .hero-grid {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-img img {
    width: 100%;
    height: auto;
  }

  /* tech icons vertical */
  .tech {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* footer columns -> stack */
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* tighten gutters */
  main {
    padding: 0 0.5rem;
  }
  footer {
    padding: 0 0.5rem 2rem;
  }
}
/* 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;      }
}
