:root {
  --bg-main: #09090b;
  --bg-card: rgba(18, 18, 22, 0.65);
  --bg-card-hover: rgba(24, 24, 30, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(239, 68, 68, 0.45);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-red: #ef4444;
  --accent-red-glow: rgba(225, 29, 72, 0.45);
  --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
}

/* ==========================================================================
   Ambient Background Glows & Animated Grid (Crimson Cyber Luxury Theme)
   ========================================================================== */
.site-ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: -108px;
  width: calc(100% + 216px);
  height: calc(100% + 216px);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(239, 68, 68, 0.45) 1.5px, transparent 0),
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  animation: ambientGridMotion 22s linear infinite;
  mask-image: radial-gradient(ellipse 95% 90% at 50% 35%, #000 30%, rgba(0, 0, 0, 0.5) 75%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 95% 90% at 50% 35%, #000 30%, rgba(0, 0, 0, 0.5) 75%, transparent 100%);
  pointer-events: none;
  will-change: transform;
}

@keyframes ambientGridMotion {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(54px, 54px, 0);
  }
}

.ambient-grid-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 650px at 15% 20%, rgba(225, 29, 72, 0.16) 0%, transparent 70%),
    radial-gradient(circle 550px at 85% 65%, rgba(185, 28, 28, 0.13) 0%, transparent 70%);
  animation: gridGlowShift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes gridGlowShift {
  0% {
    opacity: 0.5;
    transform: translate(-30px, -20px) scale(0.96);
  }
  50% {
    opacity: 0.95;
    transform: translate(25px, 30px) scale(1.06);
  }
  100% {
    opacity: 0.6;
    transform: translate(-15px, 20px) scale(1);
  }
}

.grid-mouse-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 420px at var(--spot-x, 50%) var(--spot-y, 35%), rgba(239, 68, 68, 0.18), transparent 75%);
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

main {
  position: relative;
  z-index: 1;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.glow-top-right {
  top: -150px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.18) 0%, rgba(185, 28, 28, 0.08) 50%, transparent 70%);
}

.glow-bottom-left {
  bottom: 10%;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.12) 0%, transparent 65%);
}

/* ==========================================================================
   Header Bar (Floating Glass Pill matching reference)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 1.2rem;
  z-index: 100;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, 100%);
  padding: 0.55rem 0.8rem 0.55rem 1.2rem;
  background: rgba(16, 16, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.2s;
}

.brand-wrap:hover {
  opacity: 0.9;
}

.brand-avatar-img {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.brand-wrap:hover .brand-avatar-img {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.6);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Header Nav Slider (Red Themed Sliding Indicator & Track)
   ========================================================================== */
.header-nav-slider-container {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.28rem 0.35rem 0.45rem;
  background: rgba(20, 20, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06), 0 4px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-links-track {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  z-index: 2;
}

.nav-slider-pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.65), 0 0 32px rgba(225, 29, 72, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), 
              width 0.38s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
  will-change: transform, width;
}

.nav-slider-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 1.15rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease, opacity 0.25s ease;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.nav-slider-link:hover {
  color: #ffffff;
}

.nav-slider-link.active {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.nav-link-talk {
  padding-inline: 1.25rem;
  font-weight: 600;
}

/* Bottom micro-rail progress runner */
.nav-slider-rail {
  position: absolute;
  bottom: 2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  pointer-events: none;
}

.nav-slider-runner {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #ef4444, #f43f5e);
  box-shadow: 0 0 8px #ef4444, 0 0 14px rgba(239, 68, 68, 0.8);
  transition: width 0.15s ease-out;
}

/* ==========================================================================
   Hero Section (Centered Minimalist Showcase)
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}

.hero-ambient-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(225, 29, 72, 0.26) 0%, rgba(185, 28, 28, 0.12) 42%, rgba(127, 29, 29, 0.02) 70%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-showcase {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}

.hero-greeting {
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--accent-red);
  margin-bottom: 1.25rem;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 6.2rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-role {
  font-family: var(--font-mono, monospace);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 500;
  color: var(--accent-red);
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.2rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.45rem;
  border-radius: 9999px;
  font-family: var(--font-mono, monospace);
  font-size: 0.92rem;
  font-weight: 500;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.badge-leetcode {
  background: rgba(245, 158, 11, 0.07);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
}

.badge-codeforces {
  background: rgba(59, 130, 246, 0.07);
  border: 1.5px solid rgba(59, 130, 246, 0.45);
  color: #60a5fa;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.12);
}

.badge-dot {
  opacity: 0.65;
}

.badge-score {
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  margin-bottom: 3.4rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.9rem 2.4rem;
  border-radius: 9999px;
  box-shadow: 0 4px 25px rgba(225, 29, 72, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  background: #f43f5e;
  box-shadow: 0 8px 35px rgba(225, 29, 72, 0.6);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(225, 29, 72, 0.55);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent-red);
  background: rgba(225, 29, 72, 0.12);
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.25);
}

.hero-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero-social-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-social-icon:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* Common Buttons for other sections */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #ffffff;
  color: #09090b;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #f43f5e;
  color: #ffffff;
  box-shadow: 0 8px 30px rgba(225, 29, 72, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.7rem;
  border-radius: 9999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Sections Common
   ========================================================================== */
.section {
  position: relative;
  z-index: 1;
  padding: 6.5rem 0;
}

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

.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-red);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
  max-width: 1060px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.about-main-grid {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-photo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-photo-frame {
  position: relative;
  width: 100%;
  max-width: 370px;
  aspect-ratio: 4 / 4.8;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(225, 29, 72, 0.16);
  background: var(--bg-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-photo-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 72, 0.45);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.8), 0 0 50px rgba(225, 29, 72, 0.28);
}

.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content .section-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.about-bio {
  width: 100%;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0; /* No space between paragraphs */
  text-align: left;
}

.about-bio p {
  margin: 0;
  padding: 0;
}

.about-bio p + p {
  margin-top: 0; /* Zero space between the 2 different paragraphs */
}

.about-bio strong {
  color: #ffffff;
  font-weight: 600;
}

.about-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  padding: 1.6rem 1.6rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  text-align: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 72, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(225, 29, 72, 0.15);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Skills Section
/* ==========================================================================
   Skills Section (Horizontal Stacked Rows matching reference image 2)
   ========================================================================== */
.skills-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.skills-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.skills-scroll-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}

.skill-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 2.2rem 2.5rem;
  border-radius: 20px;
  border: 1px solid transparent;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  background: transparent;
}

.skill-row:last-child {
  border-bottom: 1px solid transparent;
}

/* Active and Hover Row Highlight - Matching Image 2 with Crimson Glow */
.skill-row.active,
.skill-row:hover {
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.16) 0%, rgba(185, 28, 28, 0.08) 60%, rgba(20, 14, 18, 0.6) 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(225, 29, 72, 0.18), inset 0 0 25px rgba(225, 29, 72, 0.06);
  transform: scale(1.01);
}

.skill-row-left {
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
}

.skill-row-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #52525b;
  flex-shrink: 0;
  min-width: 3rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.skill-row.active .skill-row-num,
.skill-row:hover .skill-row-num {
  color: var(--accent-red);
  text-shadow: 0 0 20px rgba(225, 29, 72, 0.6);
}

.skill-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-row-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
}

.skill-row-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.skill-row-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  align-items: center;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  transition: all 0.22s ease;
  white-space: nowrap;
}

.skill-pill:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.35);
}

.skill-row.active .skill-pill {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Projects Section (Showcase Layout matching reference image)
   ========================================================================== */
.projects-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-case-studies {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  transition: all 0.2s ease;
}

.btn-case-studies:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.showcase-col {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Staggered offset for the right column like in reference */
.col-right {
  margin-top: 5.5rem;
}

.showcase-card {
  display: flex;
  flex-direction: column;
}

/* Large frame with crimson tile grid background */
.showcase-media-frame {
  position: relative;
  border-radius: 28px;
  padding: 2.2rem 2rem;
  background: linear-gradient(145deg, #1e090d 0%, #120508 55%, #090204 100%);
  border: 1px solid rgba(225, 29, 72, 0.22);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(225, 29, 72, 0.1);
  overflow: hidden;
  display: block;
  margin-bottom: 1.8rem;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.showcase-media-frame:hover {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 45px rgba(225, 29, 72, 0.25);
  transform: translateY(-4px);
}

/* Beveled tile grid behind screenshot inside frame */
.showcase-tiles-bg {
  position: absolute;
  inset: -10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

.showcase-tiles-bg span {
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 14px;
  background: rgba(225, 29, 72, 0.03);
  box-shadow: inset 0 0 10px rgba(225, 29, 72, 0.04);
}

.showcase-img-container {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  aspect-ratio: 16 / 10;
  background: #09090b;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  display: block;
}

.showcase-media-frame:hover .showcase-img {
  transform: scale(1.03);
}

.showcase-info {
  display: flex;
  flex-direction: column;
}

.showcase-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  gap: 1rem;
}

.showcase-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.showcase-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.showcase-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transition: all 0.2s ease;
}

.showcase-arrow-btn:hover {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
  transform: translate(2px, -2px);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.showcase-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.showcase-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.showcase-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
}

.showcase-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.badge-role {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: #ffffff;
  color: #09090b;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: 0.01em;
}

.badge-tech {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d4d4d8;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

/* ==========================================================================
   Contact / Let's Talk Section
   ========================================================================== */
.contact-section {
  padding-bottom: 8rem;
}

.contact-card {
  position: relative;
  background: linear-gradient(135deg, rgba(28, 14, 18, 0.75) 0%, rgba(14, 14, 18, 0.9) 100%);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 32px;
  padding: 5rem 3rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 60px rgba(225, 29, 72, 0.12);
}

.contact-ambient {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.3) 0%, transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.contact-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.contact-channel-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.2rem;
  text-align: left;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-channel-item:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 72, 0.45);
  background: rgba(225, 29, 72, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(225, 29, 72, 0.18);
}

.channel-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-channel-item:hover .channel-icon-box {
  background: rgba(225, 29, 72, 0.22);
  transform: scale(1.05);
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-grow: 1;
}

.channel-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.channel-value {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: #ffffff;
  word-break: break-all;
}

.channel-arrow {
  color: var(--text-muted);
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.contact-channel-item:hover .channel-arrow {
  opacity: 1;
  color: var(--accent-red);
  transform: translate(2px, -2px);
}

.contact-status-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
  padding-left: 0.4rem;
  text-align: left;
}

.status-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.94rem;
  color: #d4d4d8;
}

.status-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  display: inline-block;
  animation: livePulseAnim 2s infinite ease-in-out;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #060608;
  padding: 2.2rem 0;
  position: relative;
  z-index: 1;
}

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

.footer-copy {
  color: var(--text-secondary);
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-section {
    min-height: auto;
    padding: 4.5rem 0 3.5rem;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 2rem 1.8rem;
  }

  .skill-row-pills {
    justify-content: flex-start;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .col-right {
    margin-top: 0;
  }

  .about-main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .about-photo-frame {
    max-width: 320px;
    margin-inline: auto;
  }

  .about-content .section-header {
    text-align: center;
  }

  .about-bio {
    text-align: center;
  }

  .about-stats {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.45rem 0.65rem;
  }

  .header-nav-slider-container {
    padding: 0.2rem 0.25rem 0.35rem;
  }

  .nav-links-track {
    gap: 0.15rem;
  }

  .nav-slider-link {
    padding: 0.35rem 0.72rem;
    font-size: 0.78rem;
  }

  .nav-link-talk {
    padding-inline: 0.85rem;
  }

  .hero-name {
    font-size: 2.8rem;
  }

  .hero-role {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .badge-pill {
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .skill-row {
    padding: 1.6rem 1.2rem;
  }

  .skill-row-num {
    font-size: 2rem;
    min-width: 2.2rem;
  }

  .skill-row-title {
    font-size: 1.3rem;
  }

  .skill-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.72rem;
  }

  .showcase-media-frame {
    padding: 1.4rem 1.1rem;
    border-radius: 20px;
  }

  .contact-card {
    padding: 3.5rem 1.8rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
