/* ============================================================
   JackSonTuans — Dark-Tech Futuristic Portfolio
   Design System & Styles
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────── */
:root {
  --bg-primary: #031220;
  --bg-secondary: #071b2e;
  --bg-card: rgba(8, 30, 49, 0.72);
  --bg-card-hover: rgba(8, 38, 62, 0.92);

  --blue: #6fdcff;
  --blue-dark: #2aaee6;
  --cyan: #aaf4ff;
  --white: #F9FAFB;
  --gray: #9fb4cb;
  --gray-dark: #5f748d;
  --gray-border: rgba(143, 189, 226, 0.15);

  --gradient-blue: linear-gradient(135deg, #2378de, #63e7ff);
  --gradient-hero: radial-gradient(ellipse at 20% 0%, rgba(35, 120, 222, 0.2) 0%, transparent 58%),
                   radial-gradient(ellipse at 80% 100%, rgba(99, 231, 255, 0.12) 0%, transparent 52%);

  --glow-blue: 0 0 30px rgba(72, 186, 255, 0.34);
  --glow-blue-sm: 0 0 18px rgba(72, 186, 255, 0.22);
  --glow-blue-hover: 0 0 42px rgba(99, 231, 255, 0.42), 0 0 86px rgba(35, 120, 222, 0.18);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, rgba(79, 189, 255, 0.18), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(99, 231, 255, 0.1), transparent 18%),
    linear-gradient(180deg, #031220 0%, #041a2d 42%, #031220 100%);
  color: var(--gray);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ── Utility ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(99, 231, 255, 0.05), transparent 22%),
    radial-gradient(circle at 88% 80%, rgba(35, 120, 222, 0.06), transparent 24%);
  pointer-events: none;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 12px;
}

.section__subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 56px;
}

/* ── Scroll Animations ─────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: var(--glow-blue-sm);
}

.btn--primary:hover {
  box-shadow: var(--glow-blue-hover);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gray-border);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  border-color: var(--blue);
  box-shadow: var(--glow-blue-sm);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 14px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(3, 18, 32, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-border);
  padding: 12px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.logo:hover { opacity: 0.8; }

.logo__bracket {
  color: var(--blue);
}

.nav__list {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-blue);
  transition: var(--transition);
  border-radius: 2px;
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.header__cta {
  margin-left: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background:
    linear-gradient(180deg, rgba(4, 22, 38, 0.86), rgba(3, 18, 32, 0.98)),
    var(--gradient-hero);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 198, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 198, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

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

.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(35, 120, 222, 0.18);
  top: -200px;
  left: -100px;
  animation: glowFloat 10s ease-in-out infinite;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: rgba(99, 231, 255, 0.12);
  bottom: -100px;
  right: -50px;
  animation: glowFloat 12s ease-in-out infinite reverse;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 15px); }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__tag {
  font-size: 16px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero__tag-strong {
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 0 14px rgba(99, 231, 255, 0.18);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.1vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  min-height: 2.6em;
}

.hero__title-rotator {
  display: inline-block;
  width: min(28ch, 100%);
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  transition: opacity 0.42s ease, transform 0.42s ease, filter 0.42s ease;
}

.hero__title-rotator.is-changing {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
}

.hero__title-accent {
  display: inline-block;
  font-weight: 900;
  color: #1f6fd6;
  -webkit-text-fill-color: #1f6fd6;
  text-shadow: 0 0 18px rgba(31, 111, 214, 0.22);
}

.hero__sub {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero__socials {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-social {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(249, 250, 251, 0.98);
  color: var(--bg-primary);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  transition: var(--transition);
}

.hero-social:hover {
  transform: translateY(-4px) scale(1.03);
  color: var(--blue-dark);
  box-shadow: var(--glow-blue-sm), 0 20px 36px rgba(0, 0, 0, 0.24);
}

.hero-social svg {
  width: 28px;
  height: 28px;
}

.hero-social__mono {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  width: 100%;
  max-width: 470px;
  margin-left: auto;
}

.hero-gallery {
  position: relative;
  min-height: 500px;
}

.hero-gallery__backdrop {
  position: absolute;
  inset: 42px 24px 32px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top, rgba(71, 177, 255, 0.28), transparent 44%),
    linear-gradient(180deg, rgba(8, 30, 49, 0.78), rgba(3, 18, 32, 0.98));
  filter: blur(4px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.hero-gallery__frame {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 30, 49, 0.78), rgba(3, 18, 32, 0.98)),
    radial-gradient(circle at top right, rgba(99, 231, 255, 0.18), transparent 34%);
  backdrop-filter: blur(16px);
  box-shadow: var(--glow-blue-sm), 0 28px 80px rgba(0, 0, 0, 0.38);
}

.hero-gallery__slides {
  position: absolute;
  inset: 0;
}

.hero-gallery__quote {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  z-index: 2;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(3, 18, 32, 0.34);
  border: 1px solid rgba(170, 244, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hero-gallery__quote-text {
  margin: 0;
  color: rgba(249, 250, 251, 0.96);
  font-size: 13px;
  line-height: 1.75;
  font-style: italic;
  text-shadow: 0 4px 16px rgba(99, 231, 255, 0.18);
}

.hero-gallery__quote-author {
  margin: 8px 0 0;
  color: var(--cyan);
  font-size: 12px;
  font-style: italic;
  text-align: right;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 14px rgba(99, 231, 255, 0.22);
}

.hero-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08) translateY(18px);
  transition: opacity 0.9s ease, transform 1.2s ease;
}

.hero-gallery__slide.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hero-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.45));
}

.hero-gallery__slide--low .hero-gallery__image {
  transform: translateY(72px);
}

.hero-gallery__shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.11) 34%, transparent 52%),
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.06), transparent 32%);
  pointer-events: none;
}

.hero-gallery__meta {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(11, 15, 25, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(14px);
}

.hero-gallery__eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-gallery__title {
  color: var(--white);
  font-size: 18px;
  line-height: 1.4;
}

.hero-gallery__dots {
  display: none;
}

.hero-gallery__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(249, 250, 251, 0.32);
  cursor: pointer;
  transition: var(--transition);
}

.hero-gallery__dot.is-active {
  width: 34px;
  background: var(--gradient-blue);
  box-shadow: var(--glow-blue-sm);
}

.hero-gallery__accent {
  position: absolute;
  z-index: 2;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  background: rgba(11, 15, 25, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.hero-gallery__accent--top {
  top: 30px;
  left: -12px;
}

.hero-gallery__accent--bottom {
  right: -8px;
  bottom: 112px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about__bio {
  font-size: 17px;
  line-height: 1.9;
  color: var(--gray);
  margin-bottom: 40px;
}

.about__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.about-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 22px;
  text-align: left;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(11, 15, 25, 0.9));
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.about-link:hover {
  border-color: rgba(111, 220, 255, 0.45);
  box-shadow: var(--glow-blue-sm);
  transform: translateY(-4px);
}

.about-link__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.about-link__value {
  color: var(--white);
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}

.about__badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.badge:hover {
  border-color: var(--blue);
  box-shadow: var(--glow-blue-sm);
  transform: translateY(-3px);
}

.badge__icon {
  font-size: 20px;
}

.badge__text {
  font-weight: 600;
  color: var(--white);
  font-size: 15px;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skills__grid--clusters {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.skill-cluster {
  padding: 30px 28px 34px;
  background: linear-gradient(180deg, rgba(9, 24, 40, 0.94), rgba(7, 20, 33, 0.94));
  border: 1px solid rgba(143, 189, 226, 0.1);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.skill-cluster:hover {
  border-color: rgba(111, 220, 255, 0.28);
  box-shadow: var(--glow-blue-sm), 0 24px 52px rgba(0, 0, 0, 0.24);
  transform: translateY(-4px);
}

.skill-cluster__title {
  margin-bottom: 26px;
  color: rgba(249, 250, 251, 0.92);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-cluster__tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 18px;
}

.skill-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.skill-tool__logo {
  width: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), box-shadow var(--transition);
}

.skill-tool__logo--image {
  background: rgba(255, 255, 255, 0.98);
  padding: 10px;
}

.skill-tool__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-cluster:hover .skill-tool__logo {
  transform: translateY(-2px);
}

.skill-tool__name {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.45;
}

.skill-tool__logo--powerbi { background: linear-gradient(135deg, #f4b000, #ffdd57); color: #251400; }
.skill-tool__logo--tableau { background: linear-gradient(135deg, #1f6fd6, #69d7ff); }
.skill-tool__logo--excel { background: linear-gradient(135deg, #0d7d42, #8cffbe); color: #032614; }
.skill-tool__logo--looker { background: linear-gradient(135deg, #2f5fe7, #79b8ff); }
.skill-tool__logo--dax { background: linear-gradient(135deg, #144a94, #5fa8ff); }
.skill-tool__logo--sql { background: linear-gradient(135deg, #205493, #65d1ff); }
.skill-tool__logo--python { background: linear-gradient(135deg, #2d5ea8, #ffd24a); color: #0b1b33; }
.skill-tool__logo--pandas { background: linear-gradient(135deg, #150458, #ff6bcb); }
.skill-tool__logo--numpy { background: linear-gradient(135deg, #153b6a, #81d4ff); }
.skill-tool__logo--sklearn { background: linear-gradient(135deg, #f17c21, #ffd25a); color: #3e1c00; }
.skill-tool__logo--postgres { background: linear-gradient(135deg, #1e4e8c, #86cbff); }
.skill-tool__logo--mysql { background: linear-gradient(135deg, #00546b, #68d5ff); }
.skill-tool__logo--sqlserver { background: linear-gradient(135deg, #9a1930, #ff889b); }
.skill-tool__logo--bigquery { background: linear-gradient(135deg, #2254f4, #63e7ff); }
.skill-tool__logo--sqlite { background: linear-gradient(135deg, #003b57, #59ccff); }
.skill-tool__logo--powerquery { background: linear-gradient(135deg, #1f6f39, #c9ff4f); color: #163000; }
.skill-tool__logo--etl { background: linear-gradient(135deg, #0d4e61, #45d0ff); }
.skill-tool__logo--jupyter { background: linear-gradient(135deg, #f37521, #ffd2aa); color: #4a2200; }
.skill-tool__logo--github { background: linear-gradient(135deg, #111827, #6b7a93); }
.skill-tool__logo--vba { background: linear-gradient(135deg, #5d3fd3, #b89cff); }

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-blue);
  opacity: 0;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: rgba(111, 220, 255, 0.32);
  box-shadow: var(--glow-blue-sm);
  transform: translateY(-6px);
  background: var(--bg-card-hover);
}

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

.skill-card__icon {
  font-size: 36px;
  margin-bottom: 18px;
}

.skill-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.skill-card__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(111, 220, 255, 0.32);
  box-shadow: var(--glow-blue-sm);
  transform: translateY(-6px);
}

.project-card__img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__img {
  transform: scale(1.05);
}

.project-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  background: rgba(35, 120, 222, 0.14);
  color: var(--blue);
  border: 1px solid rgba(111, 220, 255, 0.22);
  border-radius: 100px;
}

.project-card__btn {
  align-self: flex-start;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat {
  padding: 24px;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  display: inline;
}

.stat__plus,
.stat__unit {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--blue);
}

.stat__label {
  display: block;
  font-size: 15px;
  color: var(--gray);
  margin-top: 8px;
  font-weight: 500;
}

/* ============================================================
   CONTACT CTA
   ============================================================ */
.contact-cta {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.contact-cta__glow {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(71, 177, 255, 0.14), transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-cta__inner {
  position: relative;
  z-index: 1;
}

.contact-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.contact-cta__desc {
  font-size: 17px;
  color: var(--gray);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.contact-cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--gray-border);
  padding: 60px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.logo--sm {
  font-size: 18px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--gray-dark);
  margin-top: 8px;
}

.footer__brand {
  text-align: center;
}

.footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--blue);
}

.footer__link svg {
  flex-shrink: 0;
}

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--gray-border);
  width: 100%;
  text-align: center;
}

.footer__bottom p {
  font-size: 13px;
  color: var(--gray-dark);
}

/* ============================================================
   MY ACTIVITY
   ============================================================ */
.activity {
  background: var(--bg-primary);
}

/* ── Heatmap ── */
.activity__heatmap-wrap {
  background: var(--bg-card);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 48px;
  backdrop-filter: blur(12px);
}

.activity__heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.activity__heatmap-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.activity__heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
}

.activity__legend-text {
  font-size: 12px;
  color: var(--gray-dark);
  margin: 0 4px;
}

.heatmap-square {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--blue);
}

.activity__heatmap {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 3px;
  overflow-x: auto;
}

.activity__heatmap .heatmap-cell {
  width: 100%;
  aspect-ratio: 1;
  min-width: 8px;
  border-radius: 3px;
  background: var(--blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity__heatmap .heatmap-cell:hover {
  transform: scale(1.8);
  box-shadow: var(--glow-blue-sm);
  z-index: 2;
  position: relative;
}

/* ── Activity Cards ── */
.activity__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.activity-card {
  display: flex;
  gap: 18px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.activity-card:hover {
  border-color: rgba(111, 220, 255, 0.32);
  box-shadow: var(--glow-blue-sm);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

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

.activity-card__icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.activity-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.activity-card__date {
  font-size: 12px;
  color: var(--gray-dark);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.activity-card__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ============================================================
   EXPERIENCE — TIMELINE
   ============================================================ */
.experience {
  background: var(--bg-secondary);
  border-top: 1px solid var(--gray-border);
  position: relative;
  overflow: hidden;
}

.experience__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(71, 177, 255, 0.1), transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--blue), rgba(111, 220, 255, 0.42), transparent);
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 40px 60px;
}

.timeline__item--right {
  margin-left: 50%;
}

.timeline__item--left {
  margin-right: 50%;
  text-align: right;
}

.timeline__dot {
  position: absolute;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--blue);
  box-shadow: 0 0 14px rgba(71, 177, 255, 0.45);
  z-index: 2;
}

.timeline__item--right .timeline__dot {
  left: -8px;
}

.timeline__item--left .timeline__dot {
  right: -8px;
}

.timeline__card {
  background: var(--bg-card);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
}

.timeline__card:hover {
  border-color: rgba(111, 220, 255, 0.32);
  box-shadow: var(--glow-blue-sm);
  transform: translateY(-4px);
}

/* Arrow connector */
.timeline__item--right .timeline__card::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--gray-border);
}

.timeline__item--left .timeline__card::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--gray-border);
}

.timeline__date {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.timeline__role {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}

.timeline__company {
  font-size: 14px;
  font-weight: 500;
  color: var(--cyan);
  display: block;
  margin-bottom: 12px;
}

.timeline__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline__item--left .timeline__tags {
  justify-content: flex-end;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero__sub { margin: 0 auto 36px; }

  .hero__socials { justify-content: center; }

  .hero__actions { justify-content: center; }

  .hero__visual { max-width: 430px; margin: 0 auto; }

  .hero-gallery__accent--top {
    left: 10px;
  }

  .hero-gallery__accent--bottom {
    right: 10px;
  }

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

  .skills__grid--clusters { grid-template-columns: 1fr; }

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

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

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

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(11, 15, 25, 0.97);
    backdrop-filter: blur(24px);
    padding: 100px 32px 40px;
    transition: var(--transition);
    border-left: 1px solid var(--gray-border);
    z-index: 999;
  }

  .nav.open { right: 0; }

  .nav__list {
    flex-direction: column;
    gap: 28px;
  }

  .nav__link { font-size: 18px; }

  .header__cta { display: none; }

  .skills__grid { grid-template-columns: 1fr; }

  .skill-cluster__tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .projects__grid { grid-template-columns: 1fr; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .hero { padding: 100px 0 60px; min-height: auto; }

  .hero__title { font-size: 32px; }

  .section__subtitle { margin-bottom: 40px; }

  .about__badges { gap: 12px; }

  .about__links {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .badge { padding: 10px 20px; }

  .footer__links { flex-direction: column; align-items: center; gap: 16px; }

  .activity__grid { grid-template-columns: 1fr; }

  .activity__heatmap {
    grid-template-columns: repeat(26, 1fr);
  }

  /* Timeline stacks vertically on mobile */
  .timeline__line {
    left: 20px;
  }

  .timeline__item {
    width: 100%;
    padding: 0 0 48px 52px;
    text-align: left;
  }

  .timeline__item--right {
    margin-left: 0;
  }

  .timeline__item--left {
    margin-right: 0;
    text-align: left;
  }

  .timeline__item--left .timeline__tags {
    justify-content: flex-start;
  }

  .timeline__dot {
    left: 12px !important;
    right: auto !important;
  }

  .timeline__item--left .timeline__card::before {
    right: auto;
    left: -8px;
    border-left: none;
    border-right: 8px solid var(--gray-border);
  }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }

  .hero__socials {
    gap: 14px;
    justify-content: center;
  }

  .hero-social {
    width: 58px;
    height: 58px;
  }

  .hero-gallery,
  .hero-gallery__frame {
    min-height: 430px;
  }

  .hero-gallery__backdrop {
    inset: 30px 10px 24px;
  }

  .hero-gallery__quote {
    top: 18px;
    left: 16px;
    right: 16px;
    padding: 14px 15px;
  }

  .hero-gallery__quote-text {
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-gallery__meta {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .hero-gallery__accent {
    font-size: 12px;
  }

  .hero-gallery__accent--top {
    top: 18px;
    left: 12px;
  }

  .hero-gallery__accent--bottom {
    right: 12px;
    bottom: 92px;
  }

  .hero-gallery__dots {
    top: 18px;
    right: 18px;
  }

  .hero__visual {
    max-width: 360px;
  }

  .skill-cluster {
    padding: 24px 18px 26px;
  }

  .skill-cluster__tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .skill-tool__logo {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 18px;
  }

  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; }
  .contact-cta__actions { flex-direction: column; align-items: center; }
  .contact-cta__actions .btn { width: 100%; max-width: 280px; }
}
