/* ============================================
   SUMIT KUMAR — Portfolio
   Design System + Components + Layout
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors — Synthwave Theme */
  --bg-primary: #0d0d1a;
  --bg-secondary: #12122a;
  --bg-nav: rgba(13, 13, 26, 0.88);
  --gold: #ff006e;
  /* hot pink — the new "accent" */
  --gold-light: #ff66a8;
  /* lighter pink */
  --gold-dark: #cc004f;
  /* deeper pink */
  --gold-glow: rgba(255, 0, 110, 0.28);
  --cyan: #00f5d4;
  /* neon cyan — secondary punch */
  --purple: #8338ec;
  /* electric purple — tertiary */
  --text-primary: #f0f0ff;
  --text-secondary: #8585a8;
  --text-muted: #3a3a5c;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --nav-height: 60px;
  --section-padding: 2rem;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* ── 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;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-smooth);
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* ── Grain Overlay ── */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ============================================
   NAVBAR — Niki Sadeki Inspired
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 0, 110, 0.15);
  z-index: 1000;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-smooth);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  width: 100%;
}

/* Brand / Logo */
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 4px;
  color: var(--text-primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.nav-brand span {
  color: var(--gold);
}

/* Typewriter cursor in nav brand */
.nav-cursor {
  color: var(--gold);
  font-weight: 300;
  animation: navCursorBlink 0.75s step-end infinite;
  margin-left: 1px;
}

@keyframes navCursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Nav Right — Social + Resume */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 0, 110, 0.3);
  color: var(--gold);
  font-size: 0.85rem;
  transition: all 0.3s var(--ease-smooth);
}

.social-icons a:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
  transform: scale(1.1);
}

.social-icons a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn-resume {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.4rem 1.2rem;
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
}

.btn-resume:hover {
  background: var(--gold);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--gold-glow);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s var(--ease-smooth);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION — 3 Column Grid
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--bg-primary);
}

/* Ambient Gold Glow */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 0, 110, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Bottom gradient fade */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
  z-index: 2;
}

/* ── Left Column: Name ── */
.hero-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2.5rem;
  z-index: 3;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: 3px;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideUp 0.8s var(--ease-smooth) 0.3s forwards;
}

.hero-name .gold {
  color: var(--gold);
}

.hero-name-dot {
  color: var(--gold);
  font-size: clamp(4rem, 9vw, 8rem);
}

/* ── Center Column: Image ── */
.hero-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 85%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center 40%, rgba(255, 0, 110, 0.12) 0%, rgba(184, 134, 11, 0.06) 40%, transparent 70%);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.1) brightness(1.05) saturate(1.1);
  opacity: 0;
  transform: scale(1.05);
  animation: imageReveal 1.2s var(--ease-smooth) 0.1s forwards;
}

/* Subtle floating animation for the image */
@keyframes floatImage {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-image.loaded {
  animation: floatImage 6s ease-in-out infinite;
}

/* Gold edge glow */
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  z-index: 2;
  opacity: 0.5;
}

/* ── Right Column: Info ── */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  gap: 1.5rem;
  z-index: 3;
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: 3px;
  color: var(--gold);
  line-height: 1;
  opacity: 0;
  transform: translateX(30px);
  animation: fadeSlideLeft 0.8s var(--ease-smooth) 0.5s forwards;
}

.hero-description {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 340px;
  opacity: 0;
  transform: translateX(30px);
  animation: fadeSlideLeft 0.8s var(--ease-smooth) 0.7s forwards;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  opacity: 0;
  transform: translateX(30px);
  animation: fadeSlideLeft 0.8s var(--ease-smooth) 0.9s forwards;
}

.hero-tagline .gold {
  color: var(--gold);
}

/* CTA Buttons */
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s var(--ease-smooth) 1.1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  border-radius: 2px;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s var(--ease-smooth);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 0 30px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
}

.btn-secondary:hover {
  background: rgba(255, 0, 110, 0.1);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.15);
  transform: translateY(-2px);
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
  opacity: 0;
  animation: fadeIn 1s var(--ease-smooth) 1.5s forwards;
}

.scroll-indicator span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollLine 1.5s var(--ease-smooth) infinite;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes imageReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scrollLine {
  0% {
    top: -100%;
  }

  100% {
    top: 100%;
  }
}

/* Gold shimmer accent lines */
.shimmer-line {
  position: absolute;
  width: 1px;
  height: 100%;
  top: 0;
  background: linear-gradient(to bottom,
      transparent,
      rgba(255, 0, 110, 0.05),
      rgba(255, 0, 110, 0.15),
      rgba(255, 0, 110, 0.05),
      transparent);
  pointer-events: none;
  z-index: 0;
}

.shimmer-line:nth-child(1) {
  left: 33.33%;
}

.shimmer-line:nth-child(2) {
  left: 66.66%;
}

/* ── Extra Cool Animations ── */

/* Animated gradient border on project cards */
.project-card {
  position: relative;
  background-clip: padding-box;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 7px;
  background: linear-gradient(135deg, transparent, rgba(255, 0, 110, 0.3), transparent, rgba(255, 0, 110, 0.1));
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover::before {
  opacity: 1;
  animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Typing cursor blink for section labels */
.section-label::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--gold);
  margin-left: 2px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Staggered entrance for project cards */
.project-card:nth-child(1) {
  transition-delay: 0.1s;
}

.project-card:nth-child(2) {
  transition-delay: 0.25s;
}

.project-card:nth-child(3) {
  transition-delay: 0.4s;
}

/* Staggered entrance for skill cards */
.skill-card:nth-child(1) {
  transition-delay: 0s;
}

.skill-card:nth-child(2) {
  transition-delay: 0.08s;
}

.skill-card:nth-child(3) {
  transition-delay: 0.16s;
}

.skill-card:nth-child(4) {
  transition-delay: 0.24s;
}

.skill-card:nth-child(5) {
  transition-delay: 0.32s;
}

.skill-card:nth-child(6) {
  transition-delay: 0.4s;
}

/* Shimmer sweep on hero name */
.hero-name {
  background: linear-gradient(90deg,
      var(--text-primary) 0%,
      var(--text-primary) 40%,
      var(--gold-light) 50%,
      var(--text-primary) 60%,
      var(--text-primary) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeSlideUp 0.8s var(--ease-smooth) 0.3s forwards, shimmerSweep 4s ease-in-out 2s infinite;
}

.hero-name .gold {
  -webkit-text-fill-color: var(--gold);
}

.hero-name-dot {
  -webkit-text-fill-color: var(--gold);
}

@keyframes shimmerSweep {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Float animation for project icons */
.project-placeholder-icon {
  animation: iconFloat 3s ease-in-out infinite;
}

.project-card:nth-child(2) .project-placeholder-icon {
  animation-delay: 0.5s;
}

.project-card:nth-child(3) .project-placeholder-icon {
  animation-delay: 1s;
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-6px) scale(1.05);
  }
}

/* Magnetic button hover */
.btn {
  transition: all 0.4s var(--ease-smooth), transform 0.2s ease;
}

/* Stat number gold glow on count */
.stat-number {
  text-shadow: 0 0 0 transparent;
  transition: text-shadow 0.5s ease;
}

.stat-number.counting {
  text-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

/* Form input focus slide-in underline */
.form-input {
  position: relative;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 2px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: all 0.3s var(--ease-smooth), background-size 0.4s ease;
}

.form-input:focus {
  background-size: 100% 2px;
}

/* ============================================
   SECTION BASE STYLES
   ============================================ */
.section {
  position: relative;
  padding: 6rem 0;
  background: var(--bg-primary);
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 3px;
  color: var(--text-primary);
  line-height: 1;
}

.section-title .gold {
  color: var(--gold);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 500px;
}

.gold {
  color: var(--gold);
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-text.highlight {
  color: var(--text-primary);
  font-weight: 400;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold-dark);
}

/* Stats */
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 0, 110, 0.1);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 0.3rem;
  display: block;
}

/* Skills */
.skills-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.skills-grid {
  display: grid;
  gap: 0.8rem;
}

.skill-card {
  display: grid;
  grid-template-columns: 40px 1fr 120px;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 0, 110, 0.08);
  border-radius: 4px;
  transition: all 0.3s var(--ease-smooth);
}

.skill-card:hover {
  border-color: rgba(255, 0, 110, 0.25);
  background: rgba(255, 0, 110, 0.04);
  transform: translateX(4px);
}

.skill-icon {
  font-size: 1.1rem;
  text-align: center;
  color: var(--gold);
  font-family: var(--font-display);
}

.skill-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s var(--ease-smooth);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 0, 110, 0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.project-card:hover {
  border-color: rgba(255, 0, 110, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 0, 110, 0.05);
}

.project-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 0, 110, 0.08));
}

.project-placeholder-icon {
  font-size: 3rem;
  opacity: 0.6;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all 0.3s var(--ease-smooth);
}

.project-link:hover {
  background: var(--gold);
  color: var(--bg-primary);
}

.project-info {
  padding: 1.5rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 0, 110, 0.08);
  color: var(--gold);
  border-radius: 2px;
  border: 1px solid rgba(255, 0, 110, 0.15);
}

.projects-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 0, 110, 0.08);
  color: var(--gold);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 400;
}

.contact-value:hover {
  color: var(--gold);
}

.contact-value.available {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4ade80;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
}

/* Contact Social Links */
.contact-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 0, 110, 0.1);
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 0, 110, 0.12);
  border-radius: 4px;
  transition: all 0.3s var(--ease-smooth);
}

.contact-social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 0, 110, 0.05);
}

.contact-social-link svg {
  fill: currentColor;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.form-input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 0, 110, 0.12);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: all 0.3s var(--ease-smooth);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--gold);
  background: rgba(255, 0, 110, 0.03);
  box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-primary);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 0, 110, 0.08);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 3px;
  display: block;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color 0.3s var(--ease-smooth);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 110, 0.15), transparent);
  margin: 2rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-quote {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth);
}

.mobile-nav-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-overlay a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 4px;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease-smooth);
}

.mobile-nav-overlay a:hover {
  color: var(--gold);
}

.mobile-nav-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.mobile-nav-social a {
  font-size: 1rem;
}

/* ============================================
   MARQUEE SECTION
   ============================================ */
.marquee-wrapper {
  width: 100%;
  padding: 1.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 0, 110, 0.1);
  border-bottom: 1px solid rgba(255, 0, 110, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  user-select: none;
  position: relative;
  z-index: 5;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 240, 255, 0.2);
  letter-spacing: 4px;
  transition: all 0.5s var(--ease-smooth);
}

.marquee-content span:hover {
  color: var(--gold);
  -webkit-text-stroke: 1px var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
}

.marquee-content .dot {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.4;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   EXPERIENCE UPGRADE: BACKGROUNDS & MODES
   ============================================ */

/* Fixed Background Layer */
.fixed-bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.15;
  transition: opacity 1s var(--ease-smooth);
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0%, rgba(13, 13, 26, 0.4) 60%, var(--bg-primary) 100%);
  transition: all 0.5s var(--ease-smooth);
}

/* Fibonacci SVG Path Styling */
.fib-svg {
  width: 150%;
  height: 150%;
  position: absolute;
  top: -25%;
  left: -25%;
  stroke: var(--gold);
  stroke-width: 0.5px;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  fill: none;
  opacity: 0.4;
  animation: fibDraw 10s linear infinite alternate;
}

@keyframes fibDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Debug Mode Switch */
.debug-toggle-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.debug-btn {
  background: rgba(18, 18, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 0, 110, 0.2);
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.debug-btn:hover {
  border-color: var(--gold);
  background: rgba(255, 0, 110, 0.1);
  transform: translateY(-2px);
}

.debug-txt {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.debug-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 6px;
  height: 6px;
  background: #ff0000;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff0000;
  transition: all 0.3s ease;
}

.status-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* DEBUG MODE ACTIVE STATE */
body.debug-mode {
  --bg-primary: #050510;
  --gold: #00f5d4;
  /* Color swap in debug mode! */
  --gold-glow: rgba(0, 245, 212, 0.3);
}

body.debug-mode .vignette-overlay {
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 245, 212, 0.05) 60%, #050510 100%);
}

body.debug-mode .status-indicator {
  background: #00f5d4;
  box-shadow: 0 0 12px #00f5d4;
}

body.debug-mode .status-label {
  color: #00f5d4;
}

body.debug-mode .fixed-bg-layer {
  opacity: 0.4;
}

body.debug-mode .debug-btn {
  border-color: #00f5d4;
  background: rgba(0, 245, 212, 0.1);
}

/* 💀 THE DESTROYED STATE — DEBUG MODE UI 💀 */
body.debug-mode {
  cursor: crosshair;
  font-family: 'Courier New', Courier, monospace;
}

body.debug-mode h1,
body.debug-mode h2,
body.debug-mode h3 {
  font-family: 'Courier New', monospace !important;
  text-transform: uppercase;
  letter-spacing: -2px;
  text-shadow: 2px 0 rgba(255, 0, 110, 0.5), -2px 0 rgba(0, 245, 212, 0.5);
  animation: txt-jitter 0.2s infinite;
}

/* Random Skew for Sections */
body.debug-mode .hero,
body.debug-mode .section,
body.debug-mode .marquee-wrapper,
body.debug-mode .project-card {
  transform: skewX(-1deg) rotate(-0.5deg);
  border: 1px dashed rgba(0, 245, 212, 0.2) !important;
  filter: contrast(1.1) brightness(0.9) saturate(1.2);
}

body.debug-mode .section:nth-child(even) {
  transform: skewX(1deg) rotate(0.5deg);
}

/* Persistent Scanline Flicker Overlay */
body.debug-mode .scanlines {
  display: block;
  opacity: 0.1;
  pointer-events: none;
  animation: scanline-flicker 0.1s infinite;
}

/* Jitter Animations for Destroyed Mode */
@keyframes txt-jitter {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(1px, -1px);
  }

  50% {
    transform: translate(-1px, 1px);
  }

  75% {
    transform: translate(1px, 1px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes scanline-flicker {
  0% {
    opacity: 0.08;
  }

  50% {
    opacity: 0.15;
  }

  100% {
    opacity: 0.1;
  }
}

/* Show the glitch overlay scanlines permanently in DEBUG */
body.debug-mode #glitchOverlay {
  display: block;
  background: transparent;
  pointer-events: none;
  z-index: 9999;
}

body.debug-mode #glitchOverlay .glitch-layer,
body.debug-mode #glitchOverlay::before {
  display: none;
  /* Hide the transition layers normally */
}

body.debug-mode #glitchOverlay .scanlines {
  display: block !important;
  opacity: 0.15;
}




/* UPGRADED: Cinematic Glitch Transition */
.glitch-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: black;
  display: none;
  pointer-events: none;
  opacity: 0;
}

/* Base Static / Noise Layer */
.glitch-transition-overlay::before {
  content: '';
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.15;
  animation: static-noise 0.15s steps(4) infinite;
}


/* UPGRADED: Cinematic TV Glitch Transition */
.glitch-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: black;
  display: none;
  pointer-events: none;
  filter: url(#wavyFilter);
  overflow: hidden;
}

/* Base Static / Noise Layer */
.glitch-transition-overlay::before {
  content: '';
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.25;
  animation: static-noise 0.1s steps(2) infinite;
}

/* TV Color Bars (SMPTE Style) */
.tv-bars {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  filter: contrast(1.2) brightness(1.1);
  background: linear-gradient(to right,
      #ffffff 14.28%,
      #ffff00 14.28%, #ffff00 28.56%,
      #00ffff 28.56%, #00ffff 42.84%,
      #00ff00 42.84%, #00ff00 57.12%,
      #ff00ff 57.12%, #ff00ff 71.4%,
      #ff0000 71.4%, #ff0000 85.68%,
      #0000ff 85.68%);
}

.glitch-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.glitch-layer.cyan {
  background: rgba(0, 245, 212, 0.4);
  mix-blend-mode: screen;
}

.glitch-layer.pink {
  background: rgba(255, 0, 110, 0.4);
  mix-blend-mode: screen;
}

.glitch-layer.white {
  background: rgba(255, 255, 255, 0.2);
  mix-blend-mode: overlay;
}

/* Digital Scanlines overlay (Intense for TV) */
.scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 50%,
      rgba(0, 0, 0, 0.4) 50%);
  background-size: 100% 6px;
  pointer-events: none;
  z-index: 100001;
  opacity: 0.3;
}

@keyframes static-noise {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-1%, -2%);
  }

  100% {
    transform: translate(1%, 1%);
  }
}

/* ── Fibonacci Background Generator ── 
   (Handled in JS, styled via .fib-svg) */

/* ── "Hanging Text" (Latke Hua) Logic from test.html ── */
.hanging-debug-text {
  display: inline-block;
  transform-origin: top left;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.debug-mode .hanging-debug-text {
  animation: fallSmooth 1.5s ease-out forwards,
    swing 3s ease-in-out infinite 1.5s;
}

@keyframes fallSmooth {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(85deg);
  }
}

@keyframes swing {
  0% {
    transform: rotate(80deg);
  }

  50% {
    transform: rotate(90deg);
  }

  100% {
    transform: rotate(80deg);
  }
}

@keyframes glitch-anim-1 {
  0% {
    clip-path: inset(20% 0 50% 0);
  }

  100% {
    clip-path: inset(40% 0 10% 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip-path: inset(10% 0 80% 0);
  }

  100% {
    clip-path: inset(50% 0 20% 0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .hero-left {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    padding: 2rem;
  }

  .hero-center {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .hero-right {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    padding: 2rem;
  }

  .hero-image-wrapper {
    height: 60vh;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-brand {
    position: relative;
    left: 0;
    transform: none;
    font-size: 1.1rem;
    letter-spacing: 3px;
  }

  .social-icons {
    display: none;
  }

  .btn-resume {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
    min-height: 100vh;
  }

  .hero-center {
    grid-column: 1;
    grid-row: 1 / 2;
  }

  .hero-image-wrapper {
    height: 50vh;
  }

  .hero-left {
    grid-column: 1;
    grid-row: 2 / 3;
    padding: 2rem 1.5rem 1rem;
    justify-content: flex-start;
  }

  .hero-name {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }

  .hero-right {
    grid-column: 1;
    grid-row: 3 / 4;
    padding: 1rem 1.5rem 3rem;
    align-items: flex-start;
  }

  .hero-role {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .hero-description {
    max-width: 100%;
  }

  .scroll-indicator {
    display: none;
  }

  .section {
    padding: 4rem 0;
  }

  .section-container {
    padding: 0 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    gap: 1.5rem;
  }

  .skill-card {
    grid-template-columns: 30px 1fr 80px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-socials {
    flex-wrap: wrap;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-links {
    gap: 1.2rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 1.2rem;
  }

  .hero-left {
    padding: 1.5rem 1.2rem 0.5rem;
  }

  .hero-right {
    padding: 0.5rem 1.2rem 3rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section-container {
    padding: 0 1.2rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .contact-social-link span {
    display: none;
  }
}