* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #172033;
  background: #f8fafc;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 7%;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
}

.logo span {
  font-weight: 500;
  margin-left: 5px;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  font-size: 0.95rem;
  color: #526070;
}

.nav-links a:hover {
  color: #172033;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  min-height: 86vh;
  display: grid;
  place-items: center;
  padding: 80px 7%;
  background: linear-gradient(135deg, #eef2ff, #f8fafc 55%, #ecfeff);
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin-bottom: 24px;
}

.hero-text {
  max-width: 700px;
  margin: auto;
  color: #5d6878;
  font-size: 1.1rem;
}

.hero-buttons {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 13px 21px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid #172033;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: #172033;
  color: white;
}

.secondary {
  background: transparent;
}

.section {
  padding: 100px 7%;
  max-width: 1250px;
  margin: auto;
}

.alt {
  max-width: none;
  background: #eef2f7;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 45px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.section-heading > p:last-child,
.section-heading + p {
  color: #647084;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-grid p {
  color: #5d6878;
  margin-bottom: 18px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span,
.tag {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: white;
  font-size: 0.85rem;
}

.cards,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card,
.project-card {
  background: white;
  border: 1px solid #e1e6ee;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.09);
}

.card {
  padding: 30px;
}

.icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

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

.card p,
.project-card p {
  color: #667085;
}

.project-image {
  min-height: 210px;
  display: grid;
  place-items: center;
  font-size: 4rem;
  background: #edf1f6;
}

.project-content {
  padding: 25px;
}

.tag {
  margin-bottom: 14px;
  font-size: 0.75rem;
}

.project-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 800;
}

.contact-box {
  max-width: 1100px;
  margin: auto;
  padding: 45px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: white;
  border: 1px solid #e1e6ee;
  border-radius: 24px;
}

.contact-details p {
  margin-bottom: 14px;
}

.small-note {
  color: #7a8493;
  font-size: 0.85rem;
}

footer {
  padding: 30px 7%;
  text-align: center;
  color: #697586;
  background: #172033;
}

footer p {
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 5%;
    right: 5%;
    flex-direction: column;
    padding: 20px;
    background: white;
    border: 1px solid #e1e6ee;
    border-radius: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .cards,
  .projects-grid,
  .about-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 75px 6%;
  }

  .contact-box {
    padding: 30px;
  }
}
