/* app.css — bundled styles (order preserved): styles.css + fixes.css + final-optimizations.css */

/* ===== BEGIN styles.css ===== */
/* ===== CSS RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables now consolidated in assets/theme.css */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  background: transparent;
  color: var(--text-primary);
  line-height: var(--line-height-normal);
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

h1,
.heading-xxl {
  font-size: var(--font-size-xxl);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 0.5em;
}

h2,
.heading-xl {
  font-size: var(--font-size-xl);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h3,
.heading-lg {
  font-size: var(--font-size-lg);
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 0.5em;
}

p,
.text-body {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin: 0 0 1.25em;
  font-weight: 400;
}

small,
.text-sm {
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

/* Text Selection */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(139, 92, 246, 0.3);
  color: #ffffff;
}

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

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -999;
  background: radial-gradient(
    circle at 50% 15%,
    rgba(45, 30, 90, 0.08) 0%,
    rgba(18, 12, 40, 0.05) 35%,
    rgba(5, 3, 15, 0.92) 70%,
    #000000 100%
  );
}

/* CSS Stars - dense starfield with multiple layers */
.bg-animation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
        /* Layer 1 - Bright white stars */
    radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, transparent 1px),
    /* Layer 2 - Periwinkle/purple tinted stars */
    radial-gradient(circle, rgba(159, 122, 234, 0.9) 0%, transparent 1.5px),
    radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, transparent 1.5px),
    /* Layer 3 - Distant dimmer stars */
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 0.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 0.5px);
  background-size:
    250px 250px,
    270px 270px,
    300px 300px,
    320px 320px,
    200px 200px,
    230px 230px,
    180px 180px,
    190px 190px;
  background-position:
    0 0,
    40px 60px,
    80px 20px,
    120px 100px,
    20px 80px,
    140px 40px,
    60px 120px,
    100px 80px;
  background-repeat: repeat;
  animation: starTwinkle 8s ease-in-out infinite;
  will-change: opacity;
  transform: translateZ(0);
}

/* Shooting stars - subtle and random */
.bg-animation::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    radial-gradient(
      600px 450px at 18% 20%,
      rgba(88, 28, 135, 0.18),
      transparent 65%
    ),
    radial-gradient(
      700px 500px at 82% 35%,
      rgba(14, 116, 144, 0.12),
      transparent 70%
    ),
    radial-gradient(
      520px 420px at 60% 78%,
      rgba(59, 130, 246, 0.1),
      transparent 68%
    );
  opacity: 0.45;
  mix-blend-mode: screen;
  filter: blur(0.5px);
}

.shooting-star {
  position: fixed;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.8);
  opacity: 0;
  pointer-events: none;
  z-index: -998;
}

.shooting-star::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
  transform: translateX(-80px);
}

@keyframes shootingStar {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-45deg);
  }
  5% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-300px, 300px) rotate(-45deg);
  }
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    var(--accent-primary),
    var(--accent-tertiary)
  );
  opacity: 0.05;
  animation: float 25s infinite ease-in-out;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  filter: blur(40px);
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  animation-delay: -10s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 30%;
  right: 30%;
  animation-delay: -15s;
}

.shape-5 {
  width: 140px;
  height: 140px;
  top: 10%;
  left: 60%;
  animation-delay: -7s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -30px, 0);
  }
}

@keyframes starTwinkle {
  0% {
    opacity: 0.3;
  }
  20% {
    opacity: 0.7;
  }
  40% {
    opacity: 1;
  }
  60% {
    opacity: 0.5;
  }
  80% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.3;
  }
}

@keyframes planetFloat {
  0%,
  100% {
    opacity: 0.8;
    transform: translateY(0px) translateX(0px) scale(1);
  }
  33% {
    opacity: 0.9;
    transform: translateY(-15px) translateX(5px) scale(1.03);
  }
  66% {
    opacity: 0.85;
    transform: translateY(-5px) translateX(-5px) scale(1.01);
  }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  z-index: 1000;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  transform: translateY(0);
  opacity: 1;
}

.navbar.navbar-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
}

.nav-menu {
  margin-left: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo .logo-text {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-tertiary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
  /* Prevent gradient bleeding */
  background-origin: padding-box;
  background-size: 100% 100%;
  line-height: 1;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.7rem;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-tertiary);
  transition: var(--transition-fast);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  position: relative;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-toggle i {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.dropdown-menu {
  position: absolute;
  top: 48px;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(15, 15, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  z-index: 1200;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown.open .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-link:hover {
  color: var(--text-primary);
}

.dropdown:hover .dropdown-toggle,
.dropdown.open .dropdown-toggle {
  color: var(--text-primary);
}

.nav-social {
  display: flex;
  gap: 15px;
}

.social-link {
  color: var(--text-secondary);
  font-size: 18px;
  transition: var(--transition-fast);
}

.social-link:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: 52px 20px 30px;
  background: linear-gradient(
    180deg,
    rgba(139, 92, 246, 0.06) 0%,
    rgba(139, 92, 246, 0.05) 20%,
    rgba(80, 60, 120, 0.05) 40%,
    rgba(5, 2, 8, 0.08) 60%,
    rgba(3, 1, 6, 0.04) 80%,
    transparent 100%
  );
  backdrop-filter: none;
}

.hero--full {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  justify-items: start;
}

.hero-text {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-title {
  font-size: var(--font-size-xxl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: var(--line-height-tight);
  margin-bottom: 24px;
}

.greeting {
  display: block;
  font-size: 0.6em;
  color: var(--text-secondary);
  font-weight: 400;
}

.name {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  margin-bottom: 32px;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.typing-text {
  color: var(--accent-primary);
  font-weight: 500;
}

.cursor {
  color: var(--accent-primary);
  animation: blink 0.8s infinite ease-in-out;
  will-change: opacity; /* Optimize for animation */
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.hero-description {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: var(--line-height-relaxed);
  max-width: 600px;
}

.hero-description.highlight {
  font-size: var(--font-size-lg);
  color: var(--accent-primary);
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
  padding: 25px 0;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.stat-item {
  text-align: center;
  padding: 10px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 5px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 15px;
}

.hero-buttons .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  padding: 10px 16px;
}

@media (max-width: 768px) {
  .hero-buttons {
    grid-template-columns: 1fr;
  }

  .hero-buttons .btn {
    font-size: 0.9rem;
    padding: 12px 24px;
  }
}

.btn-large {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
}

.hero-cta-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: left;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 5px;
}

.hero-cta-note i {
  color: var(--accent-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.32);
  color: #94a3b8;
}

.btn-primary {
  background: transparent !important;
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
  transition: var(--transition-fast);
  border: 1px solid var(--accent-primary) !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1) !important;
  border-color: var(--accent-primary) !important;
}

/* LinkedIn button specific glow effect */
.btn-primary[href*="linkedin"]:hover {
  box-shadow:
    0 8px 25px rgba(139, 92, 246, 0.6),
    0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
  background: transparent !important;
  color: #94a3b8;
  border: 1px solid rgba(139, 92, 246, 0.32) !important;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(139, 92, 246, 0.1) !important;
  border-color: var(--accent-primary) !important;
  color: #fff;
}

/* ===== CODE BLOCK VISUAL ===== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-block {
  background: transparent;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 320px;
  width: 100%;
}

.code-header {
  background: #000000;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}
/* ===== REVEAL ON SCROLL ANIMATIONS ===== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(5px);
  will-change: opacity, transform, filter;
  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),
    filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Stagger Delays */
.reveal-delay-100 {
  transition-delay: 100ms;
}
.reveal-delay-200 {
  transition-delay: 200ms;
}
.reveal-delay-300 {
  transition-delay: 300ms;
}
.reveal-delay-400 {
  transition-delay: 400ms;
}
.reveal-delay-500 {
  transition-delay: 500ms;
}

/* Stagger Children Helper */
.stagger-children > *:nth-child(1) {
  transition-delay: 50ms;
}
.stagger-children > *:nth-child(2) {
  transition-delay: 100ms;
}
.stagger-children > *:nth-child(3) {
  transition-delay: 150ms;
}
.stagger-children > *:nth-child(4) {
  transition-delay: 200ms;
}
.stagger-children > *:nth-child(5) {
  transition-delay: 250ms;
}
.stagger-children > *:nth-child(6) {
  transition-delay: 300ms;
}

/* ===== REFINED MICRO-INTERACTIONS ===== */

/* Smooth Button Hover */
.btn {
  transform: translateY(0);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease,
    border-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-primary);
  color: #fff;
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px -5px rgba(139, 92, 246, 0.5);
}

/* Shimmer Effect for Primary Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::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: none;
}

.btn-primary:hover::before {
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* Card Hover Lift & Glow */
.project-card,
.article-card {
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease;
}

.project-card:hover,
.article-card:hover {
  transform: translateY(-8px) scale(1.005);
  box-shadow: 0 20px 40px -20px rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.3);
  z-index: 10;
}

/* Link Underlines */
a:not(.btn):not(.nav-link) {
  position: relative;
  text-decoration: none;
}

a:not(.btn):not(.nav-link)::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:not(.btn):not(.nav-link):hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #28ca42;
}

.code-title {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.code-content {
  padding: 20px;
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  background: transparent;
}

.code-line {
  display: block;
  margin-bottom: 2px;
}

/* Rust Syntax Highlighting */
.rust-code .keyword {
  color: #ff79c6;
} /* struct, impl, fn, let */
.rust-code .type {
  color: #8be9fd;
  font-style: italic;
} /* String, Vec, Self */
.rust-code .string {
  color: #f1fa8c;
}
.rust-code .property {
  color: #ffb86c;
} /* fields */
.rust-code .macro {
  color: #ff5555;
} /* vec! */
.rust-code .method {
  color: #50fa7b;
} /* .to_string(), .into() */
.rust-code .function {
  color: #50fa7b;
} /* function names like new() */

/* Code Window Animations */
.code-block {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  will-change: transform;
}

.code-block:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.code-line {
  opacity: 0;
  animation: typeLine 0.5s forwards;
}

/* Staggered animation for code lines */
.code-line:nth-child(1) {
  animation-delay: 0.2s;
}
.code-line:nth-child(2) {
  animation-delay: 0.4s;
}
.code-line:nth-child(3) {
  animation-delay: 0.6s;
}
.code-line:nth-child(4) {
  animation-delay: 0.8s;
}
.code-line:nth-child(5) {
  animation-delay: 1s;
}
.code-line:nth-child(6) {
  animation-delay: 1.2s;
} /* Empty line */
.code-line:nth-child(7) {
  animation-delay: 1.4s;
}
.code-line:nth-child(8) {
  animation-delay: 1.6s;
}
.code-line:nth-child(9) {
  animation-delay: 1.8s;
}
.code-line:nth-child(10) {
  animation-delay: 2s;
}
.code-line:nth-child(11) {
  animation-delay: 2.2s;
}
.code-line:nth-child(12) {
  animation-delay: 2.4s;
}
.code-line:nth-child(13) {
  animation-delay: 2.6s;
}
.code-line:nth-child(14) {
  animation-delay: 2.8s;
}
.code-line:nth-child(15) {
  animation-delay: 3s;
}

@keyframes typeLine {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Cursor Blink at the end of the last line */
.code-line:last-child::after {
  content: "▋";
  display: inline-block;
  margin-left: 5px;
  color: var(--accent-primary);
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  width: auto;
  height: auto;
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-indicator:hover {
  transform: translateX(-50%) scale(1.2);
}

.scroll-indicator:hover .scroll-arrow {
  color: var(--accent-solid);
  animation: bounce 1s infinite;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-solid);
  font-size: 24px;
  cursor: pointer;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-4px);
  color: var(--accent-primary);
}

.back-to-top i {
  animation: bounceUp 2s infinite;
}

.back-to-top:hover i {
  animation: bounceUp 1s infinite;
}

@keyframes bounceUp {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

.scroll-arrow {
  color: var(--accent-primary);
  font-size: 32px;
  animation: bounce 2s infinite;
  display: inline-block;
  line-height: 1;
  width: auto;
  height: auto;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===== SECTION STYLES ===== */
.section-header {
  text-align: center;
  margin-bottom: 80px;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
  padding: 30px 40px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(220, 38, 38, 0);
  box-shadow: none;
  backdrop-filter: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.section-header.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: rgba(220, 38, 38, 0.02);
}

.section-header:hover {
  transform: translateY(-3px) scale(1);
  box-shadow:
    0 8px 30px rgba(139, 92, 246, 0.1),
    0 0 10px rgba(139, 92, 246, 0.03);
  border-color: rgba(139, 92, 246, 0.08);
  background: transparent;
}

.projects .section-header {
  padding-top: 0;
  margin-top: -40px;
}

.about .section-header {
  padding-top: 0;
  margin-top: -50px;
}

/* ===== SUBTLE RED TINT FOR ALL CARDS (EXCEPT BUTTONS & TECH TAGS) ===== */
.project-card,
.skill-category,
.dev-notice,
.contact .contact-info,
.filter-btn {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.02) 0%,
    rgba(15, 10, 24, 0.95) 100%
  ) !important;
  border: 1px solid rgba(220, 38, 38, 0.08) !important;
}

.project-card:hover,
.skill-category:hover,
.filter-btn:hover,
.filter-btn.active {
  border-color: rgba(220, 38, 38, 0.15) !important;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
  max-width: 400px;
}

.divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-primary),
    transparent
  );
  animation: dividerGlow 3s ease-in-out infinite;
}

.divider-icon {
  color: var(--accent-primary);
  font-size: 1.2rem;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes dividerGlow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.section-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: var(--letter-tight);
  margin-bottom: 20px;
  color: var(--primary-solid);
}

.section-subtitle {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
}

/* ===== ABOUT SECTION ===== */
.about {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-padding);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(8, 2, 16, 0.04) 20%,
    rgba(8, 2, 16, 0.08) 40%,
    rgba(8, 2, 16, 0.08) 60%,
    rgba(5, 2, 10, 0.04) 80%,
    transparent 100%
  );
  backdrop-filter: blur(3px);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.about-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-credentials {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.02) 0%,
    rgba(15, 10, 24, 0.95) 100%
  );
  border: 1px solid rgba(220, 38, 38, 0.08);
  border-radius: 16px;
  padding: 30px;
}

.about-credentials h3 {
  font-size: 1.5rem;
  color: var(--primary-solid);
  margin-bottom: 25px;
  text-align: center;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.credential-item i {
  font-size: 2rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.credential-item div {
  display: flex;
  flex-direction: column;
}

.credential-item strong {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 3px;
}

.credential-item span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.about-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 50px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.skill-category {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-medium);
}

.skill-category.skill-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.skill-category.skill-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-primary);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
  color: var(--accent-primary);
  margin-bottom: 20px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category ul {
  list-style-type: disc;
  padding-left: 20px;
}

.skill-category li {
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-left: 5px;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: var(--section-padding);
}

/* Development Notice Banner */
.dev-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(
    135deg,
    rgba(234, 179, 8, 0.15),
    rgba(251, 191, 36, 0.1)
  );
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
}

.dev-notice-icon {
  font-size: 1.5rem;
  color: #fbbf24;
  flex-shrink: 0;
}

.dev-notice-content {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.dev-notice-content strong {
  color: #fbbf24;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  contain: layout;
}

.project-card {
  margin: 0;
  background: rgba(18, 9, 31, 0.6);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.2),
    0 10px 10px -5px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 20px rgba(139, 92, 246, 0.2);
  z-index: 10;
}

.project-card > * {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.project-card .service-link {
  pointer-events: auto;
  z-index: 2;
  position: relative;
}

/* Websites Showcase Section */
.websites-showcase {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.05),
    rgba(34, 211, 238, 0.05)
  );
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  margin-bottom: 4rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.websites-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.websites-intro strong {
  color: var(--primary-color);
}

.websites-grid .project-card {
  background: linear-gradient(135deg, var(--card-bg), rgba(34, 211, 238, 0.03));
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.websites-grid .project-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 20px 40px rgba(34, 211, 238, 0.15);
}

.websites-grid .project-content {
  text-align: center;
}

.websites-grid .project-tech {
  justify-content: center;
}

/* Placeholder cards for upcoming sites */
.placeholder-card {
  opacity: 0.7;
  background: linear-gradient(135deg, var(--card-bg), rgba(139, 92, 246, 0.03));
  border: 1px dashed rgba(139, 92, 246, 0.3);
}

.placeholder-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, var(--card-bg), rgba(139, 92, 246, 0.03));
  cursor: default;
}

.placeholder-card .project-preview {
  opacity: 0.5;
}

.placeholder-card .project-link.disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.placeholder-card .project-overlay {
  display: none;
}

.project-image {
  height: 200px;
  background: var(--gradient-secondary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-preview {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.8);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(139, 92, 246, 0.12) 0%,
    rgba(15, 10, 24, 0) 70%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-medium);
  pointer-events: none;
}

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

.project-link {
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.project-links {
  display: flex;
  gap: 20px;
  pointer-events: none;
}

.project-link {
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  pointer-events: none;
  transition: var(--transition-fast);
}

.project-link:hover {
  background: var(--accent-secondary);
  transform: scale(1.1);
}

.project-content {
  padding: 30px;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag,
.tech-tag.primary {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(139, 92, 246, 0.3);
  transition: var(--transition-fast);
  outline: none;
  display: inline-block;
}

/* ===== PROJECT CATEGORIES ===== */
.project-category {
  margin-bottom: 4rem; /* Space between Professional, Games, Additional sections */
}

.project-category:last-child {
  margin-bottom: 0;
}

.category-header {
  text-align: center;
  margin-bottom: 3rem; /* Consistent with other spacing */
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
  padding: 30px 40px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(220, 38, 38, 0);
  box-shadow: none;
  backdrop-filter: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.category-header.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: rgba(220, 38, 38, 0.02);
}

.category-header:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 30px rgba(139, 92, 246, 0.1),
    0 0 10px rgba(139, 92, 246, 0.03);
  border-color: rgba(139, 92, 246, 0.08);
  background: transparent;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.category-title i {
  color: var(--accent-primary);
  font-size: 1.8rem;
}

.category-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Filter Buttons */
.filter-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--card-bg);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  backdrop-filter: blur(10px);
  outline: none;
}

.filter-btn:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.filter-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.filter-btn.active {
  background: var(--gradient-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.filter-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.filter-btn.active:focus {
  outline: none;
  box-shadow:
    0 4px 20px rgba(139, 92, 246, 0.3),
    0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Featured Projects Grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 20px;
}

.featured-card {
  position: relative;
  background: linear-gradient(135deg, var(--card-bg), rgba(139, 92, 246, 0.05));
  border: 2px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
  border-color: var(--accent-primary);
}

.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
}

.project-badge span {
  background: var(--gradient-primary);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  height: 18px;
}

.project-badge.in-progress span {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.project-badge.featured span {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  animation: featured-glow 3s ease-in-out infinite;
}

@keyframes featured-glow {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(139, 92, 246, 0.6);
  }
}

/* Removed pulse-glow animation for performance */

/* Additional Projects Grid */
.additional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.games-grid .project-card {
  background: linear-gradient(
    135deg,
    var(--card-bg),
    rgba(255, 107, 107, 0.03)
  );
  border: 1px solid rgba(255, 107, 107, 0.1);
}

.games-grid .project-card:hover {
  border-color: rgba(255, 107, 107, 0.3);
  box-shadow: 0 20px 40px rgba(255, 107, 107, 0.15);
}

/* Quick Access for Recruiters */
.recruiter-quick-access {
  background: transparent;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 60px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.recruiter-quick-access h3 {
  color: #ffffff;
  font-size: 1.75rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.recruiter-quick-access p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.quick-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.quick-link {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.02) 0%,
    rgba(139, 92, 246, 0.4) 50%,
    rgba(0, 0, 0, 0.9) 100%
  ) !important;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.8rem;
  transition: var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(220, 38, 38, 0.08) !important;
}

.quick-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
  border-color: rgba(220, 38, 38, 0.15) !important;
}

/* ===== VALUE PROPOSITION SECTION ===== */
.value-prop {
  padding: var(--section-padding);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(8, 2, 16, 0.04) 20%,
    rgba(8, 2, 16, 0.08) 40%,
    rgba(8, 2, 16, 0.08) 60%,
    rgba(5, 2, 10, 0.04) 80%,
    transparent 100%
  );
  backdrop-filter: blur(3px);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.02) 0%,
    rgba(15, 10, 24, 0.95) 100%
  );
  border: 1px solid rgba(220, 38, 38, 0.08);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 38, 38, 0.15);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 15px;
}

.value-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-solid);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.value-cta {
  text-align: center;
  margin-top: 40px;
}

/* ===== QUICK LINKS SECTION ===== */
.quick-links-section {
  padding: 60px 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(8, 2, 16, 0.04) 20%,
    rgba(8, 2, 16, 0.08) 40%,
    rgba(8, 2, 16, 0.08) 60%,
    rgba(5, 2, 10, 0.04) 80%,
    transparent 100%
  );
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.quick-link-card {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.02) 0%,
    rgba(15, 10, 24, 0.95) 100%
  );
  border: 1px solid rgba(220, 38, 38, 0.08);
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.quick-link-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 38, 38, 0.15);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.quick-link-card i {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 5px;
}

.quick-link-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0;
  font-weight: 600;
}

.quick-link-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== PRICING HERO ===== */
.pricing-hero {
  padding: 120px 20px 60px;
  text-align: center;
}

/* ===== BUSINESSES SECTION ===== */
.businesses {
  padding: 0 var(--section-padding) var(--section-padding);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(8, 2, 16, 0.04) 20%,
    rgba(8, 2, 16, 0.08) 40%,
    rgba(8, 2, 16, 0.08) 60%,
    rgba(5, 2, 10, 0.04) 80%,
    transparent 100%
  );
  backdrop-filter: none;
  position: relative;
}

.businesses .section-header {
  margin-top: 60px;
}

.businesses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.business-card {
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.02) 0%,
    rgba(15, 10, 24, 0.95) 100%
  );
  border: 1px solid rgba(220, 38, 38, 0.08);
  border-radius: 16px;
  padding: 40px 35px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.business-card.featured-business {
  border-width: 2px;
}

.business-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-primary);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.business-tagline {
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 20px;
  font-style: italic;
  text-align: center;
}

.business-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 25px 0;
  padding: 20px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: center;
}

.result-item i {
  color: var(--accent-primary);
  font-size: 1.1rem;
  width: 20px;
}

.result-item strong {
  color: var(--accent-primary);
  font-weight: 700;
}

.business-pricing-note {
  margin: 20px 0;
  padding: 12px 15px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
}

.business-cta-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
}

.businesses-combo {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.combo-card {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(15, 10, 24, 0.95) 100%
  );
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 600px;
}

.combo-card h3 {
  font-size: 1.8rem;
  color: var(--accent-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.combo-card p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.7;
}

.combo-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
}

.combo-card ul li {
  padding: 10px 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.combo-card ul li i {
  color: var(--accent-primary);
}

.business-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.business-card:hover {
  transform: translateY(-8px);
  border-color: rgba(220, 38, 38, 0.15);
  box-shadow:
    0 20px 60px rgba(139, 92, 246, 0.15),
    0 0 20px rgba(139, 92, 246, 0.05);
}

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

.business-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.business-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-solid);
  margin-bottom: 10px;
  text-align: left;
}

.business-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.7;
  text-align: center;
}

.business-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  text-align: center;
  margin-bottom: 25px;
  margin-top: 10px;
}

.business-features li {
  padding: 10px 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.95rem;
}

.business-features li i {
  color: var(--accent-primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.business-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 10px;
}

@media (max-width: 1024px) {
  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .hero-buttons {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

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

  .about-content {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .quick-links-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }

  .quick-link-card {
    padding: 15px 10px;
  }

  .quick-link-card i {
    font-size: 1.3rem;
  }

  .quick-link-card h3 {
    font-size: 0.95rem;
  }

  .quick-link-card p {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .quick-link-card {
    padding: 20px 15px;
  }

  .quick-link-card i {
    font-size: 1.5rem;
  }

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

  .hero-visual {
    order: -1;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .businesses-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .business-card {
    padding: 30px 20px;
  }

  .business-icon {
    font-size: 2.5rem;
  }

  .business-results {
    flex-direction: column;
  }

  .contact-benefits {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--section-padding);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(5, 2, 10, 0.02) 25%,
    rgba(8, 2, 16, 0.04) 50%,
    rgba(5, 2, 10, 0.02) 75%,
    transparent 100%
  );
  backdrop-filter: none;
}

.contact-benefits {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.benefit-item i {
  color: var(--accent-primary);
  font-size: 0.9rem;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.github-centered {
  max-width: 400px;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-medium);
}

.contact-item:hover {
  transform: translateX(10px);
  border-color: var(--accent-primary);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-primary);
}

.contact-details h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.contact-details a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-details a:hover {
  color: var(--accent-primary);
}

.contact-cta {
  padding: 40px;
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    rgba(15, 10, 24, 0.98) 0%,
    rgba(15, 10, 24, 0.99) 100%
  ) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.contact-intro {
  text-align: center;
  margin-bottom: 40px;
}

.contact-intro h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.contact-intro p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Contact Form Styles */
.contact-form {
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  text-align: left;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group label.checkbox-label {
  margin-bottom: 12px;
}

.form-group .required {
  color: var(--accent-primary);
  margin-left: 3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-medium);
  outline: none;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

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

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 12px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-medium);
}

.checkbox-option:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-primary);
}

.checkbox-option input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}

.checkbox-option span {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-form button[type="submit"] {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
}

.contact-cta .contact-buttons {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 0.9rem;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
  padding: 4rem 0;
  background: transparent;
}

.newsletter-section .section-container {
  max-width: 800px;
}

/* ===== NEWSLETTER FORM ===== */
.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.newsletter-header {
  text-align: center;
  margin-bottom: 2rem;
}

.newsletter-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.newsletter-title i {
  color: var(--accent-primary);
}

.newsletter-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.newsletter-form-element {
  margin-top: 1.5rem;
}

.newsletter-interests-label {
  display: block;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.newsletter-interests {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-interest-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 20px;
  background: var(--card-bg);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.newsletter-interest-btn:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.newsletter-interest-btn.active {
  background: var(--gradient-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.newsletter-interest-btn.active:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.newsletter-interest-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-submit {
  width: 100%;
  margin-top: 1rem;
  justify-content: center;
}

.newsletter-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.newsletter-message {
  margin-top: 1rem;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.newsletter-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.newsletter-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Newsletter form mobile responsiveness */
@media (max-width: 768px) {
  .newsletter-form {
    padding: 1.5rem;
  }

  .newsletter-title {
    font-size: 1.25rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .newsletter-interests {
    flex-direction: column;
  }

  .newsletter-interest-btn {
    width: 100%;
    min-width: auto;
  }
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

@media (max-width: 768px) {
  .contact-form {
    padding: 20px;
  }

  .checkbox-group {
    gap: 10px;
  }
}

.contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: transparent;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 800px;
  margin: 0 auto;
  backdrop-filter: none;
}

.footer-headline,
.footer-grid,
.footer-column {
  backdrop-filter: none;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}

.footer-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-link,
.brand-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
}

.footer-link:hover,
.brand-link:hover {
  color: var(--accent-solid);
  transform: translateX(4px);
}

.brand-link strong {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding-top: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  margin: 0;
  font-size: inherit;
}

.footer-bottom-links {
  display: flex;
  gap: 12px;
}

.footer-bottom-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .additional-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .footer-top {
    max-width: 100%;
  }

  .footer-status {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 1024px) {
  .contact-content {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    gap: 30px;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

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

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 12px;
    padding: 16px;
    display: none;
    box-shadow: none;
    border-radius: 12px;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown-link {
    justify-content: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

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

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

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

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

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

  .quick-links {
    flex-direction: column;
    align-items: center;
  }

  .quick-link {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .category-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 10px;
  }

  .contact-content {
    gap: 30px;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .contact-cta {
    text-align: center;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .footer-content {
    gap: 24px;
  }

  .footer-actions {
    flex-direction: column;
  }

  .footer-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-column {
    padding: 16px;
  }

  .footer-links {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Center typing text on mobile */
  .hero-subtitle {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 60px 0;
  }

  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 80px 15px 40px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .hero-buttons {
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .filter-btn {
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  .tech-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .code-block {
    max-width: 100%;
  }

  .code-content {
    font-size: 0.8rem;
    padding: 15px;
  }

  .recruiter-quick-access {
    padding: 20px 15px;
  }

  .recruiter-quick-access h3 {
    font-size: 1.2rem;
  }

  /* Fix footer on small mobile */
  .footer {
    padding: 30px 0;
  }

  .footer-content {
    gap: 15px;
    padding: 0 15px;
  }

  .footer-content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .footer-social {
    gap: 15px;
  }

  .footer-social a {
    font-size: 18px;
  }

  /* Center typing text on small mobile too */
  .hero-subtitle {
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
  }
}

/* ===== END styles.css ===== */

/* ===== BEGIN fixes.css ===== */
/*
  fixes.css (clean)
  Purpose: Minimal, targeted overrides for layout corrections, gradient containment, artifact removal,
           and responsive tweaks. Keep specific and standards-compliant. No masking hacks.
*/

/* ===== Base layout protections ===== */
html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Container sizing alignment */
.content-wrapper,
.section-container,
.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navigation: stability and artifact prevention ===== */
/* Note: Base .navbar styles (position, z-index) are defined above (line 228) */
/* This section only adds stability fixes to prevent rendering artifacts */
.navbar {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  overflow: hidden; /* prevent 1px overflow artifacts */
}

.navbar::before,
.navbar::after,
.nav-container::before,
.nav-container::after {
  content: none !important;
  display: none !important;
}

/* Logo gradient containment to avoid thin purple artifacts */
.nav-logo,
.nav-logo .logo-text {
  overflow: hidden;
}

.nav-logo .logo-text {
  -webkit-background-clip: text;
  background-clip: text;
  background-attachment: local;
  position: relative;
  contain: layout paint style;
  transform: translateZ(0);
  clip-path: inset(0);
}

.nav-logo .logo-text::before,
.nav-logo .logo-text::after,
.nav-logo::before,
.nav-logo::after {
  content: none !important;
  display: none !important;
}

/* Remove any stray global pseudo backgrounds that could render as thin lines */
body::before,
body::after {
  background: none !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Allow .bg-animation::before stars to render */

/* ===== Hero offset for fixed navbar ===== */
.hero--full {
  padding-top: calc(70px + 1rem);
  min-height: 100vh;
}

/* ===== Grids: safer defaults ===== */
/* .projects-grid consolidated into main rule above */

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
}

/* Performance hints without being aggressive */
.projects-grid,
.quick-links,
.hero-content,
.project-card {
  contain: layout paint;
  transform: translateZ(0);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 2rem;
    text-align: center;
  }
  .content-wrapper,
  .section-container,
  .nav-container {
    padding: 0 1rem;
  }
  .quick-links {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .projects-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero--full {
    padding-top: calc(70px + 0.5rem);
  }
  .hero-visual {
    display: none;
  }
  .content-wrapper,
  .section-container,
  .nav-container {
    padding: 0 0.75rem;
  }
  .quick-links {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

/* ===== END fixes.css ===== */

/* ===== BEGIN final-optimizations.css ===== */
/* Final Performance Optimizations */

/* ===== CRITICAL CSS INLINING ===== */
/* Above-the-fold styles for instant rendering */
.hero--full {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height */
  display: flex;
  align-items: center;
  background: transparent;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  opacity: 0.9;
}

/* ===== FONT OPTIMIZATION ===== */
/* Optimize font loading and rendering */
@font-face {
  font-family: "Inter";
  font-display: swap;
  font-weight: 300 700;
  src:
    local("Inter"),
    url("https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2")
      format("woff2");
}

/* Preload critical fonts */
body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-display: swap;
}

/* ===== IMAGE OPTIMIZATION ===== */
/* Optimize all images */
img {
  width: auto;
  height: auto;
  max-width: 100%;
}

/* Critical images load immediately */
/* Eager-loading is an HTML attribute; keep CSS clean here */

/* ===== REDUCE LAYOUT SHIFT ===== */
/* Prevent cumulative layout shift */
.project-card {
  min-height: 400px;
  contain: layout style paint;
}

.quick-link {
  min-height: 60px;
  contain: layout style;
}

/* Reserve space for dynamic content */
.typing-text {
  min-height: 1.5em;
  display: inline-block;
}

/* ===== OPTIMIZE ANIMATIONS ===== */
/* Use transform and opacity only for animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ===== ORGASMIC SUBTLE ANIMATIONS ===== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
  }
}

/* Apply animations to sections */
.hero-content > * {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-content > *:nth-child(2) {
  animation-delay: 0.2s;
}

.project-card {
  animation: none;
  opacity: 0;
  transform: translate(0, 40px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.in-view {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Left cards (1, 4, 7, 10, ...) slide left from center */
.project-card:nth-child(3n + 1) {
  transform: translate(0, 40px) scale(0.95);
}

.project-card:nth-child(3n + 1).in-view {
  transform: translate(0, 0) scale(1);
}

/* Right cards (2, 5, 8, 11, ...) slide right from center */
.project-card:nth-child(3n + 2) {
  transform: translate(0, 40px) scale(0.95);
}

.project-card:nth-child(3n + 2).in-view {
  transform: translate(0, 0) scale(1);
}

/* Center cards (3, 6, 9, 12, ...) rise up center */
.project-card:nth-child(3n) {
  transform: translate(0, 40px) scale(0.95);
}

.project-card:nth-child(3n).in-view {
  transform: translate(0, 0) scale(1);
}

.project-card:nth-child(1) {
  transition-delay: 0.05s;
}
.project-card:nth-child(2) {
  transition-delay: 0.1s;
}
.project-card:nth-child(3) {
  transition-delay: 0.15s;
}
.project-card:nth-child(4) {
  transition-delay: 0.2s;
}
.project-card:nth-child(5) {
  transition-delay: 0.25s;
}
.project-card:nth-child(6) {
  transition-delay: 0.3s;
}

.project-card:hover .project-preview {
  transform: scale(1.05) rotate(2deg);
  transition: transform 0.2s ease;
}

.project-card:hover .project-content {
  transform: translateY(-2px);
}

.project-card .project-preview {
  transition: transform 0.2s ease;
}

.project-content {
  transition: transform 0.2s ease;
}

.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(139, 92, 246, 0.4),
    0 0 15px rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-primary);
  color: #fff;
}

.btn i {
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: scale(1.1) rotate(3deg);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-solid);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: var(--accent-solid);
  transform: translateY(-1px);
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.3));
}

.quick-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 10px 25px rgba(139, 92, 246, 0.3),
    0 0 15px rgba(139, 92, 246, 0.15);
  filter: brightness(1.08);
}

.quick-link i {
  transition: transform 0.3s ease;
}

.quick-link:hover i {
  transform: scale(1.15) rotate(5deg);
}

.footer-social a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
  transform: translateY(-3px) rotate(8deg) scale(1.2);
  color: var(--accent-solid);
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

.skill-category {
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 8px 25px rgba(139, 92, 246, 0.25),
    0 0 15px rgba(139, 92, 246, 0.1);
  filter: brightness(1.04);
}

.skill-category h3 {
  transition: transform 0.3s ease;
}

.skill-category:hover h3 {
  transform: translateX(3px);
}

/* Optimize will-change usage */
.project-card:hover,
.quick-link:hover,
.btn:hover {
  will-change: transform;
}

.project-card:not(:hover),
.quick-link:not(:hover),
.btn:not(:hover) {
  will-change: auto;
}

/* ===== REDUCE PAINT COMPLEXITY ===== */
/* Simplify complex visual effects */
/* Note: Base .bg-animation visuals are defined in styles.css to avoid conflicts. */

/* Optimize backdrop filters */
@supports (backdrop-filter: blur(10px)) {
  .project-card,
  .quick-link,
  .navbar {
    backdrop-filter: none;
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .project-card,
  .quick-link,
  .navbar {
    background: transparent;
  }
}

/* ===== OPTIMIZE FOR CORE WEB VITALS ===== */
/* Improve Largest Contentful Paint (LCP) */
.hero-content {
  contain: layout style;
}

/* Improve First Input Delay (FID) */
.btn,
.quick-link,
.nav-link {
  touch-action: manipulation;
}

/* Improve Cumulative Layout Shift (CLS) */
.section-header {
  min-height: 120px;
}

/* ===== NETWORK OPTIMIZATIONS ===== */
/* Optimize resource loading */
.project-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  contain: strict;
}

/* ===== MEMORY OPTIMIZATIONS ===== */
/* Reduce memory usage */
.floating-shapes {
  contain: layout style paint;
  transform: translateZ(0);
}

.shape {
  will-change: auto;
  backface-visibility: hidden;
}

/* ===== BATTERY OPTIMIZATIONS ===== */
/* Reduce CPU usage on mobile */
@media (max-width: 768px) {
  /* Keep background visuals; rely on existing lightweight styles */
  .featured-card:not(.has-manual-badge):not(:has(.project-badge))::before {
    animation: none;
  }
  * {
    animation-duration: 0.2s !important;
  }
}

/* ===== OPTIMIZE FOR SLOW CONNECTIONS ===== */
@media (prefers-reduced-data: reduce) {
  /* Reduce animations for data-saver users without removing visuals entirely */
  .project-card,
  .quick-link {
    backdrop-filter: none;
  }
  .featured-card:not(.has-manual-badge):not(:has(.project-badge))::before {
    animation: none;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== OPTIMIZE FOR LOW-END DEVICES ===== */
@media (max-device-width: 480px) and (max-device-height: 800px) {
  .project-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  .quick-link {
    padding: 0.75rem;
  }
}

/* ===== OPTIMIZE SCROLLING ===== */
/* Smooth scrolling optimizations */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===== OPTIMIZE FOCUS MANAGEMENT ===== */
/* Improve accessibility and performance */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent-solid);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1001;
}

.skip-link:focus {
  top: 6px;
}

/* ===== OPTIMIZE PRINT STYLES ===== */
@media print {
  .bg-animation,
  .floating-shapes,
  .navbar,
  .scroll-indicator {
    display: none !important;
  }

  .hero {
    min-height: auto;
    page-break-inside: avoid;
  }

  .project-card {
    page-break-inside: avoid;
    margin-bottom: 0; /* No margins - grid gap handles spacing */
  }

  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
}

/* ===== OPTIMIZE FOR HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .project-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== BRAND FUNNELING STYLES ===== */
/* Project Service CTAs */
.project-service-cta {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.service-link:hover {
  color: var(--accent-solid);
  text-decoration: underline;
}

.service-link i {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Footer Brands Section */
.footer-brands {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brands h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

.brand-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-link {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: var(--transition-fast);
}

.brand-link:hover {
  color: var(--accent-primary);
}

.brand-link strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Contact Interests */
.contact-interests {
  margin: 30px 0;
  padding: 25px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: var(--border-radius);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.interest-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-weight: 500;
}

.interest-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.interest-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-medium);
  font-size: 0.9rem;
}

.interest-link:hover {
  border-color: var(--accent-primary);
  transform: translateX(5px);
  background: rgba(139, 92, 246, 0.1);
}

.interest-link i {
  color: var(--accent-primary);
  font-size: 1.1rem;
}

/* Articles CTA Sections */
.articles-cta-section {
  margin: 60px 0;
  padding: 40px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.articles-cta-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.articles-cta-content p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.6;
}

.articles-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .articles-cta-buttons {
    flex-direction: column;
  }

  .articles-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .interest-options {
    gap: 10px;
  }

  .brand-links {
    gap: 10px;
  }
}

/* ===== FINAL PERFORMANCE TWEAKS ===== */
/* Micro-optimizations */
.hero-buttons {
  contain: layout;
}

.quick-links {
  contain: layout;
}

/* .projects-grid contain property merged into main rule above */

/* Z-index hierarchy (standardized):
   Background: -999 to -1 (bg-animation: -999, shooting-star: -998)
   Content: 0-100 (project-card content: 1-2, overlays: 5-10)
   Navigation: 1000 (navbar)
   Above nav: 1001+ (back-to-top: 1001, skip-link: 1001)
   Modals/Overlays: 1200+ (dropdown-menu: 1200)
*/
.featured-card::before {
  z-index: 10;
}
.project-overlay {
  z-index: 5;
}

/* Optimize for 120Hz displays */
@media (min-resolution: 120dpi) {
  * {
    animation-duration: 0.15s;
    transition-duration: 0.15s;
  }
}

/* ===== END final-optimizations.css ===== */
