/* =============================================
   PIYAL DATTA — WORLD-CLASS PORTFOLIO CSS
   Premium Dark Theme | Glassmorphism | 2025
   ============================================= */

/* ── Design Tokens ─────────────────────────────── */
:root {
  --clr-bg: #070711;
  --clr-surface: #0d0d1a;
  --clr-card: rgba(255, 255, 255, 0.04);
  --clr-border: rgba(255, 255, 255, 0.08);
  --clr-accent: #7c3aed;
  --clr-accent-2: #06b6d4;
  --clr-accent-3: #ec4899;
  --clr-text: #e2e8f0;
  --clr-muted: #94a3b8;
  --clr-white: #ffffff;
  --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-glow: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(6, 182, 212, 0.4));
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.25);
  --shadow-card: 0 25px 60px rgba(0, 0, 0, 0.6);
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --font-heading: 'Space Grotesk', 'Playfair Display', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ── Reset & Base ──────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--clr-accent), var(--clr-accent-2));
  border-radius: 10px;
}

/* ── Scroll Progress Bar ───────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-hero);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Custom Cursor ─────────────────────────────── */
#cursor-glow {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.8), rgba(6, 182, 212, 0.3));
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  z-index: 9998;
  mix-blend-mode: screen;
}

#cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(124, 58, 237, 0.5);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  z-index: 9997;
}

/* ── Animated Background Blobs ─────────────────── */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: blobFloat 12s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--clr-accent);
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--clr-accent-2);
  top: 40%;
  right: -100px;
  animation-delay: -4s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--clr-accent-3);
  bottom: 10%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* ── Hero Wrapper (contains canvas + overlay) ─── */
#hero-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--clr-bg);
}

/* ── Canvas (Fluid Simulation) ─────────────────── */
canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ── Hero Video Background ─────────────────────── */
#videoBackground {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* ── Hero Overlay ──────────────────────────────── */
#overlay {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  text-align: center;
  padding: 0 20px;
}

.hero-greeting {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--clr-accent-2);
  margin-bottom: 1rem;
  opacity: 0;
  animation: heroFadeUp 0.8s 0.3s forwards;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--clr-accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: heroFadeUp 0.8s 0.5s forwards;
  text-shadow: none;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--clr-muted);
  margin-bottom: 2.5rem;
  min-height: 2em;
  opacity: 0;
  animation: heroFadeUp 0.8s 0.7s forwards;
}

.hero-subtitle .typed-cursor {
  color: var(--clr-accent);
  animation: typedBlink 0.7s infinite;
}

@keyframes typedBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: all;
  opacity: 0;
  animation: heroFadeUp 0.8s 0.9s forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: all;
  opacity: 0;
  animation: heroFadeUp 1s 1.4s forwards;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.scroll-dot {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  position: relative;
  overflow: hidden;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--clr-accent-2);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    top: 6px;
    opacity: 1;
  }

  80% {
    top: 24px;
    opacity: 0.3;
  }

  100% {
    top: 6px;
    opacity: 1;
  }
}

/* ── Buttons ───────────────────────────────────── */
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  background: var(--gradient-hero);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transition: left 0.5s ease;
}

.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
  color: #fff;
}

.btn-primary-glow:hover::before {
  left: 100%;
}

.btn-outline-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.btn-outline-glow:hover {
  border-color: var(--clr-accent-2);
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-3px);
  color: var(--clr-accent-2);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.2);
}

/* ── Section Titles ────────────────────────────── */
.section-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  padding: 12vh 0 5vh;
}

.section-label .overline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--clr-accent-2);
}

.section-label h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--clr-white);
  line-height: 1.1;
}

.section-label .underline-bar {
  width: 50px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-hero);
  margin-top: 0.5rem;
}

/* Legacy .text class (kept for compatibility) */
.text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12vh;
  margin-bottom: 2vh;
  position: relative;
}

.text::after {
  content: '';
  position: absolute;
  bottom: -14px;
  width: 50px;
  height: 3px;
  background: var(--gradient-hero);
  border-radius: 2px;
}

/* ── Glass Card ────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

/* ── Navbar ────────────────────────────────────── */
.navbar {
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(7, 7, 17, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand-custom {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-link-custom {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--clr-muted) !important;
  text-decoration: none;
  padding: 0.5rem 0.8rem !important;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  border-radius: 1px;
  transition: left 0.3s ease, width 0.3s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--clr-white) !important;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  left: 0.8rem;
  width: calc(100% - 1.6rem);
}

/* ── About Section ─────────────────────────────── */
.about-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: visible;
  padding: 3rem;
}

.about-photo-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
}

.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  /* Glow ring via box-shadow — no overflow, no layout disruption */
  box-shadow:
    0 0 0 4px var(--clr-bg),
    0 0 0 7px var(--clr-accent);
  animation: ringPulse 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes ringPulse {

  0%,
  100% {
    box-shadow: 0 0 0 4px var(--clr-bg), 0 0 0 7px var(--clr-accent);
  }

  50% {
    box-shadow: 0 0 0 4px var(--clr-bg), 0 0 0 11px var(--clr-accent-2);
  }
}

.about-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 14px;
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-top: 0.3rem;
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.2;
}

.about-role {
  font-size: 1rem;
  color: var(--clr-accent-2);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.about-bio {
  color: var(--clr-muted);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  text-align: justify;
}

/* ── Timeline (Resume) ─────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-accent), var(--clr-accent-2), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clr-accent);
  border: 3px solid var(--clr-bg);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
  transition: var(--transition);
}

.timeline-item:hover::before {
  background: var(--clr-accent-2);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.3), 0 0 20px rgba(6, 182, 212, 0.4);
  transform: scale(1.2);
}

.timeline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity 0.3s;
}

.timeline-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateX(6px);
  box-shadow: var(--shadow-glow);
}

.timeline-card:hover::before {
  opacity: 1;
}

.timeline-heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.3rem;
}

.timeline-sub {
  font-size: 0.88rem;
  color: var(--clr-accent-2);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-meta {
  font-size: 0.82rem;
  color: var(--clr-muted);
  margin-bottom: 0.8rem;
}

.timeline-body {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

.timeline-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 1rem;
  opacity: 0.75;
  transition: opacity 0.3s;
}

.timeline-card:hover .timeline-img {
  opacity: 1;
}

/* ── Nav Pills (Resume Tabs) ───────────────────── */
.nav-pills .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.65rem 1.8rem;
  border-radius: 50px;
  color: var(--clr-muted) !important;
  background: transparent;
  border: 1px solid var(--clr-border);
  transition: var(--transition);
  text-transform: uppercase;
}

.nav-pills .nav-link:hover {
  color: var(--clr-white) !important;
  border-color: rgba(124, 58, 237, 0.4);
}

.nav-pills .nav-link.active {
  color: #fff !important;
  background: var(--gradient-hero);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

/* ── Skills ────────────────────────────────────── */
.skills-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.skills-group-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.skills-group-title .badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--clr-text);
  transition: var(--transition);
  cursor: default;
}

.skill-badge:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Accent colors per skill type */
.skill-badge.html:hover {
  border-color: #e34f26;
  color: #e34f26;
  box-shadow: 0 6px 20px rgba(227, 79, 38, 0.3);
}

.skill-badge.css:hover {
  border-color: #1572b6;
  color: #1572b6;
  box-shadow: 0 6px 20px rgba(21, 114, 182, 0.3);
}

.skill-badge.js:hover {
  border-color: #f7df1e;
  color: #f7df1e;
  box-shadow: 0 6px 20px rgba(247, 223, 30, 0.3);
}

.skill-badge.php:hover {
  border-color: #777bb4;
  color: #777bb4;
  box-shadow: 0 6px 20px rgba(119, 123, 180, 0.3);
}

.skill-badge.python:hover {
  border-color: #3776ab;
  color: #3776ab;
  box-shadow: 0 6px 20px rgba(55, 118, 171, 0.3);
}

.skill-badge.java:hover {
  border-color: #f89820;
  color: #f89820;
  box-shadow: 0 6px 20px rgba(248, 152, 32, 0.3);
}

.skill-badge.sql:hover {
  border-color: #00758f;
  color: #00758f;
  box-shadow: 0 6px 20px rgba(0, 117, 143, 0.3);
}

.skill-badge.kotlin:hover {
  border-color: #7f52ff;
  color: #7f52ff;
  box-shadow: 0 6px 20px rgba(127, 82, 255, 0.3);
}

.skill-badge.django:hover {
  border-color: #092e20;
  color: #44b78b;
  box-shadow: 0 6px 20px rgba(68, 183, 139, 0.3);
}

.skill-badge.bs:hover {
  border-color: #7952b3;
  color: #7952b3;
  box-shadow: 0 6px 20px rgba(121, 82, 179, 0.3);
}

.skill-badge.webgl:hover {
  border-color: #990000;
  color: #ff4444;
  box-shadow: 0 6px 20px rgba(255, 68, 68, 0.3);
}

.skill-badge.cpp:hover {
  border-color: #044f88;
  color: #00aeff;
  box-shadow: 0 6px 20px rgba(0, 174, 255, 0.3);
}

.skill-badge.pro:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  box-shadow: var(--shadow-glow);
}

/* ── Project Cards ─────────────────────────────── */
.pj_card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.pj_card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: var(--radius-lg);
}

.pj_card:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 58, 237, 0.2);
  transform: translateY(-8px);
}

.pj_card:hover::before {
  opacity: 1;
}

.pj_card .card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pj_card .project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.pj_card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.4rem;
}

.pj_card .tech-stack {
  font-size: 0.78rem;
  color: var(--clr-accent-2);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.pj_body {
  flex-grow: 1;
  font-size: 0.88rem;
  color: var(--clr-muted);
  line-height: 1.75;
}

.pj_body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pj_body ul li {
  padding: 0.2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pj_body ul li::before {
  content: '▸';
  color: var(--clr-accent);
  flex-shrink: 0;
  line-height: 1.75;
  font-size: 0.75rem;
}

.project-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
  flex-wrap: wrap;
}

.tech-pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-accent);
  letter-spacing: 0.03em;
}

/* ── Interests / Personal ──────────────────────── */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.interest-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

.interest-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.interest-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.interest-card:hover img {
  transform: scale(1.08);
}

.interest-card-label {
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

/* ── References Marquee ────────────────────────── */
.ref-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 1rem 0;
}

.Marquee {
  width: auto;
  box-sizing: border-box;
  padding: 0.6em;
  color: var(--clr-white);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.Marquee::before,
.Marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}

.Marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--clr-bg), transparent);
}

.Marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--clr-bg), transparent);
}

.Marquee-forward {
  display: flex;
  animation: marqueeForward 20s linear infinite;
}

.Marquee-backward {
  display: flex;
  animation: marqueeBackward 20s linear infinite;
}

.Marquee-forward:hover,
.Marquee-backward:hover {
  animation-play-state: paused;
}

.Marquee-tag {
  width: auto;
  min-width: 140px;
  margin: 0 0.6em;
  padding: 0.55em 1.2em;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--clr-muted);
  border: 1px solid var(--clr-border);
  white-space: nowrap;
}

.Marquee-tag:hover {
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.1);
  color: var(--clr-white);
  cursor: pointer;
  transform: scale(1.05);
}

@keyframes marqueeForward {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes marqueeBackward {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* ── Contact / Footer ──────────────────────────── */
.contact-section {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding-top: 5rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.cta-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
}

.cta-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cta-info h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-white);
  margin: 0 0 0.2rem;
}

.cta-info span {
  font-size: 0.82rem;
  color: var(--clr-muted);
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--clr-border);
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.social-btn.fb {
  background: #3b5998;
}

.social-btn.em {
  background: linear-gradient(135deg, #ac2bac, #7c3aed);
}

.social-btn.li {
  background: #0077b5;
}

.social-btn.gh {
  background: #333;
}

.footer-map {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 16px;
  display: block;
  opacity: 0.8;
  filter: grayscale(30%) invert(90%) hue-rotate(175deg) brightness(0.8);
  transition: opacity 0.3s;
}

.footer-map:hover {
  opacity: 1;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--clr-border);
  padding: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--clr-muted);
  margin: 0;
}

.footer-bottom a {
  color: var(--clr-accent-2);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  color: var(--clr-accent);
}

/* ── AOS override ──────────────────────────────── */
[data-aos] {
  will-change: transform, opacity;
}

/* ── Typed.js cursor fix ───────────────────────── */
.typed-cursor {
  color: var(--clr-accent);
  font-weight: 300;
}

/* ── Font Classes ──────────────────────────────── */
.playfair {
  font-family: 'Playfair Display', serif;
}

.roboto {
  font-family: var(--font-body);
}

.trirong {
  font-family: var(--font-body);
  font-weight: 300;
}

.sofia {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
}

/* ── Loader Animation ──────────────────────────── */
h3.span {
  font-size: 2vw;
  letter-spacing: 0.7em;
  font-family: 'ROBOTO', sans-serif;
  font-weight: 300;
  color: #faebd7;
  z-index: 4;
}

.loader span {
  color: #faebd7;
  text-shadow: 0 0 0 #faebd7;
  -webkit-animation: loading 1s ease-in-out infinite alternate;
  animation: loading 1s ease-in-out infinite alternate;
}

@keyframes loading {
  to {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    color: #ffffff;
  }
}

/* nth-child delays */
.loader span:nth-child(2) {
  -webkit-animation-delay: 0.1s;
}

.loader span:nth-child(3) {
  -webkit-animation-delay: 0.2s;
}

.loader span:nth-child(4) {
  -webkit-animation-delay: 0.3s;
}

.loader span:nth-child(5) {
  -webkit-animation-delay: 0.4s;
}

.loader span:nth-child(6) {
  -webkit-animation-delay: 0.5s;
}

.loader span:nth-child(7) {
  -webkit-animation-delay: 0.6s;
}

.loader span:nth-child(8) {
  -webkit-animation-delay: 0.7s;
}

.loader span:nth-child(9) {
  -webkit-animation-delay: 0.8s;
}

.loader span:nth-child(10) {
  -webkit-animation-delay: 0.9s;
}

.loader span:nth-child(11) {
  -webkit-animation-delay: 1.0s;
}

.loader span:nth-child(12) {
  -webkit-animation-delay: 1.1s;
}

.loader span:nth-child(13) {
  -webkit-animation-delay: 1.2s;
}

.loader span:nth-child(14) {
  -webkit-animation-delay: 1.3s;
}

.loader span:nth-child(15) {
  -webkit-animation-delay: 1.4s;
}

.loader span:nth-child(16) {
  -webkit-animation-delay: 1.5s;
}

.loader span:nth-child(17) {
  -webkit-animation-delay: 1.6s;
}

.loader span:nth-child(18) {
  -webkit-animation-delay: 1.7s;
}

.loader span:nth-child(19) {
  -webkit-animation-delay: 1.8s;
}

.loader span:nth-child(20) {
  -webkit-animation-delay: 1.9s;
}

.loader span:nth-child(21) {
  -webkit-animation-delay: 2.0s;
}

.loader span:nth-child(22) {
  -webkit-animation-delay: 2.1s;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {

  /* Hero */
  #hero-wrap {
    height: 100vh;
    min-height: 600px;
  }

  #overlay {
    padding: 0 1.5rem;
  }

  .hero-name {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  canvas {
    display: none;
  }

  /* About */
  .about-card {
    padding: 2rem 1.2rem;
  }

  .about-photo-wrap,
  .about-photo {
    width: 160px;
    height: 160px;
  }

  .about-photo-ring {
    inset: -4px;
  }

  .about-stats {
    gap: 0.75rem;
    justify-content: center;
  }

  .stat-item {
    padding: 0.7rem 0.9rem;
    flex: 0 0 auto;
    min-width: 90px;
  }

  .stat-number {
    font-size: 1.7rem;
  }

  .about-title {
    font-size: 1.5rem;
    text-align: center;
  }

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

  .about-bio {
    font-size: 0.9rem;
  }

  /* Timeline */
  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-img {
    width: 100% !important;
  }

  /* Skills */
  .skills-container {
    padding: 1.5rem;
  }

  .skill-grid {
    gap: 0.5rem;
  }

  .skill-badge {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
  }

  /* Projects */
  .pj_card {
    padding: 1.4rem;
  }

  /* Misc */
  .cta-grid {
    grid-template-columns: 1fr;
  }

  #cursor-glow,
  #cursor-ring {
    display: none;
  }

  .text {
    font-size: 2.5rem;
  }

  .Marquee-tag {
    min-width: 110px;
    font-size: 0.78rem;
  }

  .section-label h2 {
    font-size: 2rem;
  }

  /* Nav pills — allow wrapping */
  .nav-pills {
    gap: 0.4rem !important;
  }

  .nav-pills .nav-link {
    padding: 0.5rem 1.1rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.4rem;
    letter-spacing: -0.02em;
  }

  .section-label h2 {
    font-size: 1.6rem;
  }

  .about-title {
    font-size: 1.3rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-item {
    min-width: 80px;
    padding: 0.6rem 0.7rem;
  }

  .about-card {
    padding: 1.5rem 1rem;
  }
}