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

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --text: #1e1b4b;
  --text-light: #6b7280;
  --bg: #f8f7ff;
  --white: #ffffff;
  --radius: 12px;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  z-index: 100;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* HERO */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: var(--white);
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 520px;
  margin-bottom: 1.8rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* ABOUT */
.about {
  max-width: 960px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
}

.about-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 8px 30px rgba(79,70,229,0.25);
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* SKILLS */
.skills-section {
  background: var(--white);
  padding: 4rem 1.5rem;
}

.skills-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
}

.skills-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.12);
}

.skill-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.skill-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* PROJECTS */
.projects {
  max-width: 960px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.projects h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

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

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.project-tag {
  display: inline-block;
  background: #ede9fe;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* CONTACT */
.contact {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}

.contact h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.contact p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-img {
    margin: 0 auto;
  }

  .nav-links {
    gap: 1rem;
  }
}
