:root {
  --bg-main: #020311;
  --bg-elevated: rgba(10, 12, 40, 0.92);
  --bg-elevated-soft: rgba(12, 16, 60, 0.85);
  --accent: #8b5cf6;
  --accent-soft: #22d3ee;
  --accent-strong: #f97316;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.9);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020311 45%, #000 100%);
  color: var(--text-main);
  height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* Parallax background */

#parallax-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -3;
  perspective: 1200px;
  background: radial-gradient(circle at top, #020617 0, #020311 45%, #000 100%);
}

.parallax-layer {
  position: absolute;
  inset: -10vh;
  will-change: transform, opacity;
}

.parallax-layer.sky {
  background: radial-gradient(
      circle at 20% 0%,
      rgba(56, 189, 248, 0.28),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 0%,
      rgba(147, 51, 234, 0.3),
      transparent 60%
    ),
    radial-gradient(circle at 50% 100%, #000, #020617 70%);
  z-index: 1;
}

.parallax-layer.stars {
  background-image: radial-gradient(2px 2px at 10% 20%, #e5e7eb, transparent),
    radial-gradient(1.5px 1.5px at 80% 30%, #facc15, transparent),
    radial-gradient(1.5px 1.5px at 30% 70%, #f97316, transparent),
    radial-gradient(2px 2px at 60% 80%, #e5e7eb, transparent),
    radial-gradient(1.5px 1.5px at 90% 60%, #22d3ee, transparent);
  opacity: 0.8;
  mix-blend-mode: screen;
  z-index: 2;
}

.parallax-layer.tower-back,
.parallax-layer.tower-front {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 3;
}

.parallax-layer.tower-back::before,
.parallax-layer.tower-front::before {
  content: "";
  display: block;
  width: 26vw;
  max-width: 260px;
  aspect-ratio: 5 / 14;
  border-radius: 999px;
  background: linear-gradient(to top, #020617 0%, #020617 50%, #111827 100%);
  box-shadow: 0 0 60px rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  position: relative;
  overflow: hidden;
}

.parallax-layer.tower-back::after {
  content: "";
  position: absolute;
  inset: 12% 15%;
  border-radius: 999px;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(56, 189, 248, 0.45),
    rgba(17, 24, 39, 0.3) 45%,
    rgba(15, 23, 42, 0.96) 100%
  );
  filter: blur(2px);
}

.parallax-layer.tower-front::before {
  background: linear-gradient(to top, #020617 0%, #020617 40%, #020617 100%);
  box-shadow: 0 0 80px rgba(15, 23, 42, 1);
}

.parallax-layer.tower-front::after {
  content: "";
  position: absolute;
  inset: 20% 19%;
  border-radius: 999px;
  background: radial-gradient(
    circle at 50% 100%,
    rgba(248, 250, 252, 0.9),
    rgba(248, 250, 252, 0.35) 35%,
    transparent 70%
  );
  box-shadow: 0 0 80px rgba(248, 250, 252, 0.8);
  opacity: 0.9;
}

.parallax-layer.ground-glow {
  z-index: 2;
}

.parallax-layer.ground-glow::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10vh;
  transform: translateX(-50%);
  width: 140vw;
  height: 45vh;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(248, 250, 252, 0.3),
    rgba(59, 130, 246, 0.08) 40%,
    transparent 70%
  );
  filter: blur(18px);
  opacity: 0.9;
}

.page-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at 50% -10%,
      rgba(15, 23, 42, 0.7),
      transparent 55%
    ),
    linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.9),
      rgba(2, 6, 23, 0.3),
      rgba(0, 0, 0, 0.9)
    );
  z-index: -1;
}

/* Layout */

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

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

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

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

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #e5e7eb, #0f172a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #020617;
  box-shadow: 0 0 24px rgba(248, 250, 252, 0.9);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.25s ease-out;
}

.nav-link:hover {
  color: #e5e7eb;
}

.nav-link:hover::after {
  width: 100%;
}

main {
  padding-block: 3rem 5rem;
}

/* Hero */

.hero {
  padding-block: 4.5rem 3.5rem;
}

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

.hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.25rem, 4vw, 3.2rem);
  margin: 0 0 1rem;
}

.highlight {
  background: linear-gradient(120deg, #e5e7eb, #a5b4fc, #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
}

.highlight-soft {
  color: var(--accent-soft);
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: none;
  color: inherit;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
    border-color 0.2s ease-out, background 0.2s ease-out, color 0.2s ease-out;
}

.btn-primary {
  background: radial-gradient(circle at 20% 0, #f9fafb, #a5b4fc);
  color: #020617;
  border-color: rgba(248, 250, 252, 0.7);
  box-shadow: 0 0 24px rgba(248, 250, 252, 0.5);
}

.btn-ghost {
  background: radial-gradient(
    circle at 20% 0,
    rgba(15, 23, 42, 0.7),
    rgba(15, 23, 42, 0.1)
  );
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

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

/* Glow buttons */

.glow-btn {
  box-shadow: 0 0 0 rgba(129, 140, 248, 0.35);
}

.glow-btn::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    rgba(56, 189, 248, 0.2),
    rgba(129, 140, 248, 0.35),
    rgba(248, 250, 252, 0.5),
    rgba(249, 115, 22, 0.2),
    rgba(56, 189, 248, 0.2)
  );
  opacity: 0;
  transition: opacity 0.3s ease-out, transform 0.4s ease-out;
  transform: translate3d(-30%, -50%, 0) rotate(0deg);
  mix-blend-mode: screen;
}

.glow-btn span {
  position: relative;
  z-index: 1;
}

.glow-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.7),
    0 0 60px rgba(56, 189, 248, 0.5);
}

.btn-primary.glow-btn:hover {
  background: radial-gradient(circle at 10% 0, #f9fafb, #c4b5fd);
}

.btn-ghost.glow-btn:hover {
  background: radial-gradient(
    circle at 10% 0,
    rgba(15, 23, 42, 0.3),
    rgba(15, 23, 42, 0.9)
  );
  border-color: rgba(248, 250, 252, 0.7);
}

.glow-btn:hover::before {
  opacity: 1;
  transform: translate3d(0, -50%, 0) rotate(40deg);
}

.glow-on-hover {
  transition: transform 0.2s ease-out, box-shadow 0.25s ease-out,
    border-color 0.25s ease-out, background 0.25s ease-out;
}

.glow-on-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9),
    0 0 40px rgba(56, 189, 248, 0.4);
  border-color: rgba(94, 234, 212, 0.5);
  background: radial-gradient(
      circle at 20% 0%,
      rgba(56, 189, 248, 0.18),
      transparent 45%
    ),
    radial-gradient(
      circle at 90% 0%,
      rgba(251, 146, 60, 0.23),
      transparent 55%
    );
}

/* Hero card */

.hero-card {
  perspective: 1200px;
}

.hero-card-inner {
  border-radius: 1.4rem;
  padding: 1.6rem 1.7rem;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(129, 140, 248, 0.3),
      transparent 65%
    ),
    radial-gradient(
      circle at 100% 0%,
      rgba(45, 212, 191, 0.35),
      transparent 65%
    ),
    linear-gradient(to bottom right, #020617, #020617);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  transform-origin: center;
  position: relative;
  overflow: hidden;
}

.hero-card-inner::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(
    circle at 50% 120%,
    rgba(248, 250, 252, 0.6),
    transparent 60%
  );
  opacity: 0.3;
  pointer-events: none;
}

.hero-role {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.85rem;
}

.hero-location {
  font-weight: 500;
}

.hero-location-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.hero-hobbies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.hero-hobbies span {
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

/* Sections */

.section {
  padding-block: 3.5rem;
}

.section-glass {
  position: relative;
}

.section-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(56, 189, 248, 0.09),
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 0%,
      rgba(129, 140, 248, 0.12),
      transparent 60%
    );
  opacity: 0.9;
  z-index: -1;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.info-card {
  border-radius: 1.2rem;
  padding: 1.4rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.muted {
  color: var(--text-muted);
}

.card-simple {
  border-radius: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: var(--bg-elevated-soft);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

/* Timeline */

.timeline {
  position: relative;
  margin-top: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(129, 140, 248, 0.2),
    rgba(56, 189, 248, 0.5)
  );
}

.timeline-item {
  position: relative;
  padding-left: 2.2rem;
  padding-bottom: 1.8rem;
}

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

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f9fafb, #60a5fa);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.8);
  border: 2px solid #020617;
}

.timeline-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  margin-bottom: 0.2rem;
}

.timeline h3 {
  margin: 0 0 0.4rem;
}

.timeline ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.timeline li + li {
  margin-top: 0.1rem;
}

/* Projects */

.section-projects {
  position: relative;
  overflow: hidden;
}

.section-projects::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
      circle at 50% 120%,
      rgba(248, 250, 252, 0.95),
      rgba(59, 130, 246, 0.5),
      rgba(15, 23, 42, 0.95)
    ),
    radial-gradient(
      circle at 50% -40%,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.9)
    );
  opacity: 0;
  transform: translateY(35%) scale(1.08);
  filter: blur(18px);
  transition: opacity 1.1s ease-out, transform 1.1s ease-out;
  z-index: -2;
}

.section-projects.resurrected::before {
  opacity: 0.8;
  transform: translateY(0) scale(1.02);
}

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

.project-card {
  border-radius: 1.1rem;
  padding: 1.2rem 1.3rem 1.3rem;
  background: rgba(10, 12, 40, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
  position: relative;
}

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

.project-card p {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.project-card .btn {
  font-size: 0.8rem;
  padding-inline: 1.2rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.contact-card {
  border-radius: 1.1rem;
  padding: 1.3rem 1.3rem 1.4rem;
  background: rgba(10, 12, 40, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.contact-link {
  display: inline-flex;
  font-size: 0.9rem;
  color: #e5e7eb;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.glow-link {
  position: relative;
}

.glow-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent-strong));
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  transition: width 0.24s ease-out;
}

.glow-link:hover::after {
  width: 100%;
}

.raw-contact {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  margin-top: 0.45rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.social-pill {
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
  color: #e5e7eb;
  background: radial-gradient(
    circle at 20% 0,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.4)
  );
}

.site-footer {
  border-top: 1px solid rgba(30, 64, 175, 0.7);
  background: radial-gradient(
    circle at 50% -40%,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.98)
  );
}

.footer-inner {
  padding: 1.1rem 0.75rem 1.4rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Fade-in on scroll — dramatic resurrection effect */

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(70px) scale(0.98);
  filter: blur(8px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out,
    filter 0.9s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.resurrection-section.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(120px) scale(0.96);
  filter: blur(16px) brightness(0.3);
}

.resurrection-section.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) brightness(1);
}

/* Responsive */

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

  .hero-card {
    order: -1;
  }

  .nav {
    display: none;
  }
}

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

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    padding-inline: 0;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3.2rem;
  }

  .container {
    width: min(100% - 2.2rem, 640px);
  }

  .section {
    padding-block: 3rem;
  }
}

