:root {
  --bg: #f9fafb;
  --primary: #6366f1;
  --dark: #0f172a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: #111;
}

/* NAV */
.nav {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav .cta {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--primary);
  color: white;
}

/* HERO */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 3.2rem;
}

.hero p {
  margin-top: 10px;
  opacity: 0.9;
}

.btn {
  margin-top: 28px;
  padding: 12px 32px;
  background: white;
  color: #4f46e5;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

/* SECTIONS */
.section {
  padding: 120px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

/* GLASS */
.glass {
  background: rgba(255,255,255,0.6);
  border-radius: 24px;
  backdrop-filter: blur(14px);
}

/* SKILLS */
.grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

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

.card {
  background: white;
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

/* CONTACT */
.dark {
  background: var(--dark);
  color: white;
  border-radius: 30px;
}

.links a {
  color: #93c5fd;
  margin: 0 10px;
  text-decoration: none;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px;
  color: #666;
}

/* ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

.delay { transition-delay: 0.2s; }
.delay2 { transition-delay: 0.4s; }

/* MOBILE */
@media (max-width: 768px) {
  .nav nav {
    display: none;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
}
