/* ============================================
   PORTFOLIO - Apple-Inspired Engineer Portfolio
   Premium Dark Theme with Scroll Animations
   ============================================ */
/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');
/* ---------- Custom Properties ---------- */
:root {
  /* Color Palette */
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --accent-1: #2997ff;
  --accent-2: #bf5af2;
  --accent-3: #30d158;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --accent-gradient-text: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  /* Spacing */
  --section-padding: clamp(80px, 12vh, 160px);
  --container-max: 1200px;
  --container-padding: clamp(20px, 5vw, 80px);
  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-normal: 0.6s;
  --duration-slow: 1s;
}
/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-2);
}
img {
  max-width: 100%;
  display: block;
}
/* ---------- Utility ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}
.gradient-text {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}
/* ---------- Scroll-driven Reveal Animations ---------- */
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes reveal-scale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes reveal-left {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes reveal-right {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.reveal {
  animation: reveal-up linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}
.reveal-scale {
  animation: reveal-scale linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}
.reveal-left {
  animation: reveal-left linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}
.reveal-right {
  animation: reveal-right linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}
/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: view()) {
  .reveal,
  .reveal-scale,
  .reveal-left,
  .reveal-right {
    animation: none;
    opacity: 0;
     transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  }
  .reveal.is-visible,
  .reveal-scale.is-visible,
  .reveal-left.is-visible,
  .reveal-right.is-visible {
    opacity: 1;
    transform: none;
  }
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-scale,
  .reveal-left,
  .reveal-right {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-color);
}
.nav-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s var(--ease-out-expo);
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--accent-gradient);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(41, 151, 255, 0.3);
}
.nav-cta::after {
  display: none;
}
/* Mobile menu button */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse 600px 600px at 30% 20%, rgba(41, 151, 255, 0.12), transparent),
    radial-gradient(ellipse 500px 500px at 70% 60%, rgba(191, 90, 242, 0.1), transparent),
    radial-gradient(ellipse 400px 400px at 50% 80%, rgba(48, 209, 88, 0.06), transparent);
  animation: hero-glow 15s ease-in-out infinite alternate;
}
@keyframes hero-glow {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -20px) rotate(2deg); }
  66% { transform: translate(-20px, 30px) rotate(-1deg); }
  100% { transform: translate(10px, -10px) rotate(1deg); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding-inline: var(--container-padding);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s var(--ease-out-expo) 0.2s both;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-3);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 3rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--accent-gradient);
  border: none;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(41, 151, 255, 0.3);
  color: #fff;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  color: var(--text-primary);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  animation: fadeInUp 0.8s var(--ease-out-expo) 1.2s both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ---------- About Section ---------- */
.about {
  padding: var(--section-padding) 0;
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}
.about-image-wrapper .placeholder-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  color: var(--text-tertiary);
}
.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 5, 0.8));
  pointer-events: none;
}
.about-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}
.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.3rem;
}
/* ---------- Skills Section ---------- */
.skills {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}
.skills-header {
  text-align: center;
  margin-bottom: 4rem;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  padding: 2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.skill-card:hover::before {
  opacity: 1;
}
.skill-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.skill-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.skill-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(41, 151, 255, 0.1);
  border: 1px solid rgba(41, 151, 255, 0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-1);
}
/* ---------- Projects Section ---------- */
.projects {
  padding: var(--section-padding) 0;
  position: relative;
}
.projects-header {
  text-align: center;
  margin-bottom: 4rem;
}
.project-showcase {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}
.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.project-item:nth-child(even) {
  direction: rtl;
}
.project-item:nth-child(even) > * {
  direction: ltr;
}
.project-visual {
  position: relative;
  aspect-ratio: 1920 / 960;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  transition: transform 0.6s var(--ease-out-expo);
}
.project-visual:hover {
  transform: scale(1.02);
}
.project-visual .project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-tertiary);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}
.project-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.05), rgba(191, 90, 242, 0.05));
  pointer-events: none;
}
.project-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-1);
  margin-bottom: 0.75rem;
}
.project-info h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.project-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.project-tech span {
  padding: 0.3rem 0.8rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-1);
  transition: gap 0.3s ease;
}
.project-link:hover {
  gap: 0.8rem;
}
.project-link .arrow {
  transition: transform 0.3s ease;
}
.project-link:hover .arrow {
  transform: translateX(4px);
}
/* ---------- Experience Section ---------- */
.experience {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  position: relative;
}
.experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}
.experience-header {
  text-align: center;
  margin-bottom: 4rem;
}
.timeline {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
}
.timeline-item {
  position: relative;
  padding-left: 70px;
  padding-bottom: 3rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: 22px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-1);
  z-index: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}
.timeline-item:hover .timeline-dot {
  background: var(--accent-1);
  transform: scale(1.3);
}
.timeline-content {
  padding: 1.5rem 2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.timeline-item:hover .timeline-content {
  border-color: var(--border-color-hover);
  transform: translateX(6px);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-1);
  margin-bottom: 0.5rem;
}
.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.timeline-content .company {
  font-size: 0.9rem;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}
.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
/* ---------- Marquee ---------- */
.marquee-section {
  padding: 3rem 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  white-space: nowrap;
  color: var(--bg-tertiary);
  -webkit-text-stroke: 1px var(--text-tertiary);
  text-stroke: 1px var(--text-tertiary);
  transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}
.marquee-item:hover {
  color: var(--text-primary);
  -webkit-text-stroke-color: var(--text-primary);
}
.marquee-separator {
  color: var(--accent-1);
  font-size: clamp(1.5rem, 4vw, 3rem);
  align-self: center;
}
/* ---------- Contact Section ---------- */
.contact {
  padding: var(--section-padding) 0;
  position: relative;
  text-align: center;
}
.contact-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(41, 151, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.contact-content {
  position: relative;
  z-index: 1;
}
.contact .section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
}
.contact .section-subtitle {
  margin-inline: auto;
  margin-bottom: 3rem;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-weight: 600;
  color: var(--text-primary);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.contact-link:hover {
  transform: translateY(-4px);
  border-color: var(--accent-1);
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}
.contact-link .link-icon {
  font-size: 1.25rem;
}
.contact-email {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--text-secondary);
}
.contact-email a {
  color: var(--accent-1);
  border-bottom: 1px dashed var(--accent-1);
  padding-bottom: 2px;
}
.contact-email a:hover {
  border-bottom-style: solid;
}
/* ---------- Footer ---------- */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
}
.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--text-primary);
}
/* ---------- Magnetic Hover Effect ---------- */
.magnetic {
  transition: transform 0.3s var(--ease-out-expo);
}
/* ---------- Custom Cursor ---------- */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor.hover {
  width: 50px;
  height: 50px;
  background: rgba(41, 151, 255, 0.1);
  border-color: var(--accent-2);
}
/* ---------- Parallax Text ---------- */
.parallax-text-section {
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}
.parallax-line {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  white-space: nowrap;
}
.parallax-line.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--text-tertiary);
  text-stroke: 2px var(--text-tertiary);
}
/* Scroll-driven parallax for text lines */
@keyframes slide-left {
  from { transform: translateX(10%); }
  to { transform: translateX(-10%); }
}
@keyframes slide-right {
  from { transform: translateX(-10%); }
  to { transform: translateX(10%); }
}
.parallax-line:nth-child(odd) {
  animation: slide-left linear both;
  animation-timeline: scroll();
}
.parallax-line:nth-child(even) {
  animation: slide-right linear both;
  animation-timeline: scroll();
}
@supports not (animation-timeline: scroll()) {
  .parallax-line:nth-child(odd),
  .parallax-line:nth-child(even) {
    animation: none;
  }
}
/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    font-size: 1.5rem;
  }
  .nav-menu-btn {
    display: flex;
    z-index: 1001;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-image-wrapper {
    max-width: 300px;
    margin-inline: auto;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .project-item,
  .project-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
  .timeline::before {
    left: 15px;
  }
  .timeline-dot {
    left: 8px;
  }
  .timeline-item {
    padding-left: 45px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
  .stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }
  .cursor {
    display: none;
  }
}
