* { margin: 0; padding: 0; box-sizing: border-box; font-family: system-ui, sans-serif; }
html { scroll-behavior: smooth; }
body { background: #0f172a; color: #e5e7eb; line-height: 1.6; }

/* NAVBAR */
.navbar {
  position: sticky; top: 0;
  background: #020617; border-bottom: 1px solid #1e293b;
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 40px; z-index: 100;
}
.logo h1 { font-size: 1.3rem; }
.logo span { font-size: 0.85rem; color: #94a3b8; }
.nav-links a {
  margin: 0 12px; text-decoration: none; color: #e5e7eb; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: #22d3ee; font-weight: bold; border-bottom: 2px solid #22d3ee; }
.resume-btn { border: 1px solid #38bdf8; padding: 6px 14px; border-radius: 6px; color: #38bdf8; text-decoration: none; transition: all 0.3s; }
.resume-btn:hover { background: #38bdf8; color: #020617; }
.menu-toggle { display: none; font-size: 22px; cursor: pointer; margin-left: 15px; }

/* HERO */
.hero { text-align: center; padding: 100px 20px; background: linear-gradient(135deg, #020617 0%, #0f172a 100%); border-radius: 15px; margin: 20px; }
.hero h2 { font-size: 2.3rem; margin-bottom: 10px; }
.hero p { max-width: 600px; margin: auto; color: #94a3b8; }
.hero-links a {
  display: inline-block; margin: 15px 10px; padding: 8px 18px; border: 1px solid #38bdf8; border-radius: 8px; transition: all 0.3s;
}
.hero-links a:hover { background: #38bdf8; color: #020617; }

/* SECTIONS */
section { max-width: 900px; margin: auto; padding: 50px 20px; }
section h2 { margin-bottom: 20px; border-bottom: 2px solid #1e293b; }

/* CARDS */
.card {
  background: #020617; padding: 20px; border-radius: 10px; margin-bottom: 20px;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.6s, transform 0.6s;
  opacity: 0; transform: translateY(30px);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.card.show { opacity: 1; transform: translateY(0); }
.card a { color: #22d3ee; text-decoration: none; }
.card a:hover { text-decoration: underline; }
.tech { font-size: 0.9rem; color: #94a3b8; margin: 8px 0; }

/* SKILLS */
.skills-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.skills-grid span {
  background: #020617; padding: 8px 14px; border-radius: 20px; font-size: 0.9rem; transition: all 0.3s;
}
.skills-grid span:hover { background: #38bdf8; color: #020617; transform: translateY(-3px); }

/* FOOTER */
footer { text-align: center; padding: 20px; color: #64748b; }

/* MOBILE */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 70px; right: 40px; background: #020617; flex-direction: column; padding: 15px; border-radius: 8px; }
  .nav-links a { margin: 10px 0; }
  .nav-links.show { display: flex; }
  .menu-toggle { display: block; }
}

/* BACK TO TOP */
#backToTop {
  position: fixed; bottom: 25px; right: 25px;
  padding: 10px 15px; background: #38bdf8; color: #020617;
  border: none; border-radius: 50%; cursor: pointer; display: none; font-size: 18px; transition: all 0.3s;
}
#backToTop:hover { background: #22d3ee; }
