.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(12px);
  transition: transform var(--transition), background var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 60% 20%, rgba(139, 92, 246, 0.18), transparent 45%),
              radial-gradient(circle at 40% 80%, rgba(99, 102, 241, 0.12), transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  min-height: 1.6em;
  margin-bottom: 24px;
}

.hero-role .highlight {
  color: var(--accent);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  display: block;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-portrait {
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.6);
}

.portrait-glow {
  position: absolute;
  inset: -8px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--accent), transparent);
  opacity: 0.45;
  filter: blur(20px);
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from { opacity: 0.35; transform: scale(1); }
  to { opacity: 0.6; transform: scale(1.05); }
}

/* Project card */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-media {
  position: relative;
  height: 200px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.project-body {
  padding: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.project-title a {
  color: var(--text);
  transition: color var(--transition);
}

.project-title a:hover {
  color: var(--accent);
}

.project-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.project-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Filters & search */
.explorer-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: border var(--transition), box-shadow var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
  width: 100%;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}

.projects-count {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Featured */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

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

.stat-card {
  padding: 28px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.about-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text);
}

.about-body h3:first-child {
  margin-top: 0;
}

.about-body p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-body ul {
  list-style: none;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-body ul li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.about-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.skill-card {
  padding: 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  transition: border var(--transition);
}

.skill-card:hover {
  border-color: var(--border-hover);
}

.skill-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.skill-category {
  margin-bottom: 40px;
}

.skill-category h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 64px;
  width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
  padding-right: 40px;
  text-align: right;
  margin-left: auto;
  max-width: 60%;
}

.timeline-item:nth-child(even) .timeline-content {
  padding-left: 40px;
  text-align: left;
  max-width: 60%;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mentor note */
.mentor-note {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.note-card {
  padding: 48px 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(139, 92, 246, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.note-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.note-quote {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
  padding-left: 24px;
}

.note-quote::before {
  content: "\201C";
  font-size: 3rem;
  color: var(--accent);
  position: absolute;
  left: -8px;
  top: -18px;
  line-height: 1;
}

.note-author {
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.note-author-title {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
}

.status-indev { color: var(--accent); border-color: var(--accent); background: rgba(139, 92, 246, 0.1); }
.status-experiment { color: #a78bfa; border-color: #a78bfa; background: rgba(167, 139, 250, 0.1); }
.status-project { color: #34d399; border-color: #34d399; background: rgba(52, 211, 153, 0.1); }
.status-research { color: #fbbf24; border-color: #fbbf24; background: rgba(251, 191, 36, 0.1); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.contact-body p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.contact-method {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-method .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-method div h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-method div p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}

.contact-card {
  padding: 36px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  transition: color var(--transition);
}

.email-link:hover {
  color: var(--accent-hover);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  padding: 24px;
  opacity: 0;
  transition: opacity 250ms ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 250ms ease;
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-body {
  padding: 32px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.meta-item {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-item strong {
  color: var(--text);
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.modal-section ul {
  list-style: none;
  color: var(--text-muted);
  line-height: 1.8;
}

.modal-section ul li {
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}

.modal-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.screenshot-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-state h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    max-width: 100%;
    padding-left: 70px;
    padding-right: 16px;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-content {
    padding-left: 70px;
    padding-right: 16px;
  }

  .timeline::before {
    left: 26px;
  }

  .timeline-marker {
    left: 26px;
  }

  .nav-menu {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 250ms ease;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .modal-body {
    padding: 20px;
  }
}
