/* ============================================
   SUDHANSHU KUMAR PORTFOLIO - CUSTOM STYLES
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --neon-blue: #3b82f6;
  --neon-purple: #8b5cf6;
  --neon-cyan: #06b6d4;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(15, 15, 25, 0.8);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --bg-primary: #030712;
  --bg-secondary: #0f172a;
}

.dark {
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --bg-primary: #030712;
  --bg-secondary: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(15, 20, 40, 0.8);
}

html.light {
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);
  --card-bg: rgba(255, 255, 255, 0.9);
}

/* ---- Base ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

html.light body {
  background-color: #f8fafc;
  color: #0f172a;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  border-radius: 3px;
}

/* ---- Custom Cursor ---- */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  box-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6;
}

.cursor-outline {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor-outline.hover {
  width: 56px;
  height: 56px;
  border-color: rgba(139, 92, 246, 0.7);
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 11px 28px;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.btn-secondary:hover::before {
  opacity: 1;
}

/* ---- Navbar ---- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

html.light #navbar.scrolled {
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
}

.mobile-menu {
  background: rgba(3, 7, 18, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html.light .mobile-menu {
  background: rgba(248, 250, 252, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---- Hero Section ---- */
#hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

html.light #hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
    #f8fafc;
}

/* Animated Grid */
.hero-bg-grid {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 60px;
  }
}

/* Spotlight */
.hero-spotlight {
  background: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Aurora Blobs */
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
}

.aurora-1 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.12);
  top: -100px;
  right: 10%;
  animation-delay: 0s;
}

.aurora-2 {
  width: 300px;
  height: 300px;
  background: rgba(139, 92, 246, 0.1);
  bottom: 10%;
  left: 5%;
  animation-delay: 3s;
}

.aurora-3 {
  width: 250px;
  height: 250px;
  background: rgba(6, 182, 212, 0.08);
  top: 40%;
  right: 30%;
  animation-delay: 5s;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(20px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-15px, 15px) scale(0.95);
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    box-shadow: 0 0 6px #22c55e;
  }

  50% {
    box-shadow: 0 0 12px #22c55e, 0 0 20px rgba(34, 197, 94, 0.4);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  text-align: center;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  margin: 0 auto;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(59, 130, 246, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    top: 6px;
  }

  100% {
    opacity: 0;
    top: 22px;
  }
}

/* ---- Tech Cards (Hero Right) ---- */
.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-width: 120px;
  text-align: center;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: techFloat 6s ease-in-out infinite;
}

.tech-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.card-wp {
  animation-delay: 0s;
}

.card-shopify {
  animation-delay: 1.5s;
}

.card-react {
  animation-delay: 3s;
}

.card-ecom {
  animation-delay: 4.5s;
}

@keyframes techFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

.tech-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-card-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
}

.tech-card-sub {
  font-size: 0.7rem;
  color: #64748b;
}

/* Code Card */
.code-card {
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  width: 200px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.1);
  animation: codeFloat 7s ease-in-out infinite;
}

@keyframes codeFloat {

  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-1deg);
  }

  50% {
    transform: translate(-50%, -54%) rotate(1deg);
  }
}

.code-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #28c840;
}

.code-card-body {
  padding: 14px;
  line-height: 1.7;
}

/* ---- Section Styles ---- */
.section-tag {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #60a5fa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
}

.section-header {
  position: relative;
  z-index: 10;
  width: 100%;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
  margin: 16px auto 0;
}

.section-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.left-glow {
  background: rgba(59, 130, 246, 0.06);
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
}

.right-glow {
  background: rgba(139, 92, 246, 0.06);
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---- About Section ---- */
#about {
  background: var(--bg-secondary);
  position: relative;
}

html.light #about {
  background: #f1f5f9;
}

.illustration-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.dev-illustration {
  position: relative;
  width: 320px;
  height: 320px;
}

.monitor-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monitor-screen {
  width: 260px;
  height: 170px;
  background: #0a0f1e;
  border-radius: 12px 12px 0 0;
  border: 2px solid rgba(59, 130, 246, 0.3);
  padding: 16px;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), inset 0 0 20px rgba(59, 130, 246, 0.05);
  overflow: hidden;
}

.screen-code {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.code-line {
  height: 8px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.2));
  border-radius: 4px;
  animation: codeBlink 3s ease-in-out infinite;
}

.code-line:nth-child(2) {
  animation-delay: 0.3s;
}

.code-line:nth-child(3) {
  animation-delay: 0.6s;
}

.code-line:nth-child(4) {
  animation-delay: 0.9s;
}

.code-line:nth-child(5) {
  animation-delay: 1.2s;
}

.code-line:nth-child(6) {
  animation-delay: 1.5s;
}

.code-line:nth-child(7) {
  animation-delay: 1.8s;
}

.code-line:nth-child(8) {
  animation-delay: 2.1s;
}

@keyframes codeBlink {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.monitor-stand {
  width: 40px;
  height: 20px;
  background: rgba(59, 130, 246, 0.2);
  border-left: 2px solid rgba(59, 130, 246, 0.3);
  border-right: 2px solid rgba(59, 130, 246, 0.3);
}

.monitor-base {
  width: 100px;
  height: 8px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.float-badge {
  position: absolute;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #60a5fa;
  backdrop-filter: blur(10px);
  animation: badgeFloat 4s ease-in-out infinite;
}

.badge-html {
  top: 10%;
  left: 0;
  animation-delay: 0s;
}

.badge-css {
  top: 10%;
  right: 0;
  animation-delay: 1s;
}

.badge-js {
  bottom: 20%;
  left: 0;
  animation-delay: 2s;
}

.badge-wp {
  bottom: 20%;
  right: 0;
  animation-delay: 3s;
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.about-info-card {
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.about-info-card:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

/* ---- Skills Section ---- */
#skills {
  background: var(--bg-primary);
}

html.light #skills {
  background: #f8fafc;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  text-align: center;
  cursor: default;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.skill-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-percent {
  font-size: 0.7rem;
  color: #60a5fa;
  font-weight: 600;
}

/* Service Cards */
.service-card {
  padding: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 16px 50px rgba(59, 130, 246, 0.1);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Projects Section ---- */
#projects {
  background: var(--bg-secondary);
}

html.light #projects {
  background: #f1f5f9;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: default;
  transform-style: preserve-3d;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.project-mockup {
  width: 160px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mockup-bar {
  height: 20px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}

.mockup-bar::before,
.mockup-bar::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.mockup-content {
  padding: 10px;
}

.mockup-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.mockup-hero-img {
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.mockup-btn {
  height: 14px;
  width: 50px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.mockup-grid-item {
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.mockup-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mockup-product {
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-live-btn {
  padding: 10px 24px;
  background: white;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.project-live-btn:hover {
  transform: scale(1.05);
}

.project-info {
  padding: 24px;
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #60a5fa;
}

/* Glassmorphism Utility */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Project Filter Buttons */
.filter-btn {
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Review Cards */
.review-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.review-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* ---- Contact Section ---- */
#contact {
  background: var(--bg-primary);
}

html.light #contact {
  background: #f8fafc;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  outline: none;
}

html.light .form-input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

.form-input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: rgba(59, 130, 246, 0.05);
}

.form-input::placeholder {
  color: #475569;
}

.form-input option {
  background: #0f172a;
  color: white;
}

/* Social Buttons */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  transform: translateY(-2px);
}

.social-whatsapp:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

/* ---- Scroll Reveal Animations ---- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  /* Default to visible so content shows if JS fails */
}

/* Hide only if JS is active (we'll add a js-active class or just rely on GSAP) */
/* Actually, let's keep them hidden only if not revealed */
.reveal-up:not(.revealed),
.reveal-left:not(.revealed),
.reveal-right:not(.revealed) {
  opacity: 0;
}

.reveal-up:not(.revealed) {
  transform: translateY(40px);
}

.reveal-left:not(.revealed) {
  transform: translateX(-40px);
}

.reveal-right:not(.revealed) {
  transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ---- Light Mode Overrides ---- */
html.light .tech-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}

html.light .code-card {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

html.light .monitor-screen {
  background: #1e293b;
}

html.light .project-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
}

html.light .glass-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

html.light .skill-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

html.light .service-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

html.light .about-info-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
}

html.light .hero-bg-grid {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
}

html.light .scroll-mouse {
  border-color: rgba(0, 0, 0, 0.2);
}

html.light .section-bg-glow {
  opacity: 0.5;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-3d-area {
    height: 400px;
  }

  .tech-card {
    padding: 14px 18px;
    min-width: 100px;
  }

  .code-card {
    width: 170px;
  }
}

@media (max-width: 768px) {
  .hero-3d-area {
    height: 320px;
  }

  .tech-card {
    padding: 12px 14px;
    min-width: 90px;
  }

  .tech-card-label {
    font-size: 0.75rem;
  }

  .code-card {
    width: 150px;
    font-size: 0.65rem;
  }

  .dev-illustration {
    width: 260px;
    height: 260px;
  }

  .monitor-screen {
    width: 200px;
    height: 130px;
  }
}

@media (max-width: 640px) {
  .hero-3d-area {
    display: none;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Particle Canvas ---- */
#particle-canvas {
  opacity: 0.6;
}

/* ---- Refined Project Filter ---- */
.filter-btn {
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.filter-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
  color: white;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}


/* ---- Animations Refinements ---- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ---- Bento Grid Styles ---- */
.bento-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
}

.bento-inner {
  position: relative;
  height: 100%;
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  transition: all 0.4s ease;
  z-index: 1;
}

.bento-card:hover .bento-inner {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(59, 130, 246, 0.06), transparent 40%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.bento-card:hover::after {
  opacity: 1;
}

/* ---- Filter Buttons ---- */
.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: white;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* ---- Archive Adjustments ---- */
.projects-grid {
  transition: all 0.5s ease;
}

.archive-project-card {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---- Sticky Contact Buttons ---- */
.sticky-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-btn-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.sticky-btn:hover .sticky-btn-icon {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.sticky-btn-text {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease;
  pointer-events: none;
}

.left-btn .sticky-btn-text {
  transform: translateX(-10px);
}

.sticky-btn:hover .sticky-btn-text {
  opacity: 1;
  transform: translateX(0);
}

/* Specific button shadow for light mode / contrast */
.left-btn .sticky-btn-icon {
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.right-btn .sticky-btn-icon {
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

@media (max-width: 640px) {
  .sticky-btn-text {
    display: none;
    /* Hide text on small mobile screens */
  }

  #sticky-contact {
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
  }
}