:root {
  --bg: #080b13;
  --bg-soft: #111827;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.13);
  --text: #f8fafc;
  --muted: #a7b0c0;
  --line: rgba(255, 255, 255, 0.14);
  --primary: #7c3aed;
  --primary-2: #06b6d4;
  --accent: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

html[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --card: rgba(255, 255, 255, 0.85);
  --card-strong: rgba(255, 255, 255, 0.95);
  --text: #111827;
  --muted: #5b6475;
  --line: rgba(15, 23, 42, 0.12);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.25), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(6, 182, 212, 0.22), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(249, 115, 22, 0.12), transparent 35%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: -1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 11, 19, 0.66);
  border-bottom: 1px solid var(--line);
}

html[data-theme="light"] .site-header {
  background: rgba(246, 247, 251, 0.72);
}

.navbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.theme-toggle,
.mobile-menu-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.1rem;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}

/* General */
.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #9ddcff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-2), transparent);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.about-panel h2,
.contact-card h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

.section-heading p,
.about-panel p,
.contact-card p {
  color: var(--muted);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-top: 72px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
  max-width: 860px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(135deg, #ffffff, #91e7ff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .hero h1 span {
  background: linear-gradient(135deg, #111827, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  max-width: 680px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 20px 46px rgba(124, 58, 237, 0.35);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--card);
}

.hero-stats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  backdrop-filter: blur(18px);
}

.hero-stats strong {
  display: block;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.profile-card {
  width: min(390px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(180deg, var(--card-strong), var(--card)),
    radial-gradient(circle at top, rgba(124,58,237,0.35), transparent 40%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  text-align: center;
}

.avatar-wrap {
  width: 132px;
  height: 132px;
  padding: 12px;
  margin: 0 auto 24px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(124,58,237,0.45), rgba(6,182,212,0.35));
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.profile-card h2 {
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.profile-card p {
  color: var(--muted);
  margin: 8px 0 22px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.profile-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  font-size: 0.82rem;
}

.floating-card {
  position: absolute;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-strong);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}

.floating-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.card-one {
  top: 70px;
  left: 10px;
}

.card-two {
  right: 0;
  bottom: 80px;
  animation-delay: 1.2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

/* Posts */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 56px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, background 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  background: var(--card-strong);
}

.post-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(124,58,237,0.24), rgba(6,182,212,0.12)),
    var(--card);
}

.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #9ddcff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.post-card h3 {
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}

.post-card p {
  color: var(--muted);
  margin-bottom: 28px;
}

.read-link {
  color: #9ddcff;
  font-weight: 800;
}

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

.about-panel,
.timeline,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.about-panel {
  padding: 36px;
}

.timeline {
  padding: 26px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 900;
}

.timeline-item h3 {
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.timeline-item p {
  color: var(--muted);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  backdrop-filter: blur(18px);
}

.project-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.22));
  color: #9ddcff;
  font-size: 1.4rem;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

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

/* Contact */
.contact-section {
  padding-bottom: 56px;
}

.contact-card {
  padding: 42px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(124,58,237,0.22), rgba(6,182,212,0.14)),
    var(--card);
}

.contact-card p {
  max-width: 680px;
  margin: 0 auto 24px;
}

.subscribe-form {
  width: min(560px, 100%);
  display: flex;
  gap: 10px;
  margin: 28px auto 22px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.subscribe-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 16px;
  font: inherit;
}

.subscribe-form input::placeholder {
  color: var(--muted);
}

.subscribe-form button {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 900;
  cursor: pointer;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

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

/* Footer */
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 920px) {
  .hero,
  .about-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    min-height: 460px;
  }

  .post-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .post-card.featured {
    grid-column: auto;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--bg-soft);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links button {
    margin: 4px 0;
  }

  .nav-links a {
    padding: 12px;
    border-radius: 14px;
  }

  .nav-links a:hover {
    background: var(--card);
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 28px, 1180px);
    padding: 66px 0;
  }

  .navbar {
    width: min(100% - 28px, 1180px);
  }

  .hero h1 {
    font-size: clamp(2.8rem, 17vw, 4.8rem);
  }

  .hero-actions,
  .hero-stats {
    flex-direction: column;
  }

  .btn,
  .hero-stats div {
    width: 100%;
  }

  .floating-card {
    position: static;
    margin-top: 14px;
    width: 100%;
  }

  .hero-card {
    display: block;
    min-height: auto;
  }

  .profile-card {
    margin-bottom: 14px;
  }

  .subscribe-form {
    flex-direction: column;
    border-radius: 24px;
  }

  .subscribe-form input {
    min-height: 46px;
  }
}
