/* ==========================================================================
   Premium Portfolio - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);

  --accent-blue: #0071e3;
  --accent-blue-glow: rgba(0, 113, 227, 0.4);
  --accent-gradient: linear-gradient(135deg, #0071e3 0%, #00d4ff 100%);

  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.06);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 12vh, 150px);
  --container-padding: clamp(20px, 5vw, 80px);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  /* Dimensions */
  --nav-height: 80px;
}

/* --------------------------------------------------------------------------
   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-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

::selection {
  background: var(--accent-blue);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: var(--transition-fast);
}

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

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

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: var(--nav-height) var(--container-padding) 60px;
  overflow: hidden;
  background: transparent;
}

/* Animated Background Orbs */
.hero-bg-animation {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #0071e3 0%, #00d4ff 100%);
  top: -15%;
  right: -10%;
  animation-duration: 20s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  bottom: -10%;
  left: -10%;
  animation-duration: 18s;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  top: 40%;
  left: 20%;
  animation-duration: 22s;
  animation-delay: -10s;
}

.orb-4 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #00d4ff 0%, #0071e3 100%);
  bottom: 20%;
  right: 20%;
  animation-duration: 16s;
  animation-delay: -3s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(-30px, -20px) scale(1.02);
  }
}

/* ColorBends Shader Background */




/* Gradient Mesh Overlay */
.gradient-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 113, 227, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* 3D Rotating Code Symbol </> */
.code-symbol-container {
  position: relative;
  margin-bottom: 3rem;
  perspective: 1000px;
}

.code-symbol {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', monospace;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: codeRotate 8s ease-in-out infinite;
  transform-style: preserve-3d;
  position: relative;
}

.code-symbol .bracket {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: bracketPulse 2s ease-in-out infinite;
}

.code-symbol .bracket-left {
  animation-delay: 0s;
}

.code-symbol .bracket-right {
  animation-delay: 0.3s;
}

.code-symbol .slash {
  color: var(--text-primary);
  opacity: 0.9;
  margin: 0 -0.1em;
  animation: slashGlow 3s ease-in-out infinite;
}

@keyframes codeRotate {

  0%,
  100% {
    transform: rotateY(0deg) rotateX(0deg);
  }

  25% {
    transform: rotateY(15deg) rotateX(5deg);
  }

  50% {
    transform: rotateY(0deg) rotateX(-5deg);
  }

  75% {
    transform: rotateY(-15deg) rotateX(5deg);
  }
}

@keyframes bracketPulse {

  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.05);
    filter: brightness(1.2);
  }
}

@keyframes slashGlow {

  0%,
  100% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }

  50% {
    text-shadow: 0 0 40px rgba(0, 113, 227, 0.6), 0 0 80px rgba(0, 212, 255, 0.4);
  }
}

.code-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, var(--accent-blue-glow) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.5;
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Hero Text */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-greeting {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  min-height: 1.2em;
}

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

.cursor {
  color: var(--accent-blue);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-tertiary);
  max-width: 500px;
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  margin-top: 2rem;
  background: var(--accent-blue);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
  opacity: 0;
  transition: var(--transition-fast);
}

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

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

.btn-primary svg {
  transition: var(--transition-fast);
}

.btn-primary:hover svg {
  transform: translate(2px, -2px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  animation: scrollEntry 1s ease 2s forwards;
  opacity: 0;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 10;
}

@keyframes scrollEntry {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(5px);
}

.scroll-indicator svg {
  animation: scrollBounce 2s infinite;
  filter: drop-shadow(0 0 10px var(--accent-blue-glow));
}

@keyframes scrollBounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* --------------------------------------------------------------------------
   Portfolio Section - Horizontal Scroll
   -------------------------------------------------------------------------- */
.portfolio {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  padding: 0 var(--container-padding);
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Horizontal Scroll Container */
.portfolio-scroll-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.portfolio-scroll-container::-webkit-scrollbar {
  display: none;
}

.portfolio-scroll-container:active {
  cursor: grabbing;
}

.portfolio-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.portfolio-container::-webkit-scrollbar {
  display: none;
}

.portfolio-track {
  display: flex;
  gap: 3rem;
  padding: 4rem var(--container-padding);
  width: max-content;
}

/* Project Cards */
.project-card {
  flex-shrink: 0;
  width: clamp(600px, 80vw, 900px);
  height: 500px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  scroll-snap-align: center;
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 80px var(--accent-blue-glow);
}

.project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
  z-index: 1;
  opacity: 0.1;
}

.project-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  transition: var(--transition-smooth);
}

.project-card:hover .project-gradient {
  transform: scale(1.1);
  opacity: 1;
}

/* Gradient variations for each project */
.gradient-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-4 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.gradient-5 {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.gradient-6 {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.project-info {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  padding: 2rem;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  z-index: 5;
  transition: transform 0.4s ease, border-color 0.3s ease;
}

.project-card:hover .project-info {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.project-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.project-link:hover {
  color: var(--accent-blue);
}

.project-link svg {
  transition: var(--transition-fast);
}

.project-link:hover svg {
  transform: translate(3px, -3px);
}

/* Scroll Hint */
.portfolio-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 2rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-weight: 500;
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(5px);
  }
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
  padding: var(--section-padding) var(--container-padding);
  position: relative;
  overflow: hidden;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: floatShape 10s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--accent-blue);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: #764ba2;
  top: 20%;
  left: 30%;
  animation-delay: -3s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: #00d4ff;
  bottom: 20%;
  right: 30%;
  animation-delay: -6s;
}

@keyframes floatShape {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.about-content {
  position: relative;
  z-index: 2;
}

.about-text {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.text-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-slow);
}

.text-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

.stat-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.special-stat {
  align-items: center;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
  padding: var(--section-padding) var(--container-padding);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact-header {
  margin-bottom: 3rem;
}

.contact-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 3rem;
  transition: var(--transition-smooth);
  position: relative;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-blue);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.contact-email:hover::after {
  transform: scaleX(1);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  /* Reduced from 4rem since we have content below */
}

.footer-contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.contact-info-link {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-info-link:hover {
  color: var(--accent-blue);
}

.separator {
  color: var(--text-tertiary);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--card-hover);
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

.social-link svg {
  transition: var(--transition-fast);
}

.social-link:hover svg {
  transform: translate(2px, -2px);
}

.contact-footer {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.contact-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-blue-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Process / Features Section
   -------------------------------------------------------------------------- */
.process {
  padding: var(--section-padding) 0;
  position: relative;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.process-header {
  text-align: center;
  margin-bottom: 6rem;
}

.pricing-hero-title {
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 1.5rem 0;
  text-transform: uppercase;
}

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

/* Process / Features Section - Aurora Background Container */
.process-bg-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.process-flow {
  max-width: 900px;
  margin: 4rem auto 0;
}

.service-card {
  background: var(--card-bg);
  border-radius: 40px;
  padding: 4rem;
  position: relative;
  transition: var(--transition-smooth);
  overflow: hidden;
}

/* Animated border light effect */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 40px;
  padding: 2px;
  background: linear-gradient(90deg, transparent 0%, transparent 40%, var(--accent-blue) 50%, transparent 60%, transparent 100%);
  background-size: 300% 100%;
  animation: borderSlide 16s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes borderSlide {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.service-card:hover::before {
  animation-duration: 2s;
  background: linear-gradient(90deg, transparent 0%, transparent 30%, var(--accent-blue) 50%, transparent 70%, transparent 100%);
  background-size: 300% 100%;
}

.service-card:hover {
  box-shadow: 0 40px 80px rgba(0, 113, 227, 0.15);
}

.service-hook {
  text-align: center;
  margin-bottom: 3rem;
}

.hook-badge {
  display: inline-block;
  background: var(--accent-blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hook-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hook-text {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.service-divider {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
  opacity: 0.3;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--text-tertiary), transparent);
}

.divider-icon {
  color: var(--accent-blue);
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(5px);
  }

  60% {
    transform: translateY(3px);
  }
}

.service-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.features-list li {
  font-size: 1.125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 15px;
}

.features-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent-blue);
  border-radius: 50%;
}

.service-pricing {
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: 30px;
  border: 1px solid var(--card-border);
  text-align: center;
}

.service-pricing .price {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.service-pricing .price .label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.service-pricing .price .amount {
  font-size: 4rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-note {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-style: italic;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .service-card {
    padding: 2.5rem;
  }

  .service-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hook-title {
    font-size: 1.75rem;
  }

  .service-pricing .price .amount {
    font-size: 3rem;
  }
}

/* Utils */
.text-center {
  text-align: center;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Hero Element Entry Animations */
.hero-entry {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

body.loaded .hero-entry {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger Delays for "Cascade" Effect */
.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

/* Existing Scroll Animations (kept for non-hero sections) */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered animations */
.fade-in-up[data-animate] {
  animation: none;
  opacity: 0;
  transform: translateY(30px);
}

.fade-in-up[data-animate].visible {
  animation: fadeInUp 0.8s ease forwards;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-container {
    /* grid-template-columns: 1fr; Remove grid */
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .about {
    padding-top: 20px;
    /* Reduced from section-padding */
  }

  /* Extract children for ordering */
  .about-content {
    display: contents;
  }

  .section-label {
    order: 1;
    text-align: center;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .pc-card-wrapper {
    order: 2;
    width: 100%;
    margin: 1rem 0 2rem 0;
    display: flex;
    justify-content: center;
    /* Center the inner card */
  }

  .section-title {
    order: 3;
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .about-text {
    order: 4;
    text-align: center;
  }

  .about-stats {
    order: 5;
    margin-top: 2rem;
    border-top: none;
    /* Might look better without top border if spacing is adjusted, but let's keep consistent style or adjust */
    width: 100%;
  }



  .project-card {
    width: 300px;
    /* Reduced from 350px */
    height: 400px;
  }

  .contact {
    padding-top: 20px;
    /* Reduced from section-padding */
    min-height: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .cube-container {
    width: 150px;
    height: 150px;
  }

  .cube-face {
    width: 150px;
    height: 150px;
  }

  .cube-front {
    transform: translateZ(75px);
  }

  .cube-back {
    transform: rotateY(180deg) translateZ(75px);
  }

  .cube-right {
    transform: rotateY(90deg) translateZ(75px);
  }

  .cube-left {
    transform: rotateY(-90deg) translateZ(75px);
  }

  .cube-top {
    transform: rotateX(90deg) translateZ(75px);
  }

  .cube-bottom {
    transform: rotateX(-90deg) translateZ(75px);
  }

  .project-card {
    width: 300px;
    height: 400px;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .contact-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .nav-links a {
    font-size: 0.75rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .cube-container {
    width: 120px;
    height: 120px;
  }

  .cube-face {
    width: 120px;
    height: 120px;
  }

  .cube-front {
    transform: translateZ(60px);
  }

  .cube-back {
    transform: rotateY(180deg) translateZ(60px);
  }

  .cube-right {
    transform: rotateY(90deg) translateZ(60px);
  }

  .cube-left {
    transform: rotateY(-90deg) translateZ(60px);
  }

  .cube-top {
    transform: rotateX(90deg) translateZ(60px);
  }

  .cube-bottom {
    transform: rotateX(-90deg) translateZ(60px);
  }

  .project-card {
    width: 80vw;
    /* Make it responsive and smaller than full screen */
    max-width: 300px;
    height: 380px;
  }

  .about-stats {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .stat {
    align-items: center;
  }

  .stat-number {
    font-size: 3.5rem;
    /* Increased size */
    line-height: 1;
  }

  .stat-label {
    font-size: 1rem;
    margin-top: 0.5rem;
  }
}


/* --------------------------------------------------------------------------
   Profile Card - 3D Tilt Effect
   -------------------------------------------------------------------------- */
:root {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-from-center: 0;
  --pointer-from-top: 0.5;
  --pointer-from-left: 0.5;
  --card-opacity: 0;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --background-x: 50%;
  --background-y: 50%;
  --grain: none;
  --icon: none;
  --behind-gradient: none;
  --behind-glow-color: rgba(125, 190, 255, 0.67);
  --behind-glow-size: 25%;
  --inner-gradient: none;
  --sunpillar-1: hsl(2, 100%, 73%);
  --sunpillar-2: hsl(53, 100%, 69%);
  --sunpillar-3: hsl(93, 100%, 69%);
  --sunpillar-4: hsl(176, 100%, 76%);
  --sunpillar-5: hsl(228, 100%, 74%);
  --sunpillar-6: hsl(283, 100%, 73%);
  --sunpillar-clr-1: var(--sunpillar-1);
  --sunpillar-clr-2: var(--sunpillar-2);
  --sunpillar-clr-3: var(--sunpillar-3);
  --sunpillar-clr-4: var(--sunpillar-4);
  --sunpillar-clr-5: var(--sunpillar-5);
  --sunpillar-clr-6: var(--sunpillar-6);
  --card-radius: 30px;
}

.pc-card-wrapper {
  perspective: 500px;
  transform: translate3d(0, 0, 0.1px);
  position: relative;
  touch-action: none;
}

.pc-behind {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y),
      var(--behind-glow-color) 0%,
      transparent var(--behind-glow-size));
  filter: blur(50px) saturate(1.1);
  opacity: calc(0.15 * var(--card-opacity));
  /* Reduced from 0.8 */
  transition: opacity 200ms ease;
}

.pc-card-wrapper:hover,
.pc-card-wrapper.active {
  --card-opacity: 1;
}

.pc-card {
  height: 80svh;
  max-height: 540px;
  display: grid;
  aspect-ratio: 0.718;
  border-radius: var(--card-radius);
  position: relative;
  background-blend-mode: color-dodge, normal, normal, normal;
  animation: glow-bg 12s linear infinite;
  box-shadow: rgba(0, 0, 0, 0.8) calc((var(--pointer-from-left) * 10px) - 3px) calc((var(--pointer-from-top) * 20px) - 6px) 20px -5px;
  transition: transform 1s ease;
  transform: translateZ(0) rotateX(0deg) rotateY(0deg);
  background: rgba(0, 0, 0, 0.9);
  backface-visibility: hidden;
  overflow: hidden;
}

.pc-card:hover,
.pc-card.active {
  transition: none;
  transform: translateZ(0) rotateX(var(--rotate-y)) rotateY(var(--rotate-x));
}

.pc-card-shell.entering .pc-card {
  transition: transform 180ms ease-out;
}

.pc-card-shell {
  position: relative;
  z-index: 1;
}

.pc-card * {
  display: grid;
  grid-area: 1/-1;
  border-radius: var(--card-radius);
  pointer-events: none;
}

.pc-inside {
  inset: 0;
  position: absolute;
  background-image: var(--inner-gradient);
  background-color: rgba(0, 0, 0, 0.9);
  transform: none;
}

.pc-shine {
  mask-image: var(--icon);
  mask-mode: luminance;
  mask-repeat: repeat;
  mask-size: 150%;
  mask-position: top calc(200% - (var(--background-y) * 5)) left calc(100% - var(--background-x));
  transition: filter 0.8s ease;
  filter: brightness(0.66) contrast(1.33) saturate(0.33) opacity(0.1);
  /* Reduced opacity */
  animation: holo-bg 18s linear infinite;
  animation-play-state: running;
  mix-blend-mode: color-dodge;
  pointer-events: none;
}

.pc-shine,
.pc-shine::after {
  --space: 5%;
  --angle: -45deg;
  transform: translate3d(0, 0, 1px);
  overflow: hidden;
  z-index: 3;
  background: transparent;
  background-size: cover;
  background-position: center;
  background-image:
    repeating-linear-gradient(0deg,
      var(--sunpillar-clr-1) calc(var(--space) * 1),
      var(--sunpillar-clr-2) calc(var(--space) * 2),
      var(--sunpillar-clr-3) calc(var(--space) * 3),
      var(--sunpillar-clr-4) calc(var(--space) * 4),
      var(--sunpillar-clr-5) calc(var(--space) * 5),
      var(--sunpillar-clr-6) calc(var(--space) * 6),
      var(--sunpillar-clr-1) calc(var(--space) * 7)),
    repeating-linear-gradient(var(--angle),
      #0e152e 0%,
      hsl(180, 10%, 60%) 3.8%,
      hsl(180, 29%, 66%) 4.5%,
      hsl(180, 10%, 60%) 5.2%,
      #0e152e 10%,
      #0e152e 12%),
    radial-gradient(farthest-corner circle at var(--pointer-x) var(--pointer-y),
      hsla(0, 0%, 0%, 0.1) 12%,
      hsla(0, 0%, 0%, 0.15) 20%,
      hsla(0, 0%, 0%, 0.25) 120%);
  background-position:
    0 var(--background-y),
    var(--background-x) var(--background-y),
    center;
  background-blend-mode: color, hard-light;
  background-size:
    500% 500%,
    300% 300%,
    200% 200%;
  background-repeat: repeat;
  opacity: 0.1;
  /* GLOBAL REDUCTION */
}

.pc-shine::before,
.pc-shine::after {
  content: '';
  background-position: center;
  background-size: cover;
  grid-area: 1/1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.pc-card:hover .pc-shine,
.pc-card.active .pc-shine {
  filter: brightness(0.85) contrast(1.5) saturate(0.5);
  animation-play-state: paused;
  opacity: 0.15;
  /* Reduced from default */
}

.pc-card:hover .pc-shine::before,
.pc-card.active .pc-shine::before,
.pc-card:hover .pc-shine::after,
.pc-card.active .pc-shine::after {
  opacity: 0.2;
  /* Reduced */
}

.pc-shine::before {
  background-image:
    linear-gradient(45deg,
      var(--sunpillar-4),
      var(--sunpillar-5),
      var(--sunpillar-6),
      var(--sunpillar-1),
      var(--sunpillar-2),
      var(--sunpillar-3)),
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), hsl(0, 0%, 70%) 0%, hsla(0, 0%, 30%, 0.2) 90%),
    var(--grain);
  background-size:
    250% 250%,
    100% 100%,
    220px 220px;
  background-position:
    var(--pointer-x) var(--pointer-y),
    center,
    calc(var(--pointer-x) * 0.01) calc(var(--pointer-y) * 0.01);
  background-blend-mode: color-dodge;
  filter: brightness(calc(2 - var(--pointer-from-center))) contrast(calc(var(--pointer-from-center) + 2)) saturate(calc(0.5 + var(--pointer-from-center)));
  mix-blend-mode: luminosity;
  opacity: 0.1;
  /* Reduced */
}

.pc-shine::after {
  background-position:
    0 var(--background-y),
    calc(var(--background-x) * 0.4) calc(var(--background-y) * 0.5),
    center;
  background-size:
    200% 300%,
    700% 700%,
    100% 100%;
  mix-blend-mode: difference;
  filter: brightness(0.8) contrast(1.5);
}

.pc-glare {
  transform: translate3d(0, 0, 1.1px);
  overflow: hidden;
  background-image: radial-gradient(farthest-corner circle at var(--pointer-x) var(--pointer-y),
      hsl(248, 25%, 80%) 12%,
      hsla(207, 40%, 30%, 0.8) 90%);
  mix-blend-mode: overlay;
  filter: brightness(0.8) contrast(1.2);
  z-index: 4;
  opacity: 0.15;
  /* Reduced */
}

.pc-avatar-content {
  mix-blend-mode: normal;
  /* Fixed: normal blend mode */
  overflow: visible;
  transform: translateZ(2px);
  backface-visibility: hidden;
  z-index: 20;
  /* Ensure this is above other content */
}

.pc-avatar-content .avatar {
  width: 100%;
  position: absolute;
  left: 50%;
  transform-origin: 50% 100%;
  transform: translateX(calc(-50% + (var(--pointer-from-left) - 0.5) * 6px)) translateZ(0) scaleY(calc(1 + (var(--pointer-from-top) - 0.5) * 0.02)) scaleX(calc(1 + (var(--pointer-from-left) - 0.5) * 0.01));
  bottom: -1px;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 120ms ease-out;
  mix-blend-mode: normal;
  /* Fixed: normal blend mode */
}

.pc-avatar-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  backdrop-filter: none;
  pointer-events: none;
}

.pc-user-info {
  position: absolute;
  --ui-inset: 20px;
  --ui-radius-bias: 6px;
  bottom: var(--ui-inset);
  left: var(--ui-inset);
  right: var(--ui-inset);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(max(0px, var(--card-radius) - var(--ui-inset) + var(--ui-radius-bias)));
  padding: 12px 14px;
  border-radius: calc(max(0px, var(--card-radius) - var(--ui-inset) + var(--ui-radius-bias)));
  padding: 12px 14px;
  pointer-events: auto;
  transform: translateZ(30px);
  /* Bring interaction layer forward */
}

.pc-user-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.pc-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pc-user-text {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.pc-handle {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.pc-status {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

.pc-insta-link {
  font-size: 11px;
  color: #fff;
  text-decoration: none;
  margin-top: 4px;
  pointer-events: auto;
  font-weight: 600;
  transition: opacity 0.3s ease;
  display: inline-block;
}

.pc-insta-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.pc-contact-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.pc-contact-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.pc-content:not(.pc-avatar-content) {
  max-height: 100%;
  overflow: hidden;
  text-align: center;
  position: relative;
  transform: translate3d(calc(var(--pointer-from-left) * -6px + 3px),
      calc(var(--pointer-from-top) * -6px + 3px),
      0.1px);
  z-index: 5;
  mix-blend-mode: normal;
  pointer-events: none;
  /* Ensure text content doesn't block clicks below */
  /* Fixed: normal blend mode */
}

.pc-details {
  width: 100%;
  position: absolute;
  top: 3em;
  display: flex;
  flex-direction: column;
}

.pc-details h3 {
  font-weight: 600;
  margin: 0;
  font-size: min(5svh, 3em);
  margin: 0;
  background-image: linear-gradient(to bottom, #fff, #6f6fbe);
  background-size: 1em 1.5em;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.pc-details p {
  font-weight: 600;
  position: relative;
  top: -12px;
  white-space: nowrap;
  font-size: 16px;
  margin: 0 auto;
  width: min-content;
  background-image: linear-gradient(to bottom, #fff, #4a4ac0);
  background-size: 1em 1.5em;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

@keyframes glow-bg {
  0% {
    --bgrotate: 0deg;
  }

  100% {
    --bgrotate: 360deg;
  }
}

@keyframes holo-bg {
  0% {
    background-position:
      0 var(--background-y),
      0 0,
      center;
  }

  100% {
    background-position:
      0 var(--background-y),
      90% 90%,
      center;
  }
}

@media (max-width: 768px) {
  .pc-card {
    height: 70svh;
    max-height: 450px;
  }

  .pc-details {
    top: 2em;
  }

  .pc-details h3 {
    font-size: min(4svh, 2.5em);
  }

  .pc-details p {
    font-size: 14px;
  }

  .pc-user-info {
    --ui-inset: 15px;
    padding: 10px 12px;
  }

  .pc-mini-avatar {
    width: 28px;
    height: 28px;
  }

  .pc-user-details {
    gap: 10px;
  }

  .pc-handle {
    font-size: 13px;
  }

  .pc-status {
    font-size: 10px;
  }

  .pc-contact-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .pc-card {
    height: 60svh;
    max-height: 380px;
  }

  .pc-details {
    top: 1.5em;
  }

  .pc-details h3 {
    font-size: min(3.5svh, 2em);
  }

  .pc-details p {
    font-size: 12px;
    top: -8px;
  }

  .pc-user-info {
    --ui-inset: 12px;
    padding: 8px 10px;
  }

  .pc-mini-avatar {
    width: 24px;
    height: 24px;
  }

  .pc-user-details {
    gap: 8px;
  }

  .pc-handle {
    font-size: 12px;
  }

  .pc-status {
    font-size: 9px;
  }

  .pc-contact-btn {
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 50px;
  }
}

@media (max-width: 320px) {
  .pc-card {
    height: 55svh;
    max-height: 320px;
  }

  .pc-details h3 {
    font-size: min(3svh, 1.5em);
  }

  .pc-details p {
    font-size: 11px;
  }

  .pc-user-info {
    padding: 6px 8px;
  }

  .pc-mini-avatar {
    width: 20px;
    height: 20px;
  }

  .pc-user-details {
    gap: 6px;
  }

  .pc-handle {
    font-size: 11px;
  }

  .pc-status {
    font-size: 8px;
  }

  .pc-contact-btn {
    padding: 4px 8px;
    font-size: 9px;
    border-radius: 50px;
  }
}

/* --------------------------------------------------------------------------
   Staggered Burger Menu
   -------------------------------------------------------------------------- */
.staggered-menu-wrapper {
  position: absolute;
  /* Changed from relative to integrate with header */
  /* width: 100%; height: 100%; - Removed to fit in nav */
  z-index: 40;
  pointer-events: none;
  top: 0;
  right: 0;
}

.staggered-menu-wrapper.fixed-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
  /* Pointer events controlled by JS state */
}

/* Ensure wrapper covers screen only when open */
.staggered-menu-wrapper.menu-open {
  pointer-events: auto;
}

.top-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5%;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  height: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: auto;
}

.top-nav-left .nav-logo {
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  transition: opacity 0.3s ease;
}

.top-nav-left .nav-logo:hover {
  opacity: 0.8;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.top-nav-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-family: var(--font-main);
  font-weight: 500;
}

.top-nav-info .separator {
  color: #2563eb;
  font-weight: 800;
}

.top-nav-info a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.top-nav-info a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .top-nav-info {
    display: none;
    /* Hide detailed info on mobile to save space */
  }
}

.sm-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  /* Increased gap */
  background: transparent;
  /* Bg handled by pseudo-element */
  border: none;
  /* Border handled by pseudo-element */
  padding: 12px 24px;
  /* Larger padding */
  border-radius: 50px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  /* Bolder text */
  line-height: 1;
  overflow: hidden;
  font-family: var(--font-main);
  font-size: 16px;
  /* Larger font */
  z-index: 1;
}

/* Rotating Border Background */
.sm-toggle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, transparent, transparent, var(--accent-blue));
  animation: rotateBorder 4s linear infinite;
  z-index: -2;
}

/* Inner Background to hide the center of the conic gradient */
.sm-toggle::after {
  content: '';
  position: absolute;
  inset: 2px;
  /* Thickness of the border */
  background: rgba(10, 10, 10, 0.9);
  /* Dark background */
  border-radius: 48px;
  z-index: -1;
  backdrop-filter: blur(10px);
}

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.sm-toggle:hover::before {
  animation-duration: 2s;
  /* Speed up on hover */
  background: conic-gradient(transparent, var(--accent-blue), var(--accent-blue));
}

.sm-toggle:focus-visible {
  outline: none;
}

.sm-toggle-textWrap {
  position: relative;
  display: inline-block;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  min-width: 3.5ch;
  text-align: left;
}

.sm-toggle-textInner {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.sm-toggle-line {
  display: block;
  height: 1em;
  line-height: 1;
}

.sm-icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.sm-icon-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.sm-icon-line-v {
  transform: translate(-50%, -50%) rotate(90deg);
}

.staggered-menu-panel {
  position: fixed;
  /* Fixed for full screen overlay effect */
  top: 0;
  right: 0;
  width: clamp(300px, 40vw, 500px);
  height: 100vh;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 8em 3em 3em 3em;
  overflow-y: auto;
  z-index: 9998;
  pointer-events: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sm-prelayers {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(300px, 40vw, 500px);
  pointer-events: none;
  z-index: 9997;
  height: 100vh;
}

.sm-prelayer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
}

.sm-panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sm-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sm-panel-itemWrap {
  position: relative;
  overflow: hidden;
  line-height: 1.1;
  padding: 5px 0;
}

.sm-panel-item {
  position: relative;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  cursor: pointer;
  line-height: 1;
  letter-spacing: -2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  display: inline-block;
  text-decoration: none;
  padding-right: 0.5em;
  /* Space for number */
}

.sm-panel-item:hover {
  color: var(--color-accent);
  /* Electric Blue */
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
}

.sm-panel-itemLabel {
  display: inline-block;
  will-change: transform;
  transform-origin: 50% 100%;
}

/* Numbering style (01, 02...) */
.sm-panel-list[data-numbering] {
  counter-reset: smItem;
}

.sm-panel-list[data-numbering] .sm-panel-item::after {
  counter-increment: smItem;
  content: counter(smItem, decimal-leading-zero);
  position: absolute;
  top: 0.1em;
  right: -0.5em;
  /* Shift right */
  font-size: 0.4em;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
  opacity: var(--sm-num-opacity, 0);
  font-family: 'JetBrains Mono', monospace;
}

.sm-socials {
  margin-top: auto;
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sm-socials-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
}

.sm-socials-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sm-socials-link {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.sm-socials-link:hover {
  color: #fff;
}

.sm-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sm-contact-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: var(--font-main);
  font-weight: 500;
}

.sm-contact-link:hover {
  color: #fff;
}

@media (max-width: 480px) {

  .staggered-menu-panel,
  .sm-prelayers {
    width: 100%;
    /* Full width on mobile */
  }

  .sm-panel-item {
    font-size: 3rem;
  }
}

/* --------------------------------------------------------------------------
   Nuclear Fix for Avatar Visibility
   Force override all potential stacking/blending issues
   -------------------------------------------------------------------------- */
.pc-avatar-content {
  mix-blend-mode: normal !important;
  z-index: 20 !important;
  /* Force on top of glare/shine */
  opacity: 1 !important;
  visibility: visible !important;
}

.pc-avatar-content .avatar {
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.pc-content:not(.pc-avatar-content) {
  mix-blend-mode: normal !important;
  /* Ensure text doesn't blend weirdly */
  background: transparent !important;
  z-index: 25 !important;
  /* Text above avatar */
}

/* --------------------------------------------------------------------------
   Firefox Stacking Context Fix V2
   Ensure 3D context is preserved through the hierarchy
   -------------------------------------------------------------------------- */
.pc-card,
.pc-inside,
.pc-avatar-content,
.pc-content {
  transform-style: preserve-3d !important;
}

.pc-inside {
  overflow: visible !important;
  /* Allow elements to pop out in 3D */
}

.pc-avatar-content {
  transform: translateZ(50px) !important;
}

/* Ensure text is also pushed, but slightly less or more depending on design */
.pc-content:not(.pc-avatar-content) {
  transform: translateZ(60px) !important;
}

/* --------------------------------------------------------------------------
   Firefox Visibility Fix V3 - Backface Visibility
   Firefox often hides elements with backface-visibility: hidden during 3D transforms.
   -------------------------------------------------------------------------- */
.pc-avatar-content,
.avatar {
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
  will-change: auto !important;
  /* Disable potential optimization glitches */
}