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

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at 20% 30%, #00f0ff15, transparent 40%),
              radial-gradient(circle at 80% 70%, #00f0ff15, transparent 40%),
              #020617;
  color: white;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 60px;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
}

/* HERO */
.hero {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 90vh;
  gap: 40px;
}

.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.4;
}

#typing {
  margin: 20px 0;
  opacity: 0.8;
}

.hero-img img {
  width: 260px;
  border-radius: 50%;
}

/* BUTTONS */
.btn {
  background: cyan;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  color: black;
  margin-right: 10px;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px cyan;
}

.btn-outline {
  border: 1px solid cyan;
  padding: 10px 20px;
  border-radius: 20px;
  color: cyan;
  text-decoration: none;
}

/* SECTION */
section {
  padding: 100px 40px;
  text-align: center;
}

/* PROJECTS */
.projects-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.card {
  background: #1e293b;
  padding: 20px;
  width: 300px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.4s;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,255,255,0.2);
}

/* SKILLS */
.skills-container span {
  display: inline-block;
  margin: 10px;
  padding: 10px 18px;
  background: #334155;
  border-radius: 20px;
}

/* ABOUT */
.about-text {
  max-width: 700px;
  margin: 15px auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* CONTACT */
.contact-card {
  max-width: 400px;
  margin: auto;
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  margin: 0 10px;
  color: cyan;
  text-decoration: none;
}

/* FORM */
input, textarea {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border-radius: 6px;
  border: none;
}

button {
  padding: 12px;
  background: cyan;
  border: none;
  width: 100%;
  cursor: pointer;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s;
}

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

/* MOBILE FIX (CRITICAL) */
@media(max-width: 768px) {

  nav {
    padding: 15px 20px;
  }

  .hero {
    flex-direction: column;
    height: auto;
    text-align: center;
    padding-top: 40px;
  }

  .hero-img img {
    width: 180px;
    margin-top: 20px;
  }

  .projects-container {
    flex-direction: column;
    align-items: center;
  }

  section {
    padding: 60px 20px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

}
