/* ============================================================
   VELTRONFX – Terminal Professional Theme
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000;
  --white: #fff;
  --gray: #666;
  --dim: #1e1e1e;
  --glow-soft: rgba(255,255,255,0.12);
  --glass: rgba(4,4,4,0.72);
  --glass-hover: rgba(8,8,8,0.88);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.35);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'JetBrains Mono', 'Courier New', monospace;
  --font-ui: 'Inter', sans-serif;
  --scanline: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
}

html { scroll-behavior: smooth; }

body {
  background: #000;
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

/* ── LOADING SCREEN ──────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 99999;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
              visibility 0.6s cubic-bezier(0.4,0,0.2,1);
}
#loader.exit {
  opacity: 0; visibility: hidden;
}
#loader.exit .ld-panel.ld-left  { transform: rotate(-8deg) translateX(-120%); }
#loader.exit .ld-panel.ld-right { transform: rotate(-8deg) translateX(120%);  }

/* side panels */
.ld-panel {
  position: absolute; top: -20%; bottom: -20%; width: 55%;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.7s cubic-bezier(0.76,0,0.24,1) 0.1s;
}
.ld-left  { left: -20%;  transform: rotate(-8deg); background: rgba(255,255,255,0.02); border-right: 1px solid rgba(255,255,255,0.1); }
.ld-right { right: -20%; transform: rotate(-8deg); background: rgba(255,255,255,0.02); border-left:  1px solid rgba(255,255,255,0.1); }

/* center */
.ld-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  width: 360px;
  transition: opacity 0.3s ease; 
}
#loader.exit .ld-center { opacity: 0; }

/* stacked tilted rects */
.ld-rects { position: relative; width: 220px; height: 70px; }
.ld-rect {
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.15);
}
.r1 { transform: rotate(-5deg);  border-color: rgba(255,255,255,0.08); }
.r2 { transform: rotate(2.5deg); border-color: rgba(255,255,255,0.18); }
.r3 { transform: rotate(-1deg);  border-color: rgba(255,255,255,0.3);
      box-shadow: 0 0 20px rgba(255,255,255,0.05); }

/* name */
.ld-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: 10px; color: white;
  text-shadow: 0 0 30px rgba(255,255,255,0.35);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

/* bar */
.ld-bar-track {
  width: 100%; height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.ld-bar-fill {
  height: 100%; width: 0; background: white;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
  animation: ldBar 1.4s cubic-bezier(0.4,0,0.2,1) 0.2s forwards;
}
@keyframes ldBar {
  0%   { width: 0%; }
  40%  { width: 45%; }
  70%  { width: 78%; }
  100% { width: 100%; }
}

/* status */
.ld-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 3px;
  color: rgba(255,255,255,0.35);
  animation: ldStatus 1.4s steps(1) 0.2s forwards;
}
@keyframes ldStatus {
  0%   { content: ''; }
  0%   { opacity: 1; }
  33%  { opacity: 1; }
  66%  { opacity: 1; }
  100% { opacity: 0.6; }
}

/* corners */
.ld-corner { position: absolute; width: 20px; height: 20px; z-index: 3; }
.lc-tl { top: 14px; left: 14px;  border-top: 1px solid rgba(255,255,255,0.35); border-left:  1px solid rgba(255,255,255,0.35); }
.lc-tr { top: 14px; right: 14px; border-top: 1px solid rgba(255,255,255,0.35); border-right: 1px solid rgba(255,255,255,0.35); }
.lc-bl { bottom: 14px; left: 14px;  border-bottom: 1px solid rgba(255,255,255,0.35); border-left:  1px solid rgba(255,255,255,0.35); }
.lc-br { bottom: 14px; right: 14px; border-bottom: 1px solid rgba(255,255,255,0.35); border-right: 1px solid rgba(255,255,255,0.35); }

/* bottom strip */
.ld-foot {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 3px;
  color: rgba(255,255,255,0.18); z-index: 3;
}

/* scanlines on loader */
#loader::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px);
}

/* ── PAGE TRANSITION ─────────────────────────────────────────── */
html { animation: pageFadeIn 0.5s ease forwards; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── NOISE + SCANLINES ──────────────────────────────────────── */
.noise {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
}
/* Global scanline overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
  background: var(--scanline);
  opacity: 0.4;
}

/* ── CURSOR ─────────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 5px; height: 5px;
  background: white; border-radius: 50%;
  pointer-events: none; z-index: 10001;
  transform: translate(-50%, -50%);
}
.cursor-follower {
  position: fixed;
  width: 26px; height: 26px;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  animation: triangleSpin 5s linear infinite;
}
.cursor-follower svg {
  width: 100%; height: 100%;
  display: block;
}
@keyframes triangleSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: translateY(-100%);
  animation: navDrop 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}
@keyframes navDrop { to { transform: translateY(0); } }

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon svg { display: block; }
.logo-text {
  font-family: var(--font-body);
  font-size: 13px; letter-spacing: 4px;
  color: white;
}

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-link {
  font-size: 10px; letter-spacing: 3px; color: var(--gray);
  text-decoration: none; position: relative;
  font-family: var(--font-body);
  transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active .nav-indicator {
  display: block; width: 100%; height: 1px;
  background: white; margin-top: 4px;
  box-shadow: 0 0 6px rgba(255,255,255,0.5);
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: white;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-link:hover::after { width: 100%; }

.btn-hire {
  font-size: 10px; letter-spacing: 3px;
  color: white; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 20px;
  font-family: var(--font-body);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex; align-items: center; gap: 8px;
}
.btn-hire:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
/* Fade bottom edge of hero into next section */
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 160px; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
}

/* ── GLOBAL VIDEO BACKGROUND ────────────────────────────────── */
.global-video-bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}
.global-video-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.60);
  z-index: -1;
  pointer-events: none;
}

.hero-left {
  position: relative; z-index: 3;
  padding: 0 0 0 48px;
  margin-top: 80px;
  max-width: 520px;
}

.hero-label {
  font-size: 10px; letter-spacing: 3px;
  color: var(--gray); margin-bottom: 24px;
  font-family: var(--font-body);
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
}

.hero-title {
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(72px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

.title-line {
  display: block; overflow: hidden;
  opacity: 0; transform: translateX(-60px);
  animation: slideRight 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: var(--delay, 0s);
}
.title-line:nth-child(2) { margin-left: 4px; }
.title-line:nth-child(3) { margin-left: 8px; }

@keyframes slideRight {
  to { opacity: 1; transform: translateX(0); }
}

.hero-sub {
  font-size: 12px; line-height: 1.8; color: var(--gray);
  margin-bottom: 40px; font-family: var(--font-body);
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.8s forwards;
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 14px;
}

.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 1s forwards;
}

.btn-primary {
  padding: 14px 24px; background: transparent; color: white;
  text-decoration: none; font-size: 10px; letter-spacing: 3px;
  font-family: var(--font-body); font-weight: 500;
  display: inline-flex; align-items: center;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.4);
  transition: box-shadow 0.3s;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.06);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
}
.btn-text-bg {
  position: relative; z-index: 1;
  color: white; white-space: nowrap; pointer-events: none;
}
.btn-text-fg {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 0 24px;
  color: white; white-space: nowrap;
  font-size: 10px; letter-spacing: 3px; font-weight: 500;
  font-family: var(--font-body);
  z-index: 2;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.btn-primary:hover .btn-text-fg { clip-path: inset(0 0% 0 0); }

.btn-secondary {
  padding: 14px 24px; border: 1px solid rgba(255,255,255,0.15);
  color: var(--gray); text-decoration: none;
  font-size: 10px; letter-spacing: 3px;
  font-family: var(--font-body);
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(8px);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.4);
  color: white;
  box-shadow: 0 0 16px rgba(255,255,255,0.08);
}

/* Hero Right */
.hero-right {
  position: absolute; right: 48px; top: 50%;
  transform: translateY(-50%);
  z-index: 3; text-align: left;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 1.1s forwards;
}
.hero-date {
  display: flex; flex-direction: column;
  font-size: 11px; letter-spacing: 2px; color: var(--gray);
  margin-bottom: 16px;
}
.hero-divider {
  width: 24px; height: 1px;
  background: var(--gray); margin: 16px 0;
}
.hero-quote {
  font-size: 12px; line-height: 2;
  color: var(--gray); max-width: 160px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  z-index: 3;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.4s forwards;
}
.scroll-indicator span {
  font-size: 9px; letter-spacing: 3px; color: var(--gray);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, white, transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ── SERVICES ───────────────────────────────────────────────── */
.services {
  padding: 40px 48px 48px;
  position: relative; z-index: 2;
  background: transparent;
}

.services-header {
  text-align: center; margin-bottom: 32px;
}
.section-label {
  font-family: var(--font-body);
  font-size: 10px; letter-spacing: 5px;
  color: var(--gray); margin-bottom: 16px;
}
.section-divider {
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.25); margin: 0 auto;
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}

.service-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.3s;
  opacity: 0; transform: translateY(40px);
}
.service-card.in-view {
  animation: cardUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes cardUp {
  to { opacity: 1; transform: translateY(0); }
}
/* Shimmer sweep */
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
/* Glow border on hover */
.service-card::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
  pointer-events: none;
}
.service-card:hover {
  background: var(--glass-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.18), 0 0 30px rgba(255,255,255,0.06);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after {
  border-color: rgba(255,255,255,0.25);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.03);
}
.service-card:hover .card-icon svg path,
.service-card:hover .card-icon svg circle {
  stroke: white;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.8));
}

.card-num {
  position: absolute; top: 24px; right: 24px;
  font-size: 10px; letter-spacing: 2px; color: rgba(255,255,255,0.2);
}
.card-icon {
  margin-bottom: 16px;
  transition: transform 0.3s, filter 0.3s;
}
.service-card:hover .card-icon { transform: translateY(-4px); }
.card-icon svg path, .card-icon svg circle {
  transition: filter 0.3s, stroke 0.3s;
}

.service-card h3 {
  font-size: 13px; letter-spacing: 2px;
  font-weight: 500; line-height: 1.6;
  margin-bottom: 14px;
}
.card-bar {
  width: 24px; height: 1px; background: rgba(255,255,255,0.15);
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1), background 0.3s, box-shadow 0.3s;
}
.service-card:hover .card-bar {
  width: 48px; background: white;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* ── STATS ──────────────────────────────────────────────────── */
.stats {
  padding: 40px 48px;
  border-top: 1px solid var(--dim);
  border-bottom: 1px solid var(--dim);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; text-align: center;
}
.stat-item {
  opacity: 0; transform: translateY(30px);
}
.stat-item.in-view {
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: var(--delay, 0s);
}
.stat-item p {
  font-size: 10px; letter-spacing: 2px;
  color: var(--gray); margin-top: 8px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 52px; line-height: 1;
}
.stat-plus {
  font-family: var(--font-display);
  font-size: 32px; vertical-align: top;
  margin-top: 6px; display: inline-block;
}

/* ── SKILLS SECTION – full layout ───────────────────────────── */
.skills-section {
  padding: 64px 48px 0;
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
}

.skills-header { margin-bottom: 12px; opacity: 0; transform: translateY(20px); }
.skills-header.in-view { animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) forwards; }
.skills-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px;
}
.sk-page-label {
  font-size: 10px; letter-spacing: 3px; color: var(--gray);
  font-family: var(--font-body); margin-bottom: 8px;
}
.sk-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1; letter-spacing: 2px;
  margin-bottom: 8px;
}
.sk-title-bar {
  width: 36px; height: 2px; background: white;
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.sk-subtitle {
  font-size: 11px; line-height: 1.8;
  color: var(--gray); font-family: var(--font-body);
}
.sk-available {
  font-size: 10px; letter-spacing: 3px;
  color: rgba(255,255,255,0.5); font-family: var(--font-body);
  display: flex; align-items: center; gap: 8px;
}
.sk-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #28c840; display: inline-block;
  box-shadow: 0 0 8px #28c840;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 6px #28c840; opacity: 1; }
  50%      { box-shadow: 0 0 16px #28c840, 0 0 30px #28c84055; opacity: 0.8; }
}

/* Main two-column layout */
.skills-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 0;
}

/* Skills bars panel */
.skills-bars { display: flex; flex-direction: column; gap: 0; }
.skills-bars .skills-header { margin-bottom: 0; }

.skills-grid {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 20px 60px rgba(0,0,0,0.8);
  overflow: hidden;
}
/* remove old pseudo titlebar */
.skills-grid::before { display: none; }

.sk-term-body {
  padding: 14px 18px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; line-height: 1.6;
  min-height: 220px;
}
/* command line */
.sk-cmd-line {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.sk-prompt  { color: rgba(255,255,255,0.35); }
.sk-cmd-txt { color: rgba(255,255,255,0.8); }
/* each skill row */
.sk-row {
  display: grid;
  grid-template-columns: 150px 1fr 40px;
  gap: 10px; align-items: center;
  margin-bottom: 8px;
  opacity: 0;
}
.sk-row.visible { opacity: 1; }
.sk-row-name {
  font-size: 10px; letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap; overflow: hidden;
}
.sk-ascii-wrap {
  font-size: 11px; letter-spacing: 0;
  color: rgba(255,255,255,0.85);
  white-space: nowrap; overflow: hidden;
}
.sk-ascii-fill { color: white; }
.sk-ascii-empty { color: rgba(255,255,255,0.15); }
.sk-row-pct {
  font-size: 10px; color: rgba(255,255,255,0.4);
  text-align: right; white-space: nowrap;
}
/* blinking cursor on the cmd line */
.sk-blink {
  display: inline-block;
  width: 7px; height: 12px;
  background: rgba(255,255,255,0.7);
  vertical-align: middle; margin-left: 1px;
  animation: blink 1s step-end infinite;
}

/* Shared terminal title bar */
.sk-term-titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sk-term-dots { display: flex; gap: 6px; align-items: center; }
.sk-tdot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.sk-tdot--red    { background: #ff5f57; box-shadow: 0 0 5px #ff5f5766; }
.sk-tdot--yellow { background: #febc2e; box-shadow: 0 0 5px #febc2e66; }
.sk-tdot--green  { background: #28c840; box-shadow: 0 0 5px #28c84066; }
.sk-term-titletext {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.22);
  flex: 1; text-align: center;
}

/* Features panel terminal wrapper */
.sk-feat-terminal {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 20px 60px rgba(0,0,0,0.8);
  overflow: hidden;
}
.skills-features { display: flex; flex-direction: column; gap: 0; }
.sk-feat-grid { display: flex; flex-direction: column; }

.sk-feat {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px; align-items: start;
  padding: 14px 18px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.25s;
  opacity: 0; transform: translateX(30px);
  position: relative; overflow: hidden;
}
.sk-feat:last-child { border-bottom: none; }
.sk-feat::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: white;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.sk-feat.in-view {
  animation: slideInRight 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes slideInRight { to { opacity: 1; transform: translateX(0); } }
.sk-feat:hover { background: rgba(255,255,255,0.025); }
.sk-feat:hover::before { transform: scaleY(1); }

.sk-feat-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.sk-feat:hover .sk-feat-icon {
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 12px rgba(255,255,255,0.1);
}
.sk-feat-icon svg path, .sk-feat-icon svg circle,
.sk-feat-icon svg rect, .sk-feat-icon svg ellipse {
  transition: filter 0.3s;
}
.sk-feat:hover .sk-feat-icon svg path,
.sk-feat:hover .sk-feat-icon svg circle,
.sk-feat:hover .sk-feat-icon svg rect,
.sk-feat:hover .sk-feat-icon svg ellipse {
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.6));
}
.sk-feat-content h4 {
  font-size: 11px; letter-spacing: 2px; font-weight: 600;
  margin-bottom: 5px; font-family: var(--font-body);
}
.sk-feat-content p {
  font-size: 10px; line-height: 1.7;
  color: var(--gray); font-family: var(--font-body);
}
.sk-feat-tag {
  font-size: 8px; letter-spacing: 2px;
  color: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 3px 7px; white-space: nowrap;
  font-family: var(--font-body);
  align-self: start; margin-top: 2px;
}

/* Marquee strip */
.sk-marquee-wrap {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 12px 0;
  position: relative;
}
.sk-marquee-wrap::before,
.sk-marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.sk-marquee-wrap::before { left: 0; background: linear-gradient(to right, rgba(0,0,0,0.8), transparent); }
.sk-marquee-wrap::after  { right: 0; background: linear-gradient(to left, rgba(0,0,0,0.8), transparent); }

.sk-marquee {
  display: flex; gap: 28px; align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 22s linear infinite;
  width: max-content;
}
.sk-marquee span {
  font-size: 9px; letter-spacing: 3px;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-body);
  text-transform: uppercase;
}
.sk-sep { color: rgba(255,255,255,0.15) !important; font-size: 8px !important; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 900px) {
  .skills-section { padding: 48px 24px 0; }
  .skills-main { grid-template-columns: 1fr; gap: 32px; }
  .skills-top { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── FOOTER / OLD STYLES (replaced by contact section) ──────── */
.footer { display: none; }

/* ── CONTACT SECTION ─────────────────────────────────────────── */
.contact-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 64px 48px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.contact-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.80);
  pointer-events: none; z-index: 0;
}

/* Corner brackets */
.ct-corner { position: absolute; width: 20px; height: 20px; z-index: 3; pointer-events: none; }
.ct-corner--tl { top: 12px; left: 12px; border-top: 1px solid rgba(255,255,255,0.3); border-left: 1px solid rgba(255,255,255,0.3); }
.ct-corner--tr { top: 12px; right: 12px; border-top: 1px solid rgba(255,255,255,0.3); border-right: 1px solid rgba(255,255,255,0.3); }
.ct-corner--bl { bottom: 12px; left: 12px; border-bottom: 1px solid rgba(255,255,255,0.3); border-left: 1px solid rgba(255,255,255,0.3); }
.ct-corner--br { bottom: 12px; right: 12px; border-bottom: 1px solid rgba(255,255,255,0.3); border-right: 1px solid rgba(255,255,255,0.3); }

.ct-side-text {
  position: absolute; right: -44px; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 8px; letter-spacing: 4px;
  color: rgba(255,255,255,0.15); white-space: nowrap; z-index: 3;
}
.ct-dots {
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 7px; z-index: 3;
}
.ct-dots span { width: 5px; height: 5px; border: 1px solid rgba(255,255,255,0.2); display: block; }

/* ── TOP HEADER BAR ── */
.ct-header {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ct-header-left {}
.ct-page-label {
  font-size: 10px; letter-spacing: 3px;
  color: var(--gray); margin-bottom: 6px;
}
.ct-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1; letter-spacing: 3px;
  opacity: 0; transform: translateY(30px);
}
.ct-title.in-view { animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }
.ct-header-right {
  text-align: right;
}
.ct-subtitle {
  font-size: 12px; line-height: 1.9;
  color: var(--gray);
}

/* ── MAIN LAYOUT ── */
.ct-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  position: relative; z-index: 2;
  align-items: start;
  margin-bottom: 36px;
}
.ct-center { display: none; }

/* ── LEFT: connect links ── */
.ct-left { display: flex; flex-direction: column; gap: 0; }

.ct-title-bar {
  width: 36px; height: 2px; background: white;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.ct-connect-label {
  font-size: 10px; letter-spacing: 3px;
  color: var(--gray); margin-bottom: 12px;
}
.ct-link-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(6,6,6,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none; color: white;
  margin-bottom: 8px;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.25s, background 0.3s;
  position: relative; overflow: hidden;
}
.ct-link-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: white;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.ct-link-row:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(14,14,14,0.85);
  box-shadow: 0 0 24px rgba(255,255,255,0.05), inset 0 0 16px rgba(255,255,255,0.02);
  transform: translateX(4px);
}
.ct-link-row:hover::before { transform: scaleY(1); }
.ct-link-row:hover .ct-link-icon {
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 12px rgba(255,255,255,0.15);
}
.ct-link-row:hover .ct-link-arrow {
  color: white; transform: translate(3px,-3px);
  text-shadow: 0 0 12px rgba(255,255,255,0.7);
}
.ct-link-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ct-link-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ct-link-title { font-size: 11px; letter-spacing: 2px; font-weight: 600; }
.ct-link-val { font-size: 10px; color: var(--gray); }
.ct-link-arrow { font-size: 13px; color: var(--gray); transition: color 0.3s, transform 0.3s; }

/* ── RIGHT: terminal form ── */
.ct-right {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 24px 60px rgba(0,0,0,0.8);
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.ct-right:hover {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 60px rgba(0,0,0,0.8), 0 0 40px rgba(255,255,255,0.03);
}

/* Terminal title bar inside contact form */
.ct-terminal-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ct-terminal-dots { display: flex; gap: 6px; }
.ct-tdot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.ct-tdot--red    { background: #ff5f57; box-shadow: 0 0 5px #ff5f5766; }
.ct-tdot--yellow { background: #febc2e; box-shadow: 0 0 5px #febc2e66; }
.ct-tdot--green  { background: #28c840; box-shadow: 0 0 5px #28c84066; }
.ct-terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.22);
  flex: 1; text-align: center;
}

/* Form body */
.ct-form-body {
  padding: 16px 18px 18px;
}
.ct-form-label {
  font-size: 10px; letter-spacing: 2px;
  color: rgba(255,255,255,0.25); margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  display: flex; align-items: center; gap: 6px;
}
.ct-form-label::before {
  content: '>';
  color: rgba(255,255,255,0.4);
}
.ct-form { display: flex; flex-direction: column; gap: 0; }
.ct-field {
  position: relative;
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ct-field::before {
  content: attr(data-prompt);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: rgba(255,255,255,0.2);
  padding: 0 10px 0 14px; white-space: nowrap; flex-shrink: 0;
  user-select: none;
}
.ct-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 1.5px;
  padding: 13px 14px 13px 4px;
  outline: none; resize: none;
  transition: color 0.2s;
  -webkit-appearance: none;
  caret-color: white;
}
.ct-input::placeholder { color: rgba(255,255,255,0.2); }
.ct-field:focus-within {
  border-bottom-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.02);
}
.ct-field:focus-within::before { color: rgba(255,255,255,0.5); }
.ct-textarea {
  align-items: flex-start;
  padding-top: 4px;
}
.ct-textarea::before { padding-top: 13px; }
.ct-textarea .ct-input { min-height: 90px; padding-top: 13px; }

.ct-submit {
  width: 100%; padding: 13px 24px; margin-top: 12px;
  background: transparent; color: white;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: none; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 3px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ct-submit::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.06); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); z-index: 0;
}
.ct-submit:hover::before { transform: scaleX(1); }
.ct-submit:hover {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 20px rgba(255,255,255,0.08);
}
.ct-submit-bg { position: relative; z-index: 1; color: white; white-space: nowrap; }
.ct-submit-fg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: white; white-space: nowrap;
  font-size: 10px; letter-spacing: 3px; font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  z-index: 2; clip-path: inset(0 100% 0 0);
  transition: clip-path 0.4s cubic-bezier(0.4,0,0.2,1);
}
.ct-submit:hover .ct-submit-fg { clip-path: inset(0 0% 0 0); }

/* Bottom bar */
.ct-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative; z-index: 2;
}
.ct-bottom-icons { display: flex; align-items: center; gap: 8px; }
.ct-bottom-dots { font-size: 9px; letter-spacing: 4px; color: rgba(255,255,255,0.15); }
.ct-copyright { font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,0.18); }
.ct-bottom-right { font-size: 9px; letter-spacing: 3px; color: rgba(255,255,255,0.15); }

/* Responsive */
@media (max-width: 900px) {
  .contact-section { padding: 80px 24px 28px; }
  .ct-layout { grid-template-columns: 1fr; gap: 28px; }
  .ct-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ct-header-right { text-align: left; }
  .ct-side-text { display: none; }
  .ct-dots { display: none; }
}

/* ── TERMINAL BOX ───────────────────────────────────────────── */
.hero-terminal {
  position: absolute;
  left: 520px;
  top: 160px;
  width: 380px;
  background: rgba(13,13,13,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03),
              0 24px 60px rgba(0,0,0,0.8),
              0 0 40px rgba(255,255,255,0.03);
  z-index: 3;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 1.6s forwards;
  transition: box-shadow 0.4s, border-color 0.4s;
}
.hero-terminal:hover {
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06),
              0 24px 60px rgba(0,0,0,0.8),
              0 0 50px rgba(255,255,255,0.05);
}
.terminal-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dots { display: flex; gap: 6px; align-items: center; }
.tdot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.tdot--red    { background: #ff5f57; box-shadow: 0 0 6px #ff5f5766; }
.tdot--yellow { background: #febc2e; box-shadow: 0 0 6px #febc2e66; }
.tdot--green  { background: #28c840; box-shadow: 0 0 6px #28c84066; }
.terminal-title {
  font-size: 10px; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.22);
  font-family: 'Courier New', monospace;
  flex: 1; text-align: center;
}
.terminal-body {
  padding: 12px 14px 14px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11.5px; line-height: 1.65;
  min-height: 170px; overflow: hidden;
}
/* token colors */
.t-line    { display: block; margin-bottom: 0; white-space: pre; }
.t-prompt  { color: #28c840; }
.t-at      { color: rgba(255,255,255,0.25); }
.t-path    { color: #58a6ff; }
.t-dollar  { color: rgba(255,255,255,0.35); }
.t-kw      { color: #ff79c6; }
.t-fn      { color: #50fa7b; }
.t-arg     { color: #f1fa8c; }
.t-str     { color: #f1fa8c; }
.t-num     { color: #bd93f9; }
.t-type    { color: #8be9fd; }
.t-ok      { color: #28c840; }
.t-err     { color: #ff5555; }
.t-comment { color: rgba(255,255,255,0.22); font-style: italic; }
.t-dim     { color: rgba(255,255,255,0.28); }
.t-white   { color: rgba(255,255,255,0.82); }
.t-cursor  {
  display: inline-block; width: 7px; height: 12px;
  background: rgba(255,255,255,0.75); vertical-align: middle;
  animation: blink 1s step-end infinite; margin-left: 1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
/* ── SPOTLIGHT MOUSE GLOW ────────────────────────────────────── */
.service-card.spotlight::before,
.proj-card.spotlight::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(
    180px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.07) 0%,
    transparent 70%
  );
  opacity: 1 !important;
}
/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: black; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero-left { padding: 0 24px; }
  .hero-right { display: none; }
  .services { padding: 32px 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { padding: 32px 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-section { padding: 32px 24px; }
  .footer { padding: 36px 24px 24px; }
  .footer-content { flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── PROJECTS PAGE ──────────────────────────────────────────── */
.projects {
  position: relative;
  min-height: 100vh;
  background: transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 48px;
  border-top: 1px solid var(--border);
}

/* Background canvas removed */

/* Corner bracket decorations */
.proj-corner {
  position: absolute; width: 24px; height: 24px;
  z-index: 2; pointer-events: none;
  transition: border-color 0.4s;
}
.proj-corner--tl { top: 16px; left: 16px; border-top: 1px solid rgba(255,255,255,0.25); border-left: 1px solid rgba(255,255,255,0.25); }
.proj-corner--tr { top: 16px; right: 16px; border-top: 1px solid rgba(255,255,255,0.25); border-right: 1px solid rgba(255,255,255,0.25); }
.proj-corner--bl { bottom: 16px; left: 16px; border-bottom: 1px solid rgba(255,255,255,0.25); border-left: 1px solid rgba(255,255,255,0.25); }
.proj-corner--br { bottom: 16px; right: 16px; border-bottom: 1px solid rgba(255,255,255,0.25); border-right: 1px solid rgba(255,255,255,0.25); }

/* Rotated side text */
.proj-side-text {
  position: absolute; left: -52px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 9px; letter-spacing: 4px;
  color: rgba(255,255,255,0.2);
  white-space: nowrap; z-index: 2;
}

/* Right dots */
.proj-dots {
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px;
  z-index: 2;
}
.proj-dots span {
  width: 4px; height: 4px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: block;
}
.proj-dots span:first-child { background: white; }

/* Header */
.proj-header {
  position: relative; z-index: 2;
  margin-bottom: 40px;
}
.proj-page-label {
  font-size: 10px; letter-spacing: 3px;
  color: var(--gray); margin-bottom: 10px;
  font-family: var(--font-body);
}
.proj-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1; letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0; transform: translateY(30px);
}
.proj-title.in-view {
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
.proj-title-bar {
  width: 60px; height: 2px;
  background: white; margin-bottom: 16px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1) 0.3s;
}
.proj-title.in-view ~ .proj-title-bar { transform: scaleX(1); }
.proj-subtitle {
  font-size: 13px; line-height: 1.8;
  color: var(--gray);
  opacity: 0; transform: translateY(16px);
}
.proj-title.in-view ~ .proj-title-bar ~ .proj-subtitle {
  animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.25s forwards;
}

/* Cards grid */
.proj-cards {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Individual card */
.proj-card {
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative; overflow: hidden;
  transition: border-color 0.4s, transform 0.35s, box-shadow 0.4s, background 0.4s;
  opacity: 0; transform: translateY(40px);
  cursor: pointer;
}
.proj-card.in-view {
  animation: cardUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: var(--delay, 0s);
}
.proj-card:hover {
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-6px);
  background: var(--glass-hover);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.12),
    0 0 40px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Scan line sweep on hover */
.proj-card-scan {
  position: absolute; top: -100%; left: 0; right: 0;
  height: 50%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.04), rgba(255,255,255,0.02), transparent);
  transition: top 0.7s cubic-bezier(0.4,0,0.2,1);
}
.proj-card:hover .proj-card-scan { top: 120%; }

.proj-card-inner {
  padding: 28px 24px 24px;
  display: flex; flex-direction: column;
}

.proj-card-num {
  font-size: 11px; letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px; display: block;
  font-family: var(--font-body);
}

/* Image / icon area */
.proj-card-img {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  position: relative;
}
.proj-card-img svg {
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
  transition: filter 0.4s;
}
.proj-card:hover .proj-card-img svg {
  filter: drop-shadow(0 0 24px rgba(255,255,255,0.7));
}

/* Launcher mockup */
.proj-card-img--screen { align-items: flex-start; padding-top: 4px; }
.launcher-mock {
  width: 130px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #0d0d0d;
  border-radius: 3px; overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(255,255,255,0.06);
  transition: box-shadow 0.3s;
}
.proj-card:hover .launcher-mock { box-shadow: 0 0 30px rgba(255,255,255,0.15); }
.launcher-bar {
  background: #161616; padding: 5px 8px;
  display: flex; gap: 4px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.launcher-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.15); display: block;
}
.launcher-body {
  padding: 10px 10px 8px;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.launcher-brand {
  font-family: var(--font-display);
  font-size: 16px; letter-spacing: 3px;
  color: white;
}
.launcher-btn-mock {
  font-size: 8px; letter-spacing: 2px;
  background: white; color: black;
  padding: 4px 14px; font-weight: 700;
}
.launcher-phone {
  position: absolute; right: -18px; top: 8px;
  width: 22px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px; background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
}
.launcher-phone-inner {
  width: 12px; height: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1px;
}

.proj-card-title {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 2px;
  margin-bottom: 10px;
  transition: letter-spacing 0.3s, text-shadow 0.4s;
}
.proj-card:hover .proj-card-title {
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.proj-card-desc {
  font-size: 12px; line-height: 1.7;
  color: var(--gray); margin-bottom: 20px;
  flex: 1;
}

.proj-card-link {
  font-size: 10px; letter-spacing: 3px;
  color: var(--gray); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.3s, gap 0.3s, text-shadow 0.3s;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.proj-card-link:hover {
  color: white; gap: 14px;
  text-shadow: 0 0 12px rgba(255,255,255,0.5);
}
.proj-link-arrow { transition: transform 0.3s; }
.proj-card-link:hover .proj-link-arrow { transform: translateX(4px); }

/* Bottom bar */
.proj-bottom-bar {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center;
  margin-top: 32px; gap: 16px;
}
.proj-bottom-dashes {
  font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,0.2);
}
.proj-bottom-count {
  font-size: 9px; letter-spacing: 3px; color: rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 900px) {
  .projects { padding: 80px 24px 40px; }
  .proj-cards { grid-template-columns: 1fr; gap: 12px; }
  .proj-side-text { display: none; }
}
@media (max-width: 540px) {
  .proj-cards { grid-template-columns: 1fr; }
}
