* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f0f1a;
  color: #fff;
  line-height: 1.6;
}

/* SECTION SPACING */
.section {
  padding: 100px 60px;
  text-align: center;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: #111;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo {
  color: #ff4d4d;
  font-weight: 700;
  font-size: 1.4rem;
}

.navbar a {
  margin-left: 25px;
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.navbar a:hover {
  color: #ff4d4d;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  gap: 60px;
}

.hero-text h1 {
  font-size: 52px;
}

.hero-text span {
  color: #ff4d4d;
}

.hero-text h3 {
  margin: 15px 0;
  color: #aaa;
}

.hero-buttons {
  margin-top: 25px;
}

.btn {
  padding: 12px 28px;
  background: #ff4d4d;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  margin-right: 15px;
  transition: 0.3s;
}

.btn:hover {
  background: #e63e3e;
  box-shadow: 0 0 20px rgba(255,77,77,0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid #ff4d4d;
}

.btn-outline:hover {
  background: #ff4d4d;
}

/* HERO IMAGE */
.hero-img img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(255,77,77,0.4);
}

/* SKILLS */
.skills-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.skill-card {
  background: #1b1b2b;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid #2a2a3a;
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: #ff4d4d;
}

/* PROJECTS */
.project-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: #1b1b2b;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #2a2a3a;
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: #ff4d4d;
  box-shadow: 0 20px 40px rgba(255,77,77,0.2);
}

.project-card img {
  width: 100%;
  border-radius: 12px;
}

.project-card a {
  display: inline-block;
  margin-top: 15px;
  margin-right: 15px;
  color: #ff4d4d;
  text-decoration: none;
}

/* FOOTER */
footer {
  padding: 30px;
  background: #0a0a12;
  color: #777;
  border-top: 1px solid #1b1b2b;
}

/* MOBILE */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 38px;
  }
}

/* CONTACT FORM */
#contact-form {
  max-width: 500px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-form input,
#contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #1b1b2b;
  color: #fff;
}

#contact-form textarea {
  resize: none;
  height: 120px;
}

#form-status {
  margin-top: 15px;
  color: #ff4d4d;
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 900px) {

  .section {
    padding: 80px 25px;
  }

  .navbar {
    padding: 15px 25px;
  }

  .navbar a {
    margin-left: 15px;
    font-size: 14px;
  }

  .hero {
    padding: 40px 25px;
    min-height: auto;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text h3 {
    font-size: 16px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    margin-right: 0;
  }

  .hero-img img {
    width: 220px;
    height: 220px;
  }

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

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

  #contact-form {
    width: 100%;
  }
}