:root {
  --primary: #4F46E5;
  --accent: #22D3EE;
  --background: #0B0E17;
  --surface: #111827;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --radius: 16px;
  --radius-large: 24px;
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* RESET */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--background);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
}

/* BACKGROUND */

body::before {
  content: "";
  position: fixed;
  top: -220px;
  left: -220px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.7), transparent 70%);
  filter: blur(120px);
  opacity: 0.35;
  animation: softGlow 12s infinite alternate;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  bottom: -220px;
  right: -220px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 70%);
  filter: blur(120px);
  opacity: 0.35;
  animation: softGlow 10s infinite alternate;
  z-index: -2;
}

@keyframes softGlow {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(80px);
  }
}

/* INTRO */

.intro-banner {
  padding: 70px 20px 40px;
}

.intro-layout {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  text-align: center;
}

.intro-copy {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.intro-title {
  font-size: 2.8rem;
  line-height: 1.05;
}

.intro-title span {
  color: var(--primary);
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.action-main,
.action-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.action-main {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: white;
  border: none;
}

.action-outline {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
}

.action-main:hover,
.action-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.2);
}

.intro-portrait img {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

/* GENERIC BLOCKS */

.content-block {
  max-width: 1150px;
  margin: 0 auto;
  padding: 70px 20px;
}

.content-block-soft {
  background: rgba(255, 255, 255, 0.025);
}

.block-heading {
  margin-bottom: 40px;
}

.block-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.block-subtitle {
  color: var(--text-muted);
  line-height: 1.6;
}

/* SKILL TRACK */

.skill-track {
  position: relative;
  margin-top: 30px;
  padding-left: 30px;
}

.skill-track::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), transparent);
}

.skill-step {
  position: relative;
  margin-bottom: 28px;
  padding-left: 36px;
}

.skill-marker {
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.12);
}

.skill-panel {
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.skill-panel h3 {
  margin-bottom: 10px;
}

.skill-panel p {
  color: var(--text-muted);
  line-height: 1.6;
}

.skill-meta {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

/* PORTFOLIO */

.portfolio-grid {
  display: grid;
  gap: 26px;
}

.portfolio-card {
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-large);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  opacity: 0;
  transform: translateY(30px);
}

.portfolio-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(79, 70, 229, 0.45);
}

.portfolio-visual {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.portfolio-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.portfolio-card:hover .portfolio-visual img {
  transform: scale(1.06);
}

.portfolio-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 14, 23, 0.75), rgba(11, 14, 23, 0.08));
}

.portfolio-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.18);
  border: 1px solid rgba(79, 70, 229, 0.35);
  color: #d2d0ff;
  font-size: 0.85rem;
}

.portfolio-body h3 {
  font-size: 1.45rem;
  line-height: 1.2;
}

.portfolio-body p {
  color: var(--text-muted);
  line-height: 1.6;
}

.portfolio-trigger {
  align-self: flex-start;
  margin-top: 6px;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(79, 70, 229, 0.25);
}

/* ABOUT */

.about-copy {
  max-width: 850px;
  line-height: 1.8;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* CONTACT */

.contact-panel {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  font-family: inherit;
}

.contact-panel textarea {
  min-height: 140px;
  resize: vertical;
}

/* DIALOG */

.dialog-layer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.dialog-layer.is-open {
  opacity: 1;
  visibility: visible;
}

.dialog-box {
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border-radius: 22px;
  padding: 28px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.dialog-box img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 20px;
}

.dialog-box h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.dialog-box p {
  line-height: 1.6;
}

.dialog-details {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
}

.dialog-details strong {
  color: white;
}

/* FOOTER */

.page-footer {
  text-align: center;
  padding: 30px 20px 40px;
  color: var(--text-muted);
}

/* MOUSE AURA */

.mouse-aura {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.22), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  z-index: -1;
}

/* RESPONSIVE */

@media (min-width: 768px) {
  .intro-layout {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .intro-actions {
    justify-content: flex-start;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .intro-title {
    font-size: 4rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}