/* ================================================================
   SAYAN MANDAL PORTFOLIO v2 — styles.css
   Dark-only · 3D · Cyberpunk-Engineer Aesthetic
   ================================================================ */

/* ---- TOKENS ---- */
:root {
  --accent:       #00f5d4;
  --accent2:      #7b2fff;
  --accent3:      #ff2d6d;
  --accent-glow:  rgba(0, 245, 212, 0.15);
  --bg:           #080811;
  --bg2:          #0d0d1a;
  --bg3:          #12122a;
  --surface:      #161626;
  --surface2:     #1e1e35;
  --border:       rgba(0, 245, 212, 0.1);
  --border2:      rgba(255, 255, 255, 0.06);
  --text:         #e2e2f0;
  --text-muted:   #7a7a9d;
  --text-dim:     #3d3d5c;
  --white:        #ffffff;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --radius:       14px;
  --radius-lg:    22px;
  --shadow:       0 12px 48px rgba(0,0,0,0.6);
  --shadow-accent:0 0 40px rgba(0, 245, 212, 0.2);
  --t:            0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:        68px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- NOISE OVERLAY ---- */
.noise {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px;
}

/* ---- CANVAS ---- */
#bg-canvas {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ---- CURSOR ---- */
.cursor-dot, .cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid var(--accent);
  opacity: 0.45;
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}
.cursor-ring.expand { width: 52px; height: 52px; opacity: 0.18; }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---- CONTAINER ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- SECTION ---- */
.section { position: relative; z-index: 1; padding: 6rem 0; }
.section-header { margin-bottom: 3.5rem; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: var(--t);
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn--primary {
  background: var(--accent);
  color: #080811;
  box-shadow: 0 0 24px rgba(0,245,212,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 48px rgba(0,245,212,0.55);
}
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}
.btn--full { width: 100%; justify-content: center; }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ================================================================
   HEADER
   ================================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--t), box-shadow var(--t);
}
#header.scrolled {
  background: rgba(8, 8, 17, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.nav__logo span { color: var(--accent); }
.nav__list { display: flex; align-items: center; gap: 0.1rem; }
.nav__link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  transition: var(--t);
  letter-spacing: 0.05em;
}
.nav__link:hover, .nav__link.active-link {
  color: var(--accent);
  background: rgba(0,245,212,0.07);
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t);
}

/* ================================================================
   HOME
   ================================================================ */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}
.home__container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  padding: 3rem 1.5rem;
}
.home__greeting {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  letter-spacing: 0.06em;
}
.home__name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.home__name span {
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
  display: block;
}
.home__role {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  min-height: 2rem;
}
.home__role span, #typed-text { color: var(--accent); font-weight: 700; }
.home__sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.home__btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.home__socials { display: flex; gap: 0.75rem; }
.home__socials a {
  width: 40px; height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  font-size: 1rem;
  background: var(--surface);
  transition: var(--t);
}
.home__socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,245,212,0.2);
}

/* ---- Avatar scene (3D orbiting) ---- */
.home__visual { display: flex; justify-content: center; }
/* ================================================================
   ORBIT RINGS & ICONS
   ================================================================ */

.avatar-scene {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Static dashed rings */
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 245, 212, 0.15);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.orb-ring-1 { width: 240px; height: 240px; }
.orb-ring-2 { width: 330px; height: 330px; border-color: rgba(0,245,212,0.10); }
.orb-ring-3 { width: 420px; height: 420px; border-color: rgba(0,245,212,0.06); }

/* Rotating tracks — icons sit on these */
.orb-track {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.orb-track-1 {
  width: 240px; height: 240px;
  animation: spin-cw 14s linear infinite;
}
.orb-track-2 {
  width: 330px; height: 330px;
  animation: spin-ccw 20s linear infinite;
}
.orb-track-3 {
  width: 420px; height: 420px;
  animation: spin-cw 26s linear infinite;
}

@keyframes spin-cw  { from { transform: translate(-50%,-50%) rotate(0deg);   } to { transform: translate(-50%,-50%) rotate(360deg);  } }
@keyframes spin-ccw { from { transform: translate(-50%,-50%) rotate(0deg);   } to { transform: translate(-50%,-50%) rotate(-360deg); } }

/* Icon bubbles — counter-rotate so icons stay upright */
.orb-icon {
  position: absolute;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(13,13,26,0.9);
  border: 1px solid rgba(0,245,212,0.2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 12px rgba(0,245,212,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.orb-icon img { width: 22px; height: 22px; object-fit: contain; }
.orb-icon:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,245,212,0.4);
}

/* Track-1 icons — counter rotate & position on ring circumference */
.orb-track-1 .orb-icon {
  animation: spin-ccw 14s linear infinite; /* counter-rotate to stay upright */
}
.orb-icon-1 { top: -19px; left: 50%; transform: translateX(-50%); }
.orb-icon-2 { bottom: -19px; left: 50%; transform: translateX(-50%); }
.orb-icon-3 { left: -19px; top: 50%; transform: translateY(-50%); }

/* Track-2 icons — counter rotate */
.orb-track-2 .orb-icon {
  animation: spin-cw 20s linear infinite;
}
.orb-icon-4 { top: -19px; left: 50%; transform: translateX(-50%); }
.orb-icon-5 { bottom: -19px; left: 50%; transform: translateX(-50%); }
.orb-icon-6 { right: -19px; top: 50%; transform: translateY(-50%); }
.orb-icon-7 { left: -19px; top: 50%; transform: translateY(-50%); }

/* Track-3 icons — counter rotate */
.orb-track-3 .orb-icon {
  animation: spin-ccw 26s linear infinite;
}
.orb-icon-8  { top: -19px; left: 50%; transform: translateX(-50%); }
.orb-icon-9  { bottom: -19px; left: 50%; transform: translateX(-50%); }
.orb-icon-10 { right: -19px; top: 50%; transform: translateY(-50%); }

/* Avatar core stays same */
.avatar-core {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,212,0.15) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
  z-index: 0;
}
.avatar-img {
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow:
    0 0 0 6px rgba(0,245,212,0.06),
    0 0 40px rgba(0,245,212,0.25);
  position: relative;
  z-index: 1;
  background: var(--surface);
}
.avatar-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.avatar-hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  background: rgba(8,8,17,0.85);
  border: 1px solid rgba(0,245,212,0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  z-index: 3;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.hud-tl { top: -8px; left: -50px; }
.hud-br { bottom: -8px; right: -55px; }

/* Responsive */
@media (max-width: 900px) {
  .avatar-scene { width: 300px; height: 300px; }
  .orb-ring-1 { width: 170px; height: 170px; }
  .orb-ring-2 { width: 235px; height: 235px; }
  .orb-ring-3 { width: 300px; height: 300px; }
  .orb-track-1 { width: 170px; height: 170px; }
  .orb-track-2 { width: 235px; height: 235px; }
  .orb-track-3 { width: 300px; height: 300px; }
  .avatar-img { width: 120px; height: 120px; }
  .avatar-glow { width: 150px; height: 150px; }
  .orb-icon { width: 32px; height: 32px; }
  .orb-icon img { width: 18px; height: 18px; }
}

@media (max-width: 480px) {
  .avatar-scene { width: 240px; height: 240px; }
  .orb-ring-1 { width: 136px; height: 136px; }
  .orb-ring-2 { width: 188px; height: 188px; }
  .orb-ring-3 { width: 240px; height: 240px; }
  .orb-track-1 { width: 136px; height: 136px; }
  .orb-track-2 { width: 188px; height: 188px; }
  .orb-track-3 { width: 240px; height: 240px; }
  .avatar-img { width: 96px; height: 96px; }
  .avatar-glow { width: 120px; height: 120px; }
  .orb-icon { width: 28px; height: 28px; }
  .orb-icon img { width: 16px; height: 16px; }
  .hud-tl { left: -35px; }
  .hud-br { right: -40px; }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--text-dim);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 7px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-wheel 1.8s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.3; }
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ================================================================
   ABOUT
   ================================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}
.about__img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.about__img-frame img { width: 100%; object-fit: cover; display: block; }
.img-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--accent);
  border-style: solid;
}
.img-corner--tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.img-corner--br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transition: var(--t);
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover { border-color: rgba(0,245,212,0.25); transform: translateY(-3px); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
}
.stat-plus { font-size: 1.1rem; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono); display: block; margin-top: 0.3rem; }
.about__text { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; }
.about__text strong { color: var(--text); }
.about__text em { color: var(--accent); font-style: normal; font-weight: 700; }
.about__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 2rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  transition: var(--t);
  letter-spacing: 0.04em;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ================================================================
   TECH MARQUEE
   ================================================================ */
.tech-marquee {
  overflow: hidden;
  margin-bottom: 3rem;
  mask-image: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
}
.tech-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.tech-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tech-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  min-width: 80px;
  transition: var(--t);
  cursor: default;
}
.tech-icon-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,245,212,0.15);
}
.tech-icon-item img { width: 42px; height: 42px; object-fit: contain; }
.tech-icon-item span {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* ================================================================
   SKILLS TABS
   ================================================================ */
.skills__tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.skills__tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  border: 1px solid var(--border2);
  color: var(--text-muted);
  background: var(--surface);
  transition: var(--t);
  letter-spacing: 0.06em;
}
.skills__tab:hover { color: var(--accent); border-color: rgba(0,245,212,0.3); }
.skills__tab.active {
  background: var(--accent);
  color: #080811;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,245,212,0.3);
  font-weight: 700;
}
.skills__panel { display: none; }
.skills__panel.active { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }

.skill-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  transform: scaleY(0);
  transition: var(--t);
  border-radius: 0 2px 2px 0;
}
.skill-card:hover { border-color: rgba(0,245,212,0.2); transform: translateX(4px); }
.skill-card:hover::before { transform: scaleY(1); }
.skill-card__icon-wrap {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.skill-card__icon-wrap img { width: 100%; height: 100%; object-fit: contain; }
.skill-icon-fa { font-size: 2rem; color: var(--accent); }
.skill-card__body { flex: 1; min-width: 0; }
.skill-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skill-bar {
  width: 100%;
  height: 4px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.skill-fill {
  height: 100%;
  width: var(--pct);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 99px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex; align-items: center; justify-content: flex-end;
}
.skill-fill.animate { transform: scaleX(1); }
.skill-pct {
  position: absolute;
  right: -28px;
  top: -20px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s 0.8s;
}
.skill-fill.animate .skill-pct { opacity: 1; }

/* ================================================================
   QUALIFICATION — SIDE BY SIDE
   ================================================================ */

/* Remove old tab styles if present */
.qual__tabs,
.qual__tab,
.qual__content { all: unset; }

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

/* Vertical divider */
.qual__divider {
  width: 1px;
  min-height: 500px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0,245,212,0.3) 15%,
    rgba(0,245,212,0.3) 85%,
    transparent
  );
}

/* Column header */
.qual__column-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border2);
}
.qual__column-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(0,245,212,0.08);
  border: 1px solid rgba(0,245,212,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.qual__column-icon--exp {
  background: rgba(123,47,255,0.08);
  border-color: rgba(123,47,255,0.25);
  color: var(--accent2);
}
.qual__column-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    rgba(0,245,212,0.08) 90%,
    transparent
  );
}
.timeline__item {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline__item:last-child { margin-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -2rem;
  top: 1.1rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  box-shadow: 0 0 10px rgba(0,245,212,0.35);
  z-index: 1;
}
.timeline__dot--pulse {
  border-color: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%  { box-shadow: 0 0 0 0   rgba(34,197,94,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0);   }
  100%{ box-shadow: 0 0 0 0   rgba(34,197,94,0);   }
}

/* Cards */
.timeline__card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--t);
}
.timeline__card:hover {
  border-color: rgba(0,245,212,0.2);
  transform: translateX(4px);
  box-shadow: -4px 0 20px rgba(0,245,212,0.05);
}
.timeline__card--active {
  border-color: rgba(34,197,94,0.2);
  background: rgba(34,197,94,0.02);
}
.timeline__card--active:hover {
  border-color: rgba(34,197,94,0.35);
  box-shadow: -4px 0 20px rgba(34,197,94,0.05);
}

.timeline__card h3 {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.tl__year {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tl__year--active { color: #22c55e; }
.tl__live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink-dot 1.2s ease-in-out infinite;
}
.tl__org {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tl__org i { color: var(--accent2); }
.tl__desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}
.tl__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.tl__tags span {
  font-size: 0.64rem;
  font-family: var(--font-mono);
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text-muted);
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.tl__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  border: 1px solid rgba(0,245,212,0.2);
  padding: 0.28rem 0.7rem;
  border-radius: 4px;
  transition: var(--t);
  align-self: flex-start;
  margin-top: 0.15rem;
}
.tl__link:hover {
  background: rgba(0,245,212,0.07);
  border-color: var(--accent);
}
.tl__link--cta {
  background: rgba(34,197,94,0.07);
  border-color: rgba(34,197,94,0.3);
  color: #22c55e;
}
.tl__link--cta:hover {
  background: rgba(34,197,94,0.14);
  border-color: #22c55e;
}

/* Responsive */
@media (max-width: 768px) {
  .qual__grid {
    grid-template-columns: 1fr;
    gap: 3rem 0;
  }
  .qual__divider {
    width: 100%;
    min-height: unset;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(0,245,212,0.3) 15%,
      rgba(0,245,212,0.3) 85%,
      transparent
    );
  }
}

/* ================================================================
   PROJECTS (no image — icon + text cards)
   ================================================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(0,245,212,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: var(--t);
}
.project-card:hover {
  border-color: rgba(0,245,212,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,245,212,0.08);
}
.project-card:hover::before { opacity: 1; }
.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: rgba(var(--icon-color, 0,245,212), 0.1);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--icon-color, var(--accent));
  flex-shrink: 0;
}
.project-card__links { display: flex; gap: 0.5rem; }
.project-card__links a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--bg2);
  transition: var(--t);
}
.project-card__links a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.project-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
/* ---- PROJECT LINKS FIX ---- */
.project-card {
  transform-style: flat;
}

.project-card__links {
  position: relative;
  z-index: 100;
}

.project-card__links a {
  position: relative;
  z-index: 100;
  pointer-events: all !important;
  cursor: pointer !important;
}
.project-card__desc {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.7;
  flex: 1;
}
.project-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-card__tags span {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* ================================================================
   CONTACT — UPDATED
   ================================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

/* Info side */
.contact__intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}
.contact__items {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  transition: var(--t);
}
.contact__item:hover {
  border-color: rgba(0,245,212,0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 24px rgba(0,245,212,0.06);
}
.contact__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(0,245,212,0.08);
  border: 1px solid rgba(0,245,212,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact__label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.15rem;
}
.contact__val { color: var(--text); font-size: 0.86rem; }
a.contact__val:hover { color: var(--accent); }

/* Status badge */
.contact__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0,245,212,0.06);
  border: 1px solid rgba(0,245,212,0.2);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  margin-bottom: 1.5rem;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: blink-dot 2s ease-in-out infinite;
}
@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.status-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* Socials */
.contact__socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  background: var(--surface);
  transition: var(--t);
  letter-spacing: 0.04em;
}
.social-pill:hover {
  color: var(--accent);
  border-color: rgba(0,245,212,0.4);
  background: rgba(0,245,212,0.05);
  transform: translateY(-2px);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.contact__form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  position: relative;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1rem 0.75rem;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  outline: none;
  resize: vertical;
  transition: var(--t);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(0,245,212,0.03);
  box-shadow: 0 0 0 3px rgba(0,245,212,0.07);
}
.form-group label {
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  pointer-events: none;
  transition: var(--t);
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -0.6rem;
  left: 0.75rem;
  font-size: 0.65rem;
  color: var(--accent);
  background: var(--surface);
  padding: 0 0.35rem;
}
.optional { color: var(--text-dim); font-size: 0.65rem; }
.form-line { display: none; } /* reserved for future underline style */

/* Feedback message */
.form-feedback {
  display: none;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: center;
}
.form-feedback.success {
  display: block;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
}
.form-feedback.error {
  display: block;
  background: rgba(255,45,109,0.08);
  border: 1px solid rgba(255,45,109,0.3);
  color: #ff2d6d;
}

.form-note {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 1.75rem; }
}
/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border2);
  padding: 2rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy { color: var(--text-muted); font-size: 0.82rem; font-family: var(--font-mono); }
.footer__copy strong { color: var(--accent); }
.footer__copy code { color: var(--accent2); background: var(--surface); padding: 0.1rem 0.4rem; border-radius: 3px; font-size: 0.8rem; }
.heart { color: var(--accent3); }
.footer__links { display: flex; gap: 1.25rem; }
.footer__links a { color: var(--text-dim); font-size: 0.8rem; font-family: var(--font-mono); transition: var(--t); }
.footer__links a:hover { color: var(--accent); }

/* Scroll up */
.scroll-up {
  position: fixed;
  bottom: 2rem; right: 1.5rem;
  width: 42px; height: 42px;
  border-radius: 6px;
  background: var(--accent);
  color: #080811;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--t);
  box-shadow: 0 4px 20px rgba(0,245,212,0.4);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.scroll-up.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-up:hover { transform: translateY(-4px); }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: var(--t);
  box-shadow: 0 0 40px rgba(0,245,212,0.2);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 768px) {
  .nav__list {
    position: fixed; inset: 0;
    background: rgba(8,8,17,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
  }
  .nav__list.open { transform: translateX(0); }
  .nav__link { font-size: 1.3rem; padding: 0.75rem 2rem; }
  .nav__hamburger { display: flex; }

  .home__container { grid-template-columns: 1fr; text-align: center; gap: 3rem; padding-top: 2rem; }
  .home__btns, .home__socials { justify-content: center; }
  .home__visual { order: -1; }
  .avatar-scene { width: 240px; height: 240px; }
  .avatar-img { width: 140px; height: 140px; }
  .orbit-3 { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .qual__tabs { flex-direction: column; }
  .projects__grid { grid-template-columns: 1fr; }
  .skill-cards { grid-template-columns: 1fr; }
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }