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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #050816;
  color: white;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.bg-grid {
  position: fixed;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

/* NAVBAR */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.4);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  color: #8b5cf6;
}

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

.nav-links a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

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

.menu-btn {
  display: none;
  font-size: 30px;
  cursor: pointer;
}

/* HERO */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.tag {
  color: #8b5cf6;
  margin-bottom: 15px;
}

.hero h2 {
  font-size: 70px;
  line-height: 1.1;
}

.hero h2 span {
  color: #8b5cf6;
}

.hero-description {
  margin: 25px 0;
  color: #cfcfcf;
  line-height: 1.7;
}

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

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

.primary {
  background: #8b5cf6;
  color: white;
}

.secondary {
  border: 1px solid #8b5cf6;
  color: white;
}

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

/* HERO CARD */

.hero-card {
  position: relative;
  padding: 60px;
  border-radius: 25px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: #8b5cf6;
  filter: blur(120px);
  top: -100px;
  right: -100px;
}

/* SECTIONS */

.about,
.projects,
.contact {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title p {
  color: #8b5cf6;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 42px;
}

/* ABOUT */

.about-box,
.contact-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.skills {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.skills span,
.project-tags span {
  background: rgba(139,92,246,0.2);
  padding: 10px 18px;
  border-radius: 999px;
}

/* PROJECTS */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 30px;
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: #8b5cf6;
}

.project-content h3 {
  margin-bottom: 15px;
}

.project-content p {
  color: #cfcfcf;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.project-content a {
  color: #8b5cf6;
  text-decoration: none;
}

/* CONTACT */

.contact-box p {
  margin-bottom: 25px;
}

/* FOOTER */

footer {
  padding: 40px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* MOBILE */

@media (max-width: 900px) {

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 80px;
  }

  .hero h2 {
    font-size: 45px;
  }

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

  .nav-links {
    position: absolute;
    top: 80px;
    right: -100%;
    flex-direction: column;
    background: #111827;
    width: 220px;
    padding: 30px;
    transition: 0.3s;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-btn {
    display: block;
  }
}
