:root {
  --bg: #050816;
  --bg-alt: #070b1f;
  --card-bg: rgba(15, 23, 42, 0.9);
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.15);
  --accent-strong: rgba(129, 140, 248, 0.35);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(30, 64, 175, 0.4);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.85);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav a {
  position: relative;
  color: var(--text-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #22c55e);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  background: rgba(30, 64, 175, 0.65);
  color: #e5e7eb;
}

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 4vw, 2.9rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--text-soft);
  max-width: 32rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #6366f1, #22c55e);
  box-shadow: 0 12px 25px rgba(99, 102, 241, 0.35);
  color: #f9fafb;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(99, 102, 241, 0.5);
}

.btn.ghost {
  border-color: var(--border-subtle);
  background: rgba(15, 23, 42, 0.7);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(156, 163, 175, 0.9);
}

.btn.full {
  width: 100%;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  background: radial-gradient(circle at top left, #1f2937 0, #020617 65%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0, rgba(129, 140, 248, 0.42), transparent 55%),
    radial-gradient(circle at 90% 0, rgba(52, 211, 153, 0.35), transparent 55%);
  opacity: 0.95;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #6366f1, #0f172a);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.55);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.card-top h2 {
  font-size: 1.1rem;
  margin: 0;
}

.role {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.card-body {
  padding: 0.8rem 0 0.4rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.card-body p {
  margin: 0.1rem 0;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #020617, #020617 18%, #000 100%);
}

.section-title {
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}

.section-desc {
  color: var(--text-soft);
  margin-bottom: 2rem;
  max-width: 30rem;
}

.card-section {
  padding-top: 1rem;
}

.card-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: stretch;
}

.card-profile {
  background: radial-gradient(circle at top, #020617, #020617 60%, #000 100%);
  border-radius: 26px;
  padding: 1.8rem 1.7rem;
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
}

.profile-header {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 1.6rem;
}

.profile-photo-link {
  display: inline-flex;
}

.profile-photo-link:hover .profile-photo-circle {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(79, 70, 229, 0.9);
}

.profile-photo-circle {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #4f46e5, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.profile-header-text {
  flex: 1;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-soft);
}

.profile-name-main {
  margin: 0.6rem 0 0.1rem;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.profile-name-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.profile-meta {
  margin-top: 1.6rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 1.4rem;
  display: grid;
  gap: 1.3rem;
}

.profile-block h3 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.profile-block p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.profile-block span {
  color: #e5e7eb;
}

.card-experience {
  padding: 1.2rem 0 0;
}

.card-quote {
  font-size: 1.1rem;
  font-style: italic;
  margin: 0 0 1.6rem;
}

.card-quote span {
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

.exp-title {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 1rem;
}

.exp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.4);
}

.exp-item {
  position: relative;
  padding-left: 1.4rem;
  padding-bottom: 1.4rem;
}

.exp-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.35);
}

.exp-time {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.exp-detail strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.exp-detail p {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  background: radial-gradient(circle at top, #020617, #020617 45%, #020617 100%);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
}

.info-card h3,
.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.info-card p,
.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.portfolio-card h3 {
  margin: 0.8rem 0 0.4rem;
}

.portfolio-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.portfolio-thumb {
  border-radius: 0.9rem;
  height: 150px;
}

.placeholder {
  background:
    linear-gradient(135deg, var(--accent-soft), transparent),
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.6), transparent 55%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.3rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.7rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid rgba(99, 102, 241, 0.7);
  border-color: rgba(99, 102, 241, 0.7);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  min-height: 1.2em;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.contact-info h3 {
  margin-top: 0;
}

.contact-info p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
}

.contact-info li + li {
  margin-top: 0.35rem;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.2rem 0 1.5rem;
  margin-top: 1rem;
  background: radial-gradient(circle at top, #020617, #020617 30%, #000 100%);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.2rem 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
  font-size: 0.75rem;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: rgba(148, 163, 184, 0.9);
}

body.light {
  --bg: #f9fafb;
  --bg-alt: #e5e7eb;
  --card-bg: #ffffff;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-strong: rgba(59, 130, 246, 0.24);
  --text: #030712;
  --text-soft: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, #e5e7eb 0, #f9fafb 56%, #e5e7eb 100%);
}

body.light .card,
body.light .hero-card {
  background: #ffffff;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
}

body.light .card-profile {
  background: #020617;
}

body.light .hero-card::before {
  opacity: 0.4;
}

body.light .chip {
  background: #f3f4f6;
}

body.light .contact-form input,
body.light .contact-form textarea {
  background: #f9fafb;
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-profile {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .container {
    width: min(100% - 2rem, 700px);
  }

  .hero {
    padding-top: 3.2rem;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    padding: 1.2rem 1.15rem;
  }
}
