/* =====================
   Reset & Base
===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0f0f13;
  --bg-section: #13131a;
  --surface:    #1a1a24;
  --border:     #2a2a3a;
  --accent:     #1a8cff;
  --accent-dim: rgba(26, 140, 255, 0.15);
  --text:       #e8e8f0;
  --text-muted: #8888a8;
  --radius:     12px;
  --font:       'Inter', system-ui, sans-serif;
  --transition: 0.2s ease;
  --max-w:      1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* =====================
   Nav
===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 15, 19, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* =====================
   Hero
===================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 2rem 4rem;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(26,140,255,0.18) 0%, transparent 70%);
}

.hero-content {
  max-width: var(--max-w);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-text { flex: 1; }

.hero-greeting {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero-bio {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Headshot */
.hero-image { flex-shrink: 0; }

.headshot-wrapper {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: 0 0 0 8px var(--accent-dim), 0 24px 60px rgba(0,0,0,0.5);
  background: var(--surface);
}

.headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.headshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--surface);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  color: var(--text-muted);
  animation: bounce 2s infinite;
  transition: color var(--transition);
}
.scroll-hint:hover { color: var(--accent); }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* =====================
   Buttons
===================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26,140,255,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border);
  color: var(--text);
  transform: translateY(-1px);
}

/* =====================
   Sections
===================== */
.section {
  padding: 6rem 2rem;
}

.section:nth-child(even) { background: var(--bg-section); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* =====================
   About
===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.skills h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* =====================
   Tags
===================== */
.tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(26,140,255,0.25);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
}

.tag-sm {
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
}

/* =====================
   Projects
===================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(26,140,255,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-icon {
  color: var(--accent);
}

.card-links {
  display: flex;
  gap: 0.75rem;
}

.icon-link {
  color: var(--text-muted);
  transition: color var(--transition);
}
.icon-link:hover { color: var(--accent); }

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* =====================
   Contact
===================== */
.contact-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-btn {
  font-size: 1rem;
  padding: 0.9rem 2.5rem;
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all var(--transition);
}

.social-link:hover {
  color: var(--accent);
  border-color: rgba(26,140,255,0.4);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* =====================
   Footer
===================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.75rem 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =====================
   Responsive
===================== */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-bio { max-width: 100%; }

  .hero-cta { justify-content: center; }

  .headshot-wrapper { width: 200px; height: 200px; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .nav-links { gap: 1.5rem; }

  .section { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .social-links { gap: 1rem; }
}
