/* ================================================================
   PORTFOLIO — CYBER GAME DEV AESTHETIC
   Dark industrial · Neon accents · Glassmorphism
================================================================ */

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

:root {
  --bg: #060810;
  --bg-2: #0a0e1a;
  --bg-glass: rgba(10, 14, 26, 0.7);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.15);
  --cyan-glow: rgba(0, 229, 255, 0.4);
  --amber: #ff9500;
  --amber-dim: rgba(255, 149, 0, 0.12);
  --violet: #7c3aed;
  --white: #f0f4ff;
  --muted: rgba(240, 244, 255, 0.45);
  --border: rgba(0, 229, 255, 0.12);
  --border-hover: rgba(0, 229, 255, 0.35);
  --font-display: 'Orbitron', monospace;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Syne', sans-serif;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Prevent image dragging */
img, svg {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* ── NOISE TEXTURE ── */
.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 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── GRID BACKGROUND ── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}

.cursor-trail {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid var(--cyan-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.2s, height 0.2s;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 18px;
  height: 18px;
  background: var(--amber);
}

body:has(a:hover) .cursor-trail,
body:has(button:hover) .cursor-trail {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 149, 0, 0.5);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(6, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.logo-bracket {
  color: var(--cyan);
}

.logo-text {
  color: var(--white);
  margin: 0 0.15em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--cyan);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cyan);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 4rem;
  overflow: hidden;
  z-index: 1;
}

/* Two-column layout */
.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-inner {
  flex: 1;
  max-width: 640px;
  position: relative;
  z-index: 2;
}

/* ── PROFILE PHOTO ── */
.hero-photo-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
}

.photo-frame {
  position: relative;
  width: 300px;
  height: 300px;
}

/* Animated rings */
.photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.photo-ring-1 {
  width: 320px;
  height: 320px;
  opacity: 0.2;
  animation: ring-spin 12s linear infinite;
  border-style: dashed;
}

.photo-ring-2 {
  width: 346px;
  height: 346px;
  opacity: 0.1;
  animation: ring-spin 20s linear infinite reverse;
  border-style: dashed;
}

.photo-ring-3 {
  width: 310px;
  height: 310px;
  opacity: 0;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  border: none;
  transition: opacity 0.4s;
}

.photo-frame:hover .photo-ring-3 {
  opacity: 0.15;
}

@keyframes ring-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Corner brackets */
.photo-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--cyan);
  border-style: solid;
  z-index: 4;
  transition: width 0.3s, height 0.3s;
}

.photo-frame:hover .photo-corner {
  width: 28px;
  height: 28px;
}

.photo-corner.tl { top: 4px; left: 4px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.photo-corner.tr { top: 4px; right: 4px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.photo-corner.bl { bottom: 4px; left: 4px; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.photo-corner.br { bottom: 4px; right: 4px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }

/* The actual image */
.photo-img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 2;
  border: 2px solid var(--border-hover);
  box-shadow:
    0 0 0 1px var(--border),
    0 0 40px rgba(0, 229, 255, 0.15),
    0 0 80px rgba(0, 229, 255, 0.06);
  transition: box-shadow 0.4s;
  filter: saturate(0.9) contrast(1.05);
}

.photo-frame:hover .photo-img {
  box-shadow:
    0 0 0 2px var(--cyan),
    0 0 50px rgba(0, 229, 255, 0.25),
    0 0 100px rgba(0, 229, 255, 0.1);
}

/* Subtle overlay */
.photo-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    160deg,
    rgba(0, 229, 255, 0.04) 0%,
    transparent 50%,
    rgba(124, 58, 237, 0.04) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Scanline sweep on photo */
.photo-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0, 229, 255, 0.5), transparent);
  border-radius: 50%;
  z-index: 5;
  opacity: 0.5;
  animation: photo-scan 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes photo-scan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.3; }
  100% { top: 100%; opacity: 0; }
}

/* Available badge */
.photo-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(10, 14, 30, 0.8);
  border: 1px solid rgba(39, 201, 63, 0.3);
  border-radius: 99px;
  backdrop-filter: blur(10px);
}

.photo-badge-dot {
  width: 7px;
  height: 7px;
  background: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 8px #27c93f;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.photo-badge-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(240, 244, 255, 0.7);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  opacity: 0;
}

.tag-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px var(--cyan); }
  50% { box-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan-glow); }
}

.tag-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.75rem;
}

.title-line {
  display: block;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  color: var(--white);
  overflow: hidden;
  opacity: 0;
}

.accent-line {
  background: linear-gradient(135deg, var(--cyan) 0%, #0088cc 60%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px var(--cyan-glow));
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  opacity: 0;
}

/* ── BUTTONS ── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  cursor: none;
  transition: transform var(--transition);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  border: 1px solid var(--cyan);
}

.btn-primary .btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover .btn-glow {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--cyan-glow), 0 0 60px rgba(0, 229, 255, 0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.07), transparent 70%);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08), transparent 70%);
  bottom: 50px;
  right: 30%;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.06), transparent 70%);
  top: 30%;
  right: 10%;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.25em;
  writing-mode: vertical-rl;
}

/* ── SECTION SHARED ── */
section {
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1rem;
  opacity: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.reveal-word {
  display: inline-block;
  margin-right: 0.5em;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.section-line {
  width: 60px;
  height: 2px;
  background: var(--cyan);
  margin-top: 1.5rem;
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* ── PROJECTS ── */
.projects {
  padding: 7rem 4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* Project Cards */
.project-card {
  opacity: 0;
  transform: translateY(60px);
}

.card-inner {
  position: relative;
  background: rgba(10, 14, 30, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition), border-color var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-inner:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
}

.card-inner:hover .card-border-glow {
  opacity: 1;
}

.card-border-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity var(--transition);
  box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.06);
  pointer-events: none;
  z-index: 10;
}

/* Card Visuals */
.card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* UE5 Visual */
.ue5-visual {
  background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 100%);
  color: var(--cyan);
}

.ue5-visual .visual-icon svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 20px var(--cyan-glow));
}

/* Pilgrim Visual */
.pilgrim-visual {
  background: linear-gradient(135deg, #0a1628 0%, #1a0a28 100%);
  color: #a855f7;
}

.pilgrim-visual .visual-icon svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

/* Arogya Sahayak Visual */
.arogya-visual {
  background: linear-gradient(135deg, #0a1a14 0%, #0d2818 100%);
  color: #22c55e;
}

.arogya-visual .visual-icon svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.5));
}

.arogya-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.arogya-particles span {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #22c55e;
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 4s ease-in-out infinite;
}

.arogya-particles span:nth-child(1) { left: 15%; top: 25%; animation-delay: 0s; }
.arogya-particles span:nth-child(2) { left: 75%; top: 20%; animation-delay: 0.9s; }
.arogya-particles span:nth-child(3) { left: 50%; top: 75%; animation-delay: 1.8s; }
.arogya-particles span:nth-child(4) { left: 85%; top: 65%; animation-delay: 2.7s; }
.arogya-particles span:nth-child(5) { left: 10%; top: 65%; animation-delay: 3.5s; }

/* Featured card green variant for Arogya */
.featured-card .card-tag { color: #22c55e; }
.featured-card .tech-tag {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.22);
  color: #22c55e;
}
.featured-card .btn-view {
  background: #22c55e;
  border-color: #22c55e;
  color: #060810;
}
.featured-card .btn-view:hover {
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.5);
}
.cpp-visual {
  background: linear-gradient(135deg, #0a1628 0%, #1a1000 100%);
  color: var(--amber);
}

.cpp-visual .visual-icon svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 20px rgba(255, 149, 0, 0.4));
}

/* Visual grid overlay */
.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.visual-icon {
  position: relative;
  z-index: 2;
}

/* Scanline animation */
.scanline-anim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--cyan), transparent);
  opacity: 0.6;
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  0% { top: 0; }
  100% { top: 100%; }
}

/* AI particles */
.ai-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ai-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #a855f7;
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 4s ease-in-out infinite;
}

.ai-particles span:nth-child(1) { left: 20%; top: 30%; animation-delay: 0s; }
.ai-particles span:nth-child(2) { left: 70%; top: 20%; animation-delay: 0.8s; }
.ai-particles span:nth-child(3) { left: 45%; top: 70%; animation-delay: 1.6s; }
.ai-particles span:nth-child(4) { left: 80%; top: 60%; animation-delay: 2.4s; }
.ai-particles span:nth-child(5) { left: 10%; top: 70%; animation-delay: 3.2s; }

@keyframes float-particle {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-40px); opacity: 0; }
}

/* Terminal lines */
.terminal-lines {
  position: absolute;
  bottom: 12px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--amber);
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blink-cursor {
  animation: blink 1s step-end infinite;
}

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

/* Card body */
.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #c084fc;
  z-index: 3;
}

.upcoming-badge {
  background: rgba(255, 149, 0, 0.15);
  border-color: rgba(255, 149, 0, 0.35);
  color: var(--amber);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.5;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-card .card-tag { color: #a855f7; }
.upcoming-card .card-tag { color: var(--amber); }

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.card-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--cyan-dim);
  border: 1px solid var(--border);
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.featured-card .tech-tag {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.upcoming-card .tech-tag {
  background: var(--amber-dim);
  border-color: rgba(255, 149, 0, 0.2);
  color: var(--amber);
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Card buttons */
.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  cursor: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-card:active {
  transform: scale(0.94);
}

.btn-download {
  background: var(--cyan-dim);
  border: 1px solid var(--border-hover);
  color: var(--cyan);
}

.btn-download:hover {
  background: rgba(0, 229, 255, 0.22);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
}

.btn-view {
  background: var(--cyan);
  border: 1px solid var(--cyan);
  color: var(--bg);
}

.btn-view:hover {
  box-shadow: 0 0 24px var(--cyan-glow);
  transform: translateY(-2px);
}

.featured-card .btn-view {
  background: #a855f7;
  border-color: #a855f7;
}

.featured-card .btn-view:hover {
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.5);
}

.btn-ghost-card {
  background: var(--amber-dim);
  border: 1px solid rgba(255, 149, 0, 0.3);
  color: var(--amber);
}

.btn-ghost-card:hover {
  background: rgba(255, 149, 0, 0.18);
  box-shadow: 0 0 20px rgba(255, 149, 0, 0.2);
  transform: translateY(-2px);
}

/* ── CONTACT ── */
.contact {
  padding: 7rem 4rem;
  position: relative;
  overflow: hidden;
}

.contact-inner {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.contact-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 3rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: rgba(10, 14, 30, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  cursor: none;
  transition: border-color var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateX(-30px);
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
}

.contact-card:hover .contact-card-glow {
  opacity: 1;
}

.contact-card:hover .contact-arrow {
  transform: translateX(6px);
  color: var(--cyan);
}

.contact-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--cyan);
  flex-shrink: 0;
}

#linkedinCard .contact-icon {
  background: rgba(10, 102, 194, 0.12);
  border-color: rgba(10, 102, 194, 0.25);
  color: #0a66c2;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.contact-type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

#linkedinCard .contact-type {
  color: #0a66c2;
}

.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.contact-arrow {
  color: var(--muted);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}

.contact-card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity var(--transition);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.04), transparent);
  pointer-events: none;
}

.contact-orb {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ── FOOTER ── */
.footer {
  padding: 2rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-text,
.footer-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-year {
  color: var(--cyan);
}

.footer-sep {
  color: var(--border-hover);
}

/* ── SELECTION ── */
::selection {
  background: var(--cyan-dim);
  color: var(--cyan);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 99px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-layout {
    gap: 3rem;
  }

  .photo-frame,
  .photo-img {
    width: 240px;
    height: 240px;
  }

  .photo-ring-1 { width: 260px; height: 260px; }
  .photo-ring-2 { width: 282px; height: 282px; }
}

@media (max-width: 900px) {
  .hero-layout {
    flex-direction: column-reverse;
    justify-content: center;
    padding-top: 100px;
    gap: 2.5rem;
  }

  .hero-inner {
    max-width: 100%;
    text-align: center;
  }

  .hero-tag {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-photo-col {
    order: -1;
  }

  .photo-frame,
  .photo-img {
    width: 200px;
    height: 200px;
  }

  .photo-ring-1 { width: 218px; height: 218px; }
  .photo-ring-2 { width: 238px; height: 238px; }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-trail { display: none; }

  .nav {
    padding: 1.25rem 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    max-width: 280px;
    background: rgba(6, 8, 16, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    border-left: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link { font-size: 1rem; }
  .nav-toggle { display: flex; z-index: 201; }

  .hero {
    padding: 0 1.5rem;
    padding-bottom: 4rem;
    align-items: flex-start;
  }

  .scroll-hint { left: 1.5rem; }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .projects {
    padding: 5rem 1.5rem;
  }

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

  .contact {
    padding: 5rem 1.5rem;
  }

  .contact-card {
    padding: 1.25rem 1.25rem;
    gap: 1rem;
  }

  .footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero-stats {
    gap: 1.25rem;
  }
}

@media (max-width: 400px) {
  .hero-title .title-line {
    font-size: 2.2rem;
  }
}
