/* ============================================================
   KYLE WINTER — PERSONAL PORTFOLIO
   style-portfolio.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #07070f;
  --bg-2:      #0e0e1a;
  --bg-3:      #141425;
  --surface:   rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);

  --violet:    #7c3aed;
  --violet-light: #a78bfa;
  --violet-dim: rgba(124,58,237,0.15);
  --cyan:      #06b6d4;
  --cyan-dim:  rgba(6,182,212,0.12);
  --pink:      #ec4899;

  --grad:      linear-gradient(135deg, var(--violet), var(--cyan));
  --grad-text: linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);

  --text:      #f1f5f9;
  --text-dim:  #94a3b8;
  --text-dimmer: #64748b;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(124,58,237,0.2);

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

  --nav-h: 70px;
}

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

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

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

@media (hover: none) {
  body { cursor: auto; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: none; font-family: inherit; border: none; background: none; }
@media (hover: none) { button { cursor: pointer; } }
input, textarea, select { font-family: inherit; }

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

/* ── Custom Cursor ───────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--violet-light);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}

.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(124,58,237,0.6);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1),
              height 0.4s cubic-bezier(0.4,0,0.2,1),
              border-color 0.3s,
              top 0.08s linear,
              left 0.08s linear;
}

.cursor.hover  { width: 14px; height: 14px; background: var(--cyan); }
.cursor-ring.hover { width: 56px; height: 56px; border-color: rgba(6,182,212,0.5); }

/* ── Typography ──────────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
}

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

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
section + section { border-top: 1px solid var(--border); }
#skills, #experience { background: var(--bg-2); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  white-space: nowrap;
  cursor: none;
  position: relative;
  overflow: hidden;
}

@media (hover: none) { .btn { cursor: pointer; } }

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.5);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--violet-light);
  box-shadow: 0 4px 20px rgba(124,58,237,0.2);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; }

/* ── Section Header ──────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-light);
  background: var(--violet-dim);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 2.5rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Scroll Reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1),
              transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left.visible { opacity: 1; transform: none; }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1),
              transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal-right.visible { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.5s; }
.reveal-stagger.visible > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: 0.55s; }

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}
.nav-link-item:hover { color: var(--text); background: var(--surface); }
.nav-link-item.active {
  color: var(--violet-light);
  background: var(--violet-dim);
  border: 1px solid rgba(124,58,237,0.25);
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
  cursor: none;
}
@media (hover: none) { .hamburger { cursor: pointer; } }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  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; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(10,10,20,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 999;
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.nav-mobile.open { transform: translateY(0); }

.nav-mobile .nav-link-item {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: block;
}
.nav-mobile .nav-link-item:hover { background: var(--surface); color: var(--text); }

.nav-mobile-cta {
  margin-top: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

/* Mesh gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: blobFloat 8s ease-in-out infinite;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: var(--violet);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: var(--cyan);
  bottom: -100px; right: -50px;
  animation-delay: -3s;
}
.hero-blob-3 {
  width: 300px; height: 300px;
  background: var(--pink);
  top: 40%; right: 20%;
  animation-delay: -5s;
  opacity: 0.12;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Grid / noise overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

/* Left column */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--violet-light);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1.5px;
  background: var(--violet-light);
}

.hero-h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-typing-wrap {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  min-height: 2em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-typing-prefix { color: var(--text-dim); }
.typing-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--violet-light);
  margin-left: 2px;
  animation: cursorBlink 0.75s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Right column — avatar card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  animation: heroCardFloat 6s ease-in-out infinite;
}

@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}

.hero-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-avatar-bg {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.hero-avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-avatar-inner img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.hero-card-name {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.hero-card-role {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.hero-badge.violet { background: var(--violet-dim); border-color: rgba(124,58,237,0.3); color: var(--violet-light); }
.hero-badge.cyan { background: var(--cyan-dim); border-color: rgba(6,182,212,0.3); color: var(--cyan); }

.hero-card-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.hero-stat {
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  border: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: block;
  margin-top: 0.15rem;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dimmer);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll i { font-size: 1rem; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Impact strip ─────────────────────────────────────────────── */
.impact-strip {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}

.impact-track {
  display: flex;
  gap: 3rem;
  padding: 1.2rem 0;
  width: max-content;
  animation: trackScroll 24s linear infinite;
  white-space: nowrap;
}
.impact-track span {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  flex-shrink: 0;
}
.impact-track span:nth-child(odd) { color: var(--violet-light); }
.impact-track span::before {
  content: '·';
  margin-right: 3rem;
  color: var(--border-strong);
}
.impact-track span:first-child::before { display: none; }

@keyframes trackScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════════ */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-avatar {
  width: 70%;
  object-fit: contain;
  opacity: 0.95;
}

.about-img-frame::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg-3), transparent);
}

.about-badge {
  position: absolute;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow);
}
.about-badge i { font-size: 1.1rem; }
.about-badge-text { font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.about-badge-sub { font-size: 0.72rem; color: var(--text-dim); }

.about-badge--location {
  bottom: 2rem; left: -1.5rem;
}
.about-badge--location i { color: var(--cyan); }

.about-badge--open {
  top: 2rem; right: -1.5rem;
}
.about-badge--open i { color: #22c55e; }
.about-badge--open::before {
  content: '';
  position: absolute;
  top: 12px; left: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseGreen 2s ease-in-out infinite;
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

/* About text */
.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--violet-light);
  margin-bottom: 0.75rem;
}

.about-h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.about-p {
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.about-p:last-of-type { margin-bottom: 1.75rem; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.about-fact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.about-fact i {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--violet-dim);
  color: var(--violet-light);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.about-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   SKILLS
   ══════════════════════════════════════════════════════════════ */
#skills { background: var(--bg-2); }

.skills-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skills-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.skills-cat:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.skills-cat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.skills-cat-icon.violet { background: var(--violet-dim); color: var(--violet-light); }
.skills-cat-icon.cyan   { background: var(--cyan-dim);   color: var(--cyan); }
.skills-cat-icon.pink   { background: rgba(236,72,153,0.12); color: var(--pink); }

.skills-cat-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.skill-item {
  margin-bottom: 1.1rem;
}
.skill-item:last-child { margin-bottom: 0; }

.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.skill-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
}
.skill-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--violet-light);
}

.skill-bar-bg {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--grad);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.skill-bar-fill.animated { width: var(--skill-pct, 0%); }

/* ══════════════════════════════════════════════════════════════
   WORK / PROJECTS
   ══════════════════════════════════════════════════════════════ */
#work { background: var(--bg); }

.work-filter {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: none;
}
@media (hover: none) { .filter-btn { cursor: pointer; } }
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1),
              border-color var(--transition),
              box-shadow var(--transition);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.project-card:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(124,58,237,0.15);
}

.project-card[data-category="demo"] { --card-accent: var(--cyan); }
.project-card[data-category="live"] { --card-accent: #22c55e; }

/* Screenshot */
.project-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-3);
}
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.project-card:hover .project-thumb img {
  transform: scale(1.06) translateY(-2%);
}

/* Overlay on hover */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(7,7,15,0.9));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }

.project-overlay-btns {
  display: flex;
  gap: 0.5rem;
}

/* Badge */
.project-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(10,10,20,0.7);
}
.project-badge.live  { color: #4ade80; border-color: rgba(74,222,128,0.3); }
.project-badge.demo  { color: var(--cyan); border-color: rgba(6,182,212,0.3); }
.project-badge.indev { color: #facc15; border-color: rgba(250,204,21,0.3); }
.project-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Card body */
.project-body {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tag {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dimmer);
}

/* Featured project card */
.project-card.featured {
  grid-column: span 2;
}
.project-card.featured .project-thumb {
  height: 300px;
}
.project-card.featured .project-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}
.project-card.featured .project-title {
  font-size: 1.4rem;
}

/* Demo grid placeholder thumbnails */
.project-thumb-demo {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-3);
}
.project-thumb-demo i {
  font-size: 2.5rem;
  opacity: 0.4;
}
.project-thumb-demo span {
  font-size: 0.85rem;
  color: var(--text-dimmer);
  font-weight: 500;
}

/* Hidden items (filter) */
.project-card.hidden {
  display: none;
}

/* ══════════════════════════════════════════════════════════════
   EXPERIENCE
   ══════════════════════════════════════════════════════════════ */
#experience { background: var(--bg-2); }

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  align-items: start;
}

.exp-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.exp-sidebar-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.exp-sidebar-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 0.75rem;
}

.exp-sidebar-p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-light);
}
.timeline-item.current .timeline-dot {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(6,182,212,0.4);
}
.timeline-item.current .timeline-dot::after {
  background: var(--cyan);
  animation: dotPulse 2s ease-in-out infinite;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}
.timeline-card:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.timeline-role {
  font-size: 1rem;
  font-weight: 700;
}

.timeline-period {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--violet-light);
  background: var(--violet-dim);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

.timeline-company {
  font-size: 0.88rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline-location {
  font-size: 0.82rem;
  color: var(--text-dimmer);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.timeline-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.timeline-bullet::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--violet-light);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.timeline-tag {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--violet-dim);
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--violet-light);
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
#contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Contact cards grid */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 1.5rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
}
a.contact-card:hover {
  border-color: var(--violet);
  background: rgba(124,58,237,0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.15);
}
.contact-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}
.contact-card-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}
.contact-card-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-card-arrow {
  font-size: 0.75rem;
  color: var(--text-dimmer);
  transition: transform var(--transition), color var(--transition);
}
a.contact-card:hover .contact-card-arrow {
  transform: translateX(4px);
  color: var(--violet-light);
}
.contact-download-wrap {
  text-align: center;
  padding-top: 0.5rem;
}
.contact-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.75rem;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 0 35px rgba(124,58,237,0.35);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.01em;
}
.contact-download-btn:hover {
  opacity: 0.88;
  transform: translateY(-3px);
  box-shadow: 0 0 55px rgba(124,58,237,0.55);
}

/* Left — info */
.contact-info-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.contact-info-desc {
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item-icon.violet { background: var(--violet-dim); color: var(--violet-light); }
.contact-item-icon.cyan   { background: var(--cyan-dim);   color: var(--cyan); }
.contact-item-icon.green  { background: rgba(34,197,94,0.12); color: #4ade80; }
.contact-item-icon.amber  { background: rgba(245,158,11,0.12); color: #fbbf24; }

.contact-item-label {
  font-size: 0.78rem;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.contact-item-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
.contact-item-value:hover { color: var(--violet-light); }

.contact-socials {
  display: flex;
  gap: 0.75rem;
}
.social-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: var(--transition);
}
.social-pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.social-pill i { font-size: 1rem; }
.social-pill.instagram:hover { color: #e879f9; border-color: rgba(232,121,249,0.3); }
.social-pill.facebook:hover  { color: #60a5fa; border-color: rgba(96,165,250,0.3); }
.social-pill.whatsapp:hover  { color: #4ade80; border-color: rgba(74,222,128,0.3); }

/* Right — form */
.contact-form-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form-card::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--grad);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -2.5rem -2.5rem 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dimmer); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  background: var(--grad);
  color: #fff;
  cursor: none;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
@media (hover: none) { .form-submit { cursor: pointer; } }
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.5);
}
.form-submit:disabled { opacity: 0.6; pointer-events: none; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
  color: #4ade80;
}
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--text-dim); font-size: 0.9rem; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dimmer);
}
.footer-copy a { color: var(--violet-light); }
.footer-copy a:hover { color: var(--text); }

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-link {
  font-size: 0.85rem;
  color: var(--text-dimmer);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--text); }

/* ── WhatsApp FAB ─────────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  z-index: 900;
  transition: var(--transition);
  animation: fabPulse 3s ease-in-out infinite;
}
.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.5);
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 36px rgba(37,211,102,0.6); }
}

/* ── Back to Top ──────────────────────────────────────────────── */
.btt {
  position: fixed;
  bottom: 2rem; right: 6rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  cursor: none;
}
@media (hover: none) { .btt { cursor: pointer; } }
.btt.visible { opacity: 1; pointer-events: auto; }
.btt:hover {
  background: var(--violet-dim);
  border-color: var(--violet);
  color: var(--violet-light);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .skills-categories { grid-template-columns: 1fr 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .project-card.featured .project-body { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links-desktop { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn { display: none; }

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

  .skills-categories { grid-template-columns: 1fr; }

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

  .timeline { padding-left: 1.75rem; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .about-badge { display: none; }
  .about-facts { grid-template-columns: 1fr; }

  .wa-fab { bottom: 1.5rem; right: 1.5rem; }
  .btt { bottom: 1.5rem; right: 5.25rem; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .contact-socials { flex-wrap: wrap; }
  .contact-cards-grid { grid-template-columns: 1fr; }
}

/* ── Utility ──────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
