/* ============================================
   GAURAV PALASPAGAR — PORTFOLIO
   Dark Cinematic Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg: #050505;
  --bg-light: #0a0a0a;
  --surface: #111111;
  --surface-hover: #161616;
  --border: #1e1e1e;
  --border-light: #2a2a2a;
  --text: #ededed;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --accent-1: #ff6b35;
  --accent-2: #f72585;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --accent-glow: rgba(255, 107, 53, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --container: 1400px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis,
html.lenis body {
  height: auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--accent-1);
  color: var(--bg);
}

/* --- Grain Overlay --- */
.grain {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* --- Background Gradient Mesh --- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-mesh .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-mesh .orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-1);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.bg-mesh .orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-2);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.bg-mesh .orb-3 {
  width: 400px;
  height: 400px;
  background: #7c3aed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.1); }
  50% { transform: translate(-30px, 60px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.05); }
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.6s ease;
}

.preloader.is-done {
  transform: translateY(-100%);
}

.preloader.is-hidden {
  display: none;
}

.preloader__initials {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.preloader__bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader__bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.preloader__counter {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* --- Custom Cursor --- */
.cursor {
  display: none;
}

@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--accent-1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s var(--ease-out),
                height 0.3s var(--ease-out),
                border-color 0.3s,
                background 0.3s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }

  .cursor.is-hovering {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--accent-2);
  }

  .cursor.is-clicking {
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}

.nav.is-scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gradient);
  transition: width 0.4s var(--ease-out);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--accent-1);
  border-radius: 100px;
  color: var(--accent-1);
  transition: background 0.3s, color 0.3s;
}

.nav__cta:hover {
  background: var(--accent-1);
  color: var(--bg);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 110;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav__toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 105;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.nav__mobile.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s;
}

.nav__mobile a:hover {
  color: var(--accent-1);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  opacity: 0;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-1);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.hero__name .line {
  display: block;
  overflow: hidden;
}

.hero__name .line-inner {
  display: block;
  transform: translateY(110%);
}

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

.hero__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.2vw, 0.95rem);
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  opacity: 0;
  overflow-wrap: break-word;
}

.hero__description {
  max-width: 540px;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  opacity: 0;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
}

.hero__scroll span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
}

.hero__scroll .scroll-line {
  width: 1px;
  height: 60px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero__scroll .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent-gradient);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -50%; }
  100% { top: 150%; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn--outline:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  transform: translateY(-2px);
}

.btn__arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* --- Skills Marquee --- */
.skills-marquee {
  padding: var(--space-lg) 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.skills-marquee::before,
.skills-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.skills-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.skills-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.skills-marquee__row {
  overflow: hidden;
}

.skills-marquee__row + .skills-marquee__row {
  margin-top: 1rem;
}

.skills-marquee__track {
  display: flex;
  width: max-content;
}

.skills-marquee__track--left {
  animation: marqueeLeft 35s linear infinite;
}

.skills-marquee__track--right {
  animation: marqueeRight 40s linear infinite;
}

.skills-marquee__content {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
  flex-shrink: 0;
}

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

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

/* Skill Pills */
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.4s var(--ease-out);
  cursor: default;
}

.skill-pill:hover {
  border-color: var(--border-light);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.skill-pill--accent {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 37, 133, 0.1));
  border-color: rgba(255, 107, 53, 0.3);
  color: var(--accent-1);
}

.skill-pill--accent:hover {
  border-color: var(--accent-1);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 37, 133, 0.15));
  box-shadow: 0 8px 30px var(--accent-glow);
}

.skill-pill--outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text);
}

.skill-pill--outline:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(247, 37, 133, 0.05);
}

/* Skill Pill Icons */
.skill-pill i {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.skill-pill:hover i {
  opacity: 1;
}

.skill-pill--accent i {
  opacity: 0.9;
}

/* --- Section Common --- */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 1;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section__label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent-1);
}

.section__heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

/* --- About Section --- */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about__text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 580px;
}

.about__text p + p {
  margin-top: 1.5rem;
}

.about__highlight {
  color: var(--text);
  font-weight: 500;
}

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.stat-card__number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-card__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Projects Section --- */
.projects__grid {
  display: grid;
  gap: 2rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at var(--mouse-x, 50%) var(--mouse-y, 0%),
    rgba(255, 107, 53, 0.06) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.project-card__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.project-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.project-card__tagline {
  font-size: 1rem;
  color: var(--accent-1);
  font-weight: 500;
  margin-bottom: 1rem;
}

.project-card__description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.project-card__metrics {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
}

.metric__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.project-card__number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  opacity: 0.4;
  user-select: none;
  align-self: center;
}

/* --- Stack Section --- */
.stack__categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.stack-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color 0.3s;
}

.stack-category:hover {
  border-color: var(--border-light);
}

.stack-category__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-1);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.stack-category__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-item {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s;
  cursor: default;
}

.stack-item:hover {
  border-color: var(--accent-1);
  color: var(--text);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* --- Contact Section --- */
.contact {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.contact__heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
}

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

.contact__sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.contact__email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text);
  position: relative;
  margin-bottom: var(--space-lg);
  transition: color 0.3s;
}

.contact__email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.contact__email:hover {
  color: var(--accent-1);
}

.contact__email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact__socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: var(--space-md);
}

.social-link {
  width: 50px;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-link:hover {
  border-color: var(--accent-1);
  background: var(--accent-glow);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: fill 0.3s;
}

.social-link:hover svg {
  fill: var(--accent-1);
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer__back-top {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.footer__back-top:hover {
  color: var(--accent-1);
}

.footer__back-top svg {
  transition: transform 0.3s var(--ease-out);
}

.footer__back-top:hover svg {
  transform: translateY(-3px);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-delay-1 { transition-delay: 0.1s !important; }
.reveal-delay-2 { transition-delay: 0.2s !important; }
.reveal-delay-3 { transition-delay: 0.3s !important; }
.reveal-delay-4 { transition-delay: 0.4s !important; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card__number {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__mobile {
    display: flex;
  }

  .hero {
    padding: 10rem 0 var(--space-xl);
  }

  .hero__name {
    font-size: clamp(2.2rem, 11vw, 4.5rem);
  }

  .hero__scroll {
    display: none;
  }

  .section {
    padding: var(--space-xl) 0;
  }

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

  .project-card__metrics {
    gap: 1rem;
  }

  .contact__heading {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .footer__inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__name {
    font-size: clamp(1.6rem, 7.5vw, 3rem);
  }

  .hero__subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
  }

  .hero__description {
    font-size: 0.95rem;
  }

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

  .stat-card__number {
    font-size: 2.5rem;
  }

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