@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #0f1419;
  --surface: rgba(22,28,34,0.9);
  --border: rgba(255,255,255,0.08);
  --text: #e6edf3;
  --muted: #9ba3af;
  --accent: #3fa9f5;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(63,169,245,0.18), transparent 60%),
    radial-gradient(700px 300px at 85% 0%, rgba(63,169,245,0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3fa9f5, #7dd3fc);
  color: #0f1419;
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: -0.04em;
}

.nav-links a {
  margin-left: 28px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* HERO */
.hero {
  position: relative;
  max-width: 1100px;
  margin: 80px auto 120px;
  padding: 0 24px;
}

.hero-inner {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 520px;
}

.hero-glow {
  position: absolute;
  inset: -40px -20px;
  background: linear-gradient(120deg, rgba(63,169,245,0.08), transparent 60%);
  z-index: -1;
  filter: blur(40px);
}

/* PROJECTS */
.projects {
  max-width: 1200px;
  margin: 0 auto 120px;
  padding: 0 24px;
}

.projects h2 {
  margin-bottom: 32px;
}

.project {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

.project-media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-media:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(63, 169, 245, 0.15);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content p {
  color: var(--muted);
}

.project-content ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.project-content li {
  color: var(--muted);
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}

.project-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tech {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.actions a {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.actions a:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.actions a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ABOUT */
.about {
  max-width: 720px;
  margin: 0 auto 120px;
  padding: 0 24px;
}

.about .lead {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 14px;
}

/* SKILLS */
.skills {
  max-width: 900px;
  margin: 0 auto 140px;
  padding: 0 24px;
}

.skills > h2 {
  letter-spacing: -0.01em;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.skills-grid > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.skills-grid > div:hover {
  transform: translateY(-3px);
  border-color: rgba(63, 169, 245, 0.3);
}

.skills h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.skills ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills li {
  color: var(--muted);
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.skills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* CONTACT */
.contact {
  background: linear-gradient(180deg, rgba(63,169,245,0.08), transparent);
  padding: 90px 24px;
}

.contact h2 {
  margin-bottom: 12px;
}

.contact p {
  max-width: 520px;
  color: var(--muted);
}

.contact-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-link:hover {
  color: #7dd3fc;
  transform: translateX(4px);
}

.contact-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* SCROLL ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

@media (max-width: 900px) {
  .project {
    grid-template-columns: 1fr;
  }
}
