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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 75% 20%, rgba(0, 255, 170, 0.16), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(0, 180, 120, 0.10), transparent 35%),
    #020f0d;
  color: #ffffff;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1180px;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 25, 21, 0.72);
  border: 1px solid rgba(0, 255, 170, 0.15);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  z-index: 1000;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #00ffae;
}

.nav-links a {
  color: #d8fff3;
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
  transition: 0.3s;
}

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

/* Hero */
.hero {
  min-height: 100vh;
  padding: 150px 8% 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 650px;
}

.tag {
  color: #00ffae;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-text {
  max-width: 560px;
  color: #c7d8d4;
  font-size: 18px;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.primary {
  background: #00ffae;
  color: #02110d;
}

.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 255, 174, 0.25);
}

.secondary {
  border: 1px solid rgba(0, 255, 174, 0.35);
  color: #ffffff;
}

.secondary:hover {
  background: rgba(0, 255, 174, 0.10);
  transform: translateY(-4px);
}

/* Hero image */
.hero-image img {
  width: 330px;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(0, 255, 174, 0.22);
  box-shadow: 0 25px 90px rgba(0, 255, 170, 0.18);
}

/* Sections */
.section {
  width: 84%;
  max-width: 1180px;
  margin: 80px auto;
}

.section h2 {
  font-size: 38px;
  margin-bottom: 24px;
}

.card {
  padding: 38px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(0, 255, 174, 0.13);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.card p {
  color: #c7d8d4;
  font-size: 17px;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  padding: 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(0, 255, 174, 0.13);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 70px rgba(0, 255, 174, 0.12);
}

.project-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.project-card p {
  color: #c7d8d4;
  margin-bottom: 18px;
}

.project-card span,
.skills span {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 8px 12px;
  background: rgba(0, 255, 174, 0.10);
  color: #9effdd;
  border: 1px solid rgba(0, 255, 174, 0.16);
  border-radius: 999px;
  font-size: 13px;
}

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

/* Contact */
.contact {
  text-align: center;
}

.contact p {
  color: #c7d8d4;
  margin-bottom: 26px;
}

.contact .hero-buttons {
  justify-content: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 35px 20px;
  color: #8da39d;
}

/* Animation */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .nav-links {
    display: none;
  }

  .hero-image img {
    width: 280px;
    height: 360px;
  }
}