/* ============================================================
   PRIYA GORE — PORTFOLIO STYLESHEET
   Ultra-premium dark theme · Glassmorphism · Rose-gold accents
   ============================================================ */

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

:root {
  /* Core palette */
  --bg:             #090b0e;
  --bg-deep:        #373794;
  --bg-card:        rgba(14, 14, 22, 0.6);
  --bg-card-solid:  #0e0e16;
  --bg-card-hover:  rgba(22, 22, 36, 0.7);
  --surface:        #111119;
  --border:         rgba(255, 255, 255, 0.06);
  --border-hover:   rgba(255, 255, 255, 0.12);
  --border-glass:   rgba(255, 255, 255, 0.08);

  /* Text */
  --text:           #eeeef0;
  --text-muted:     #f7eee9;
  --text-dim:       #e4f3f3;

  /* Accent gradient stops */
  --accent-1:       #c084fc;   /* rose-gold / lavender */
  --accent-2:       #e879f9;   /* rose-pink */
  --accent-3:       #f0abfc;   /* soft pink */
  --accent:         #c084fc;
  --accent-dim:     rgba(192, 132, 252, 0.12);
  --accent-glow:    rgba(192, 132, 252, 0.25);
  --accent-secondary: #e879f9;

  /* Warm highlight */
  --warm:           #fbbf24;
  --warm-dim:       rgba(251, 191, 36, 0.1);

  /* Gradient shortcuts */
  --gradient-accent: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  --gradient-text:   linear-gradient(135deg, #fff 0%, var(--accent-1) 40%, var(--accent-2) 70%, var(--accent-3) 100%);

  /* Typography */
  --font-main:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vh, 140px) 0;
  --container-w: 1100px;
  --nav-h:       72px;

  /* Motion */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --duration: 0.5s;

  /* Glass */
  --glass-bg:     rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-blur:   16px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

strong {
  color: var(--accent);
  font-weight: 600;
}

.container {
  width: min(var(--container-w), 90%);
  margin: 0 auto;
}

::selection {
  background: rgba(192, 132, 252, 0.3);
  color: #fff;
}


/* ─── Animated Background ───────────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 100%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: float 25s ease-in-out infinite;
}

.bg-glow--1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.2) 0%, transparent 70%);
  top: -250px;
  right: -200px;
}

.bg-glow--2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.15) 0%, transparent 70%);
  bottom: -180px;
  left: -180px;
  animation-delay: -8s;
}

.bg-glow--3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation-delay: -16s;
  animation-duration: 30s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(40px, -50px) scale(1.06); }
  50%      { transform: translate(-30px, 30px) scale(0.94); }
  75%      { transform: translate(20px, 45px) scale(1.03); }
}


/* ─── Navigation ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 60px);
  z-index: 100;
  transition: background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              backdrop-filter var(--duration) var(--ease);
}

#navbar.scrolled {
  background: rgba(6, 6, 11, 0.75);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 var(--border),
              0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.35s var(--ease);
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  transition: width 0.35s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

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

/* Active link with glowing dot */
.nav-links a.active-link {
  color: var(--text);
}

.nav-links a.active-link::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent-glow);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s var(--ease);
  transform-origin: center;
}

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

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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


/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.hero-content {
  max-width: 740px;
}

/* Hero Avatar — floating bob + rotating glow ring */
.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 28px;
  position: relative;
  border: 3px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image:
    linear-gradient(var(--bg), var(--bg)),
    conic-gradient(from 0deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  box-shadow:
    0 0 40px rgba(192, 132, 252, 0.15),
    0 0 80px rgba(232, 121, 249, 0.08);
  animation: bob 4s ease-in-out infinite, rotate-border 6s linear infinite;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.hero-avatar:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 60px rgba(192, 132, 252, 0.3),
    0 0 100px rgba(232, 121, 249, 0.15);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes rotate-border {
  to {
    filter: hue-rotate(360deg);
  }
}

/* Hero Badge (status pill) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

/* Status dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(52, 211, 153, 0.4); transform: scale(1); }
  50%      { box-shadow: 0 0 14px rgba(52, 211, 153, 0.7); transform: scale(1.15); }
}

.hero-greeting {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 18px;
  background: var(--gradient-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink-cursor 0.8s step-end infinite;
}

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

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 530px;
  margin: 0 auto 36px;
  line-height: 1.85;
}

/* Hero CTA */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}


/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-accent);
  background-size: 200% 200%;
  color: #06060b;
  animation: shimmer-btn 3s ease infinite;
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(192, 132, 252, 0.35),
              0 0 60px rgba(232, 121, 249, 0.15);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.25) 55%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: none;
}

.btn-primary:hover::after {
  animation: shimmer 0.8s var(--ease) forwards;
}

@keyframes shimmer-btn {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: rgba(32, 113, 179, 0.767);
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.1);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Glow shimmer button */
.btn-glow {
  position: relative;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: var(--gradient-accent);
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.4s var(--ease);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

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


/* ─── Hero Socials ──────────────────────────────────────────── */
.hero-socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-muted);
  transition: all 0.35s var(--ease);
  position: relative;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}

.social-link:hover {
  color: var(--accent);
  border-color: rgb(182, 52, 1);
  background: rgba(252, 132, 252, 0.08);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(192, 132, 252, 0.2),
              0 0 40px rgba(192, 132, 252, 0.08);
}

.social-link:active {
  transform: scale(0.95);
  transition-duration: 0.1s;
}

button.social-link {
  cursor: pointer;
  font: inherit;
  background: var(--glass-bg);
  color: var(--text-muted);
}


/* ─── Scroll Indicator ──────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator span {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.6;
  animation: fade-pulse 3s ease-in-out infinite;
}

/* Glowing vertical line */
.scroll-line {
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(192, 132, 252, 0.15), transparent);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

/* Traveling orb */
.scroll-orb {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -6px;
  box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent-glow);
  animation: orb-travel 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Cascading chevrons */
.scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  margin-top: -4px;
}

.chevron {
  color: var(--accent);
  opacity: 0;
  animation: chevron-cascade 2.2s ease-in-out infinite;
}

.chevron:nth-child(1) {
  animation-delay: 0s;
}

.chevron:nth-child(2) {
  animation-delay: 0.15s;
  margin-top: -8px;
}

.chevron:nth-child(3) {
  animation-delay: 0.3s;
  margin-top: -8px;
}

@keyframes orb-travel {
  0% {
    top: -6px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes chevron-cascade {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  30% {
    opacity: 0.8;
    transform: translateY(0);
  }
  60% {
    opacity: 0.8;
    transform: translateY(4px);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes fade-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}


/* ─── Hero Text Stagger Animation ───────────────────────────── */
.anim-text {
  opacity: 0;
  transform: translateY(30px);
  animation: text-up 0.8s var(--ease) forwards;
}

.anim-text:nth-child(1)  { animation-delay: 0.1s; }
.anim-text:nth-child(2)  { animation-delay: 0.25s; }
.anim-text:nth-child(3)  { animation-delay: 0.4s; }
.anim-text:nth-child(4)  { animation-delay: 0.55s; }
.anim-text:nth-child(5)  { animation-delay: 0.7s; }
.anim-text:nth-child(6)  { animation-delay: 0.85s; }
.anim-text:nth-child(7)  { animation-delay: 1.0s; }
.anim-text:nth-child(8)  { animation-delay: 1.15s; }

@keyframes text-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ─── Sections ──────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -1px;
  position: relative;
  background: var(--gradient-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  margin: 16px auto 0;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 56px;
  line-height: 1.7;
}


/* ─── About ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.85;
}

.about-stats {
  display: grid;
  gap: 16px;
}

/* Stat cards with animated gradient pulse */
.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(192, 132, 252, 0.06) 0%,
    rgba(232, 121, 249, 0.04) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

.stat-card:hover {
  border-color: rgba(192, 132, 252, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
              0 0 30px rgba(192, 132, 252, 0.06);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}


/* ─── Skills ────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Skill card with rotating conic-gradient border on hover */
.skill-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  isolation: isolate;
}

/* Rotating gradient border effect */
.skill-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 19px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0%,
    var(--accent-1) 15%,
    var(--accent-2) 30%,
    var(--accent-3) 45%,
    transparent 60%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: -2;
  animation: rotate-conic 4s linear infinite;
}

.skill-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  background: var(--bg-card-solid);
  z-index: -1;
  transition: background 0.4s var(--ease);
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-conic {
  to { --angle: 360deg; }
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

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

.skill-card:hover::after {
  background: rgba(14, 14, 22, 0.95);
}

.skill-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.2));
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  color: var(--text);
}

.skill-card ul {
  position: relative;
  z-index: 1;
}

.skill-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 5px 0;
  transition: color 0.3s var(--ease);
}

.skill-card:hover li {
  color: var(--text);
}


/* ─── Projects ──────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Project card — glassmorphism + shimmer on hover */
.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

/* Top accent bar */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

/* Shimmer streak */
.project-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  transform: translateX(-100%) rotate(0deg);
  transition: none;
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(192, 132, 252, 0.05);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover::after {
  animation: shimmer 1s var(--ease) forwards;
}

@keyframes shimmer {
  to {
    transform: translateX(100%) rotate(0deg);
  }
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.project-folder {
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.3));
}

.project-links {
  display: flex;
  gap: 14px;
}

.project-links a {
  color: var(--text-dim);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.project-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: color 0.3s var(--ease);
}

.project-card:hover .project-title {
  color: var(--accent);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-tags li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(192, 132, 252, 0.08);
  transition: all 0.3s var(--ease);
}

.project-card:hover .project-tags li {
  background: rgba(192, 132, 252, 0.15);
  border-color: rgba(192, 132, 252, 0.15);
}


/* ─── Contact ───────────────────────────────────────────────── */
.contact-content {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.contact-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease),
              background 0.4s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.08),
              0 0 20px rgba(192, 132, 252, 0.06);
  background: rgba(14, 14, 22, 0.8);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form .btn {
  align-self: center;
  margin-top: 8px;
}

.contact-or {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 24px 0 14px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-or::before,
.contact-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contact-or::before {
  left: 0;
}

.contact-or::after {
  right: 0;
}


/* ─── Footer ────────────────────────────────────────────────── */
#footer {
  position: relative;
  z-index: 1;
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-sub {
  margin-top: 6px;
  font-size: 0.8rem !important;
  color: var(--text-dim) !important;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-socials .social-link {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 12px;
  font-size: 0.9rem;
}


/* ─── Reveal Animations (Intersection Observer) ─────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    filter 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger children of projects grid */
.projects-grid .project-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.projects-grid .project-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.projects-grid .project-card.reveal:nth-child(3) { transition-delay: 0.25s; }
.projects-grid .project-card.reveal:nth-child(4) { transition-delay: 0.35s; }
.projects-grid .project-card.reveal:nth-child(5) { transition-delay: 0.45s; }
.projects-grid .project-card.reveal:nth-child(6) { transition-delay: 0.55s; }

/* Stagger skill cards */
.skills-grid .skill-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.skills-grid .skill-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.skills-grid .skill-card.reveal:nth-child(3) { transition-delay: 0.25s; }
.skills-grid .skill-card.reveal:nth-child(4) { transition-delay: 0.35s; }

/* Stagger stat cards */
.about-stats .stat-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.about-stats .stat-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.about-stats .stat-card.reveal:nth-child(3) { transition-delay: 0.25s; }


/* ─── Custom Cursor Glow ────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s var(--ease);
  opacity: 0;
  will-change: transform;
}

body:hover .cursor-glow {
  opacity: 0.6;
}

/* Hide cursor glow on touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow {
    display: none !important;
  }
}


/* ─── Toast Notification ────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gradient-accent);
  color: #06060b;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  box-shadow: 0 8px 30px rgba(192, 132, 252, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ─── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 6, 11, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.3rem;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  z-index: 2;
  backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

.lightbox-controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px 20px;
  z-index: 2;
  backdrop-filter: blur(12px);
}

.lightbox-controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease);
}

.lightbox-controls button:hover {
  background: rgba(255, 255, 255, 0.12);
}

#zoom-level {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  min-width: 48px;
  text-align: center;
}

.lightbox-img-wrap {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.lightbox-img-wrap:active {
  cursor: grabbing;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  transition: transform 0.3s var(--ease);
  user-select: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}


/* ─── Shared Keyframes ──────────────────────────────────────── */

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}


/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ─── Tablets & smaller laptops ─────────────────────────────── */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(6, 6, 11, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease), visibility 0.45s;
    border-left: 1px solid var(--glass-border);
    pointer-events: none;
    visibility: hidden;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }

  .nav-links a.active-link::before {
    top: 50%;
    left: -14px;
    transform: translateY(-50%);
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-name {
    letter-spacing: -1px;
  }

  .hero-avatar {
    width: 120px;
    height: 120px;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
}

/* ─── Small mobile ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-socials {
    gap: 12px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  .stat-card {
    padding: 20px 22px;
  }

  .project-card {
    padding: 24px;
  }
}
