:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #101529;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2937;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 48%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), #020617);
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.section-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #a855f7, #4f46e5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e5e7eb;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4),
    0 12px 35px rgba(88, 28, 135, 0.7);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

.nav a:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  transform: translateY(-1px);
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
}

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

.hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #818cf8;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 2.3rem;
  margin: 0 0 0.9rem;
}

.hero-subtitle {
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.1s,
    box-shadow 0.2s, border-color 0.2s;
}

.btn.primary {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  color: #eef2ff;
  box-shadow: 0 18px 35px rgba(79, 70, 229, 0.48);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(79, 70, 229, 0.65);
}

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

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.85);
}

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

.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-links a {
  color: #a5b4fc;
  text-decoration: none;
}

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

.hero-card {
  background: radial-gradient(circle at top left, #1e293b, #020617);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.hero-tag {
  display: inline-flex;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.2);
  color: #e5e7eb;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

.hero-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Skills */

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

.skill-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.55);
}

.skill-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.skill-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.skill-card li + li {
  margin-top: 0.35rem;
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.project-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.project-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.3rem;
}

.project-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.project-tag {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  color: #c7d2fe;
  border: 1px solid rgba(79, 70, 229, 0.35);
}

.project-description {
  color: var(--muted);
  margin: 0.3rem 0 0.6rem;
}

.project-details {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

.project-details li + li {
  margin-top: 0.25rem;
}

.project-link {
  display: inline-flex;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #a5b4fc;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

/* Blog */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}

.blog-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.75);
}

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

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.blog-link {
  display: inline-flex;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #a5b4fc;
  text-decoration: none;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.contact-form {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.78);
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: #020617;
  padding: 0.55rem 0.6rem;
  margin-top: 0.25rem;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border 0.18s, box-shadow 0.18s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.6);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(30, 64, 175, 0.4);
  padding: 1.3rem 0 1.5rem;
  margin-top: 2rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98), transparent);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-note {
  font-weight: 500;
  color: #a5b4fc;
}

/* Responsive */

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

  .hero-card {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding-top: 3.5rem;
  }
}
