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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #0b0f19;
  color: #e5e7eb;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 8%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
}

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

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 8% 60px;
  background: #0b0f19;
}

/* ANIMATED BACKGROUND */
.animated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.animated-bg span {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(18px);
  animation: moveBlob 10s infinite alternate ease-in-out;
}

.animated-bg span:nth-child(1) { background:#38bdf8; top:10%; left:5%; }
.animated-bg span:nth-child(2) { background:#8b5cf6; top:60%; left:70%; animation-delay:1s; }
.animated-bg span:nth-child(3) { background:#22c55e; top:75%; left:15%; animation-delay:2s; }
.animated-bg span:nth-child(4) { background:#ec4899; top:15%; left:80%; animation-delay:3s; }
.animated-bg span:nth-child(5) { background:#f97316; top:40%; left:40%; animation-delay:4s; }
.animated-bg span:nth-child(6) { background:#38bdf8; top:20%; left:60%; animation-delay:5s; }
.animated-bg span:nth-child(7) { background:#8b5cf6; top:85%; left:50%; animation-delay:6s; }
.animated-bg span:nth-child(8) { background:#22c55e; top:50%; left:20%; animation-delay:7s; }
.animated-bg span:nth-child(9) { background:#ec4899; top:30%; left:30%; animation-delay:8s; }
.animated-bg span:nth-child(10){ background:#f97316; top:70%; left:80%; animation-delay:9s; }

@keyframes moveBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(150px, -120px) scale(1.4);
  }
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.tag {
  color: #38bdf8;
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 1rem;
  max-width: 650px;
}

/* TYPING CURSOR */
.cursor {
  color: #38bdf8;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #38bdf8;
}

.hero-text {
  color: #cbd5e1;
  font-size: 1.15rem;
  max-width: 650px;
  margin-bottom: 32px;
}

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

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s, background 0.2s;
}

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

.primary {
  background: #38bdf8;
  color: #020617;
}

.secondary {
  border: 1px solid #334155;
  color: #e5e7eb;
}

/* SECTIONS */
.section {
  padding: 90px 8%;
}

.section h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.section-subtitle {
  color: #94a3b8;
  margin-bottom: 35px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.skill-card {
  background: #111827;
  border: 1px solid #1f2937;
  padding: 18px;
  border-radius: 16px;
  text-align: center;
  font-weight: bold;
}

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

.project-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: #38bdf8;
}

.project-card img,
.placeholder-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.placeholder-img {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: #38bdf8;
}

.project-info {
  padding: 22px;
}

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

.project-info p {
  color: #cbd5e1;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.project-tags span {
  background: #1e293b;
  color: #93c5fd;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.project-info a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: bold;
}

/* CONTACT */
.contact {
  text-align: center;
  background: #090d16;
}

.contact p {
  color: #cbd5e1;
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-links a {
  color: #020617;
  background: #38bdf8;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 24px;
  color: #94a3b8;
  border-top: 1px solid #1f2937;
}

/* MOBILE */
@media (max-width: 700px) {
  .menu-btn {
    display: block;
  }

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

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

  .hero {
    padding-top: 140px;
  }
}