:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #0f172a;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
  --transition-fast: 180ms ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 55%);
}

.section h2 {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem);
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 40rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.75), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #60a5fa, #1d4ed8);
  color: white;
  font-size: 0.85rem;
}

.logo-text {
  font-size: 0.95rem;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  position: relative;
  padding-bottom: 0.25rem;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #6366f1, #ec4899);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

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

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  width: 34px;
  height: 30px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.8);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-open .nav-links {
  max-height: 260px;
  opacity: 1;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    right: 1.25rem;
    top: 3.25rem;
    background: #020617;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.25);
    flex-direction: column;
    padding: 0.7rem 0.85rem;
    gap: 0.4rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 180ms ease-out, opacity 180ms ease-out;
  }
}

/* Hero */

.hero {
  padding: 5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #60a5fa;
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 30rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.2rem;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero card */

.hero-card {
  background: radial-gradient(circle at top, #1d283a, #020617);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #bfdbfe;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.hero-list span {
  color: #22c55e;
  margin-right: 0.35rem;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.8rem;
  color: #bbf7d0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}

@media (max-width: 850px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Buttons */

.btn {
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  box-shadow: 0 15px 32px rgba(37, 99, 235, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.5);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn.ghost:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.9);
}

.btn.full-width {
  width: 100%;
}

.btn.small {
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
}

/* Cards & grids */

.about-cards {
  display: grid;
  gap: 1rem;
}

.info-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.1rem 1.1rem 1.05rem;
  font-size: 0.9rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background 200ms ease-out;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
}

.info-card ul {
  padding-left: 1.05rem;
  margin: 0.2rem 0 0;
  color: var(--muted);
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.skill-group {
  background: #020617;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1rem 1rem 0.9rem;
  font-size: 0.9rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background 200ms ease-out;
}

.skill-group h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.skill-icons {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem 0.55rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  min-width: 70px;
  transition: transform 180ms ease-out, box-shadow 200ms ease-out, border-color 180ms ease-out, background 180ms ease-out;
}

.skill-icon i {
  font-size: 1.65rem;
}

.skill-icon span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.skill-icon:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.85);
  border-color: rgba(129, 140, 248, 0.9);
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.18), #020617);
}

@media (max-width: 960px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #020617;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.2rem 1.25rem 1.1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.8);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 200ms ease-out, box-shadow 220ms ease-out, border-color 200ms ease-out, background 200ms ease-out;
}

.project-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.75), #020617);
  aspect-ratio: 16 / 9;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  transition: transform 260ms ease-out, filter 260ms ease-out;
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.08) brightness(1.02);
}

.project-thumb--placeholder {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.4), #020617);
}

.project-summary {
  margin: 0.4rem 0 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
  border-color: rgba(129, 140, 248, 0.9);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.15), #020617);
}

.info-card:hover,
.skill-group:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.9);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), #020617);
}

.project-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.project-card h3 {
  font-size: 1rem;
  margin: 0;
}

.project-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.project-tag--planned {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.5);
  color: #facc15;
}

.project-tag--design {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.5);
  color: #f9a8d4;
}

.project-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.project-tech {
  margin: 0;
  color: var(--muted);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
}

.project-links a {
  color: #93c5fd;
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

.project-note {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Timeline */

.timeline {
  border-left: 1px solid rgba(148, 163, 184, 0.5);
  margin-top: 1.75rem;
  padding-left: 1.5rem;
  display: grid;
  gap: 1.75rem;
}

.timeline-item {
  position: relative;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 3px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.25);
}

.timeline-content h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.timeline-meta {
  margin: 0 0 0.35rem;
  color: #93c5fd;
  font-size: 0.83rem;
}

/* Contact */

.contact-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  font-size: 0.9rem;
}

.contact-list li + li {
  margin-top: 0.35rem;
}

.contact-list a {
  color: #93c5fd;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form {
  background: #020617;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.1rem 1.1rem 1.1rem;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.75);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}

.form-row label {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  color: var(--text);
  background: #020617;
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.1rem 0 1.6rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-note {
  opacity: 0.85;
}

/* Global links */

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.9);
  outline-offset: 2px;
}

/* Scroll reveal */

[data-reveal="card"] {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transform-origin: center;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}
