/* ============================================
   Muhammad Abdullah — Portfolio Stylesheet
   ============================================ */

:root {
  --bg: #08080a;
  --bg-elevated: #111114;
  --bg-card: #16161a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --text: #f4f4f5;
  --text-muted: #8b8b96;
  --text-dim: #5c5c66;

  --accent: #d4ff5e;
  --accent-dim: rgba(212, 255, 94, 0.12);
  --accent-glow: rgba(212, 255, 94, 0.35);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 80px;
  --container: min(1200px, 92vw);
  --section-pad: clamp(80px, 12vw, 140px);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' 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");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button, input, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.accent { color: var(--accent); }

/* Custom Cursor */
.cursor,
.cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), opacity 0.3s;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 255, 94, 0.4);
  transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), border-color 0.3s;
}

.cursor-follower.hover {
  width: 64px;
  height: 64px;
  border-color: var(--accent);
  background: rgba(212, 255, 94, 0.06);
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 24px;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-inline: auto;
}

.loader-progress {
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: loadBar 1.8s var(--ease-out-expo) forwards;
}

@keyframes loadBar {
  to { width: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 3D Canvas */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}

.header.scrolled {
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
}

.logo-text { letter-spacing: -0.02em; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  width: 32px;
  padding: 4px 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}

.nav-toggle.active span:first-child {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #4ade80; }
  50% { opacity: 0.4; box-shadow: none; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .word.outline {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-desc em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Profile Card — 3D */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.profile-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
}

.profile-card-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.4;
  filter: blur(40px);
  z-index: -1;
}

.profile-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transform: translateZ(30px);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.profile-img {
  width: clamp(280px, 30vw, 420px);
  height: clamp(350px, 38vw, 520px);
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease-out-expo);
}

.profile-card:hover .profile-img {
  transform: scale(1.04);
}

.profile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(8, 8, 10, 0.9));
}

.profile-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 100px;
}

.profile-orbit {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-1 {
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  animation: orbitSpin 20s linear infinite;
}

.orbit-2 {
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  border-style: dashed;
  opacity: 0.4;
  animation: orbitSpin 30s linear infinite reverse;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

/* Marquee */
.marquee-wrap {
  border-block: 1px solid var(--border);
  padding-block: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
}

.marquee {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.marquee-track .dot {
  color: var(--accent);
  font-size: 0.6rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Section Headers */
.section-header {
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* About */
.about { z-index: 1; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about-text .lead {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.detail-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.detail-value {
  font-weight: 500;
}

.link-hover {
  position: relative;
}

.link-hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out-expo);
}

.link-hover:hover::after { width: 100%; }

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s, transform 0.3s var(--ease-out-expo);
}

.info-card:hover {
  border-color: var(--border-hover);
}

.info-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 16px;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Skills */
.skills { z-index: 1; }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.skill-cat-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.skill-info span:last-child {
  color: var(--accent);
  font-weight: 600;
}

.skill-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #a8e636);
  border-radius: 4px;
  transition: width 1.2s var(--ease-out-expo);
}

.skill-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.tag-pill {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.tag-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Projects */
.work { z-index: 1; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease-out-expo);
}

.project-card:hover {
  border-color: var(--border-hover);
}

.project-visual {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-gradient {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-out-expo);
}

.project-card:hover .project-gradient {
  transform: scale(1.08);
}

.grad-1 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.grad-2 { background: linear-gradient(135deg, #2d1b4e 0%, #1a1a2e 50%, #0d0d1a 100%); }
.grad-3 { background: linear-gradient(135deg, #1a2a1a 0%, #0f3460 50%, #1a1a2e 100%); }
.grad-4 { background: linear-gradient(135deg, #2e1a1a 0%, #1a1a2e 50%, #0d1a2e 100%); }

.project-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
}

.project-body {
  padding: 28px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.project-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-links {
  display: flex;
  gap: 20px;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s;
}

.project-link:hover { color: var(--accent); }

/* Video Reel */
.reel { z-index: 1; }

.reel-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.reel-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  transform-style: preserve-3d;
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, 0.45);
  transition: opacity 0.4s, background 0.4s;
}

.reel-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
  margin-bottom: 16px;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px var(--accent-glow);
}

.play-icon.hidden,
.pause-icon.hidden {
  display: none;
}

.reel-caption {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.reel-info p {
  color: var(--text-muted);
  line-height: 1.7;
}

.reel-info code {
  font-size: 0.85em;
  padding: 2px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

/* Contact */
.contact { z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-desc {
  color: var(--text-muted);
  margin-top: 20px;
  max-width: 400px;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 36px;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s var(--ease-out-expo);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

.form-note a {
  color: var(--accent);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.back-top {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.back-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* Tilt Cards */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Reveal Animations */
.reveal-up,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-scale {
  transform: scale(0.92);
}

.reveal-up.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .reel-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 70px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    transition: right 0.5s var(--ease-out-expo);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-cta { display: none; }

  .nav-toggle { display: flex; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-divider { display: none; }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .scroll-indicator { display: none; }

  .hero-title .word.outline {
    -webkit-text-stroke-width: 1px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
}
