/* ==========================================================================
   Local Preloaded Fonts (Zero Network Delay / 0ms Instant Render)
   ========================================================================== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-800.woff2') format('woff2');
}

:root {
  --bg-color: #f8fafc; /* Slate 50 - Softer white */
  --text-main: #0f172a; /* Slate 900 - Deep dark blue/black for text (WCAG AAA 14.8:1) */
  --text-muted: #475569; /* Slate 600 - Sharp accessible muted text (WCAG AAA 7.2:1) */
  --accent: #10b981; /* Emerald 500 */
  --accent-hover: #059669; /* Emerald 600 */
  --accent-glow: rgba(16, 185, 129, 0.25); /* Adjusted opacity for light mode */
  --glass-bg: rgba(255, 255, 255, 0.7); /* Frosted glass */
  --glass-border: rgba(0, 0, 0, 0.08); /* Dark subtle border */
  --card-hover: rgba(255, 255, 255, 0.98); /* Bright white on hover */
  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Zero-Layout-Shift Base Resets */
.fade-in-on-scroll {
  opacity: 1;
  transform: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-y: scroll; /* Force vertical scrollbar to prevent layout shift */
  scrollbar-gutter: stable;
  scroll-padding-top: 80px;
}

body {
  background-color: transparent !important;
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+ */
  user-select: none; /* Standard */
}

/* ==========================================================================
   Standardized Typography Hierarchy (Headings System)
   ========================================================================== */
.hero-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.75rem, 6vw, 4.25rem) !important; /* 44px mobile, 68px desktop - Flagship Prominent */
  font-weight: 800 !important;
  line-height: 1.12 !important;
  color: var(--text-main) !important;
  letter-spacing: -0.03em !important;
  margin-bottom: 1.5rem !important;
}

h1, .cs-hero-header, .page-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.25rem, 5vw, 3.25rem) !important; /* 36px mobile, 52px desktop */
  font-weight: 800 !important;
  line-height: 1.18 !important;
  color: var(--text-main) !important;
  letter-spacing: -0.025em !important;
}

h2, .section-title, .cs-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.75rem, 3.5vw, 2rem) !important; /* 28px mobile, 32px desktop */
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--text-main) !important;
  letter-spacing: -0.015em !important;
}

h3, .card-title, .project-title, .bento-card-title {
  font-family: var(--font-heading) !important;
  font-size: 1.25rem;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--text-main);
  letter-spacing: -0.01em !important;
}

/* ==========================================================================
   Standardized Typography Hierarchy (Task 2: Subheadings & Subtitles)
   ========================================================================== */
.hero-subtitle,
.section-subtitle,
.cs-lead,
.cs-subtitle,
p.lead {
  font-family: var(--font-body) !important;
  font-size: clamp(1rem, 2vw, 1.125rem) !important; /* 16px mobile, 18px desktop */
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: var(--text-muted) !important; /* #475569 - High Contrast WCAG AAA */
}

/* Allow selection in forms */
input,
textarea {
  -webkit-user-select: auto;
  user-select: auto;
}

/* Custom Global Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Hide scrollbars but allow scrolling (Cross-browser) */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox 64+ */
}

/* Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hero Section Utilities */
.badge-title {
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

.typing-container {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-actions .btn-realism .inner {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-actions .btn-icon-only .inner {
  min-width: 60px;
}

.hero-actions .btn-icon-only .inner i {
  font-size: 1.2rem;
}

.skill-icon-bg {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon-figma { background: rgba(162, 89, 255, 0.12); color: #a259ff; }
.skill-icon-notion { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.skill-icon-webflow { background: rgba(67, 83, 255, 0.12); color: #4353ff; }
.skill-icon-framer { background: rgba(0, 85, 255, 0.12); color: #0055ff; }
.skill-icon-heuristic { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.expertise-header {
  display: block;
  text-align: center;
  margin: 0 auto;
  max-width: 42rem; /* max-w-2xl equivalent */
  padding: 0;
}

.full-width {
  display: block;
  width: 100%;
}

.expertise-grid-1col {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

.expertise-grid-2col {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem !important;
}


/* Utilities */
.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0.5rem auto 2rem;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.015; /* Reduced from 0.03 for light mode */
}

/* Background Particles */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Behind everything */
  pointer-events: none; /* Let clicks pass through */
  opacity: 0.85; /* Clearly visible */
}

/* Animated Background Gradients */
@keyframes gradient-float-1 {
  0%,
  100% {
    background: rgba(16, 185, 129, 0.14);
    transform: translate(0, 0) scale(1);
  }
  33% {
    background: rgba(236, 72, 153, 0.14);
    transform: translate(-30px, 20px) scale(1.1);
  }
  66% {
    background: rgba(99, 102, 241, 0.14);
    transform: translate(20px, -30px) scale(0.9);
  }
}

@keyframes gradient-float-2 {
  0%,
  100% {
    background: rgba(6, 182, 212, 0.14);
    transform: translate(0, 0) scale(1);
  }
  33% {
    background: rgba(16, 185, 129, 0.14);
    transform: translate(30px, -20px) scale(1.1);
  }
  66% {
    background: rgba(59, 130, 246, 0.14);
    transform: translate(-20px, 30px) scale(0.9);
  }
}

@keyframes gradient-float-3 {
  0%,
  100% {
    background: rgba(249, 115, 22, 0.12);
    transform: translate(0, 0) scale(1);
  }
  33% {
    background: rgba(244, 63, 94, 0.12);
    transform: translate(-25px, -25px) scale(1.05);
  }
  66% {
    background: rgba(168, 85, 247, 0.12);
    transform: translate(25px, 25px) scale(0.95);
  }
}

@keyframes gradient-float-4 {
  0%,
  100% {
    background: rgba(34, 211, 238, 0.12);
    transform: translate(0, 0) scale(1);
  }
  33% {
    background: rgba(147, 51, 234, 0.12);
    transform: translate(20px, 30px) scale(1.08);
  }
  66% {
    background: rgba(59, 130, 246, 0.12);
    transform: translate(-30px, -20px) scale(0.92);
  }
}

.ambient-gradient {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.9;
}

.ambient-gradient-1 {
  left: -10rem;
  top: -10rem;
  width: 38rem;
  height: 38rem;
  animation: gradient-float-1 20s ease-in-out infinite;
}

.ambient-gradient-2 {
  right: -10rem;
  bottom: -10rem;
  width: 38rem;
  height: 38rem;
  animation: gradient-float-2 25s ease-in-out infinite;
}

.ambient-gradient-3 {
  right: 10%;
  top: 30%;
  width: 32rem;
  height: 32rem;
  animation: gradient-float-3 30s ease-in-out infinite;
}

.ambient-gradient-4 {
  left: 15%;
  bottom: 20%;
  width: 32rem;
  height: 32rem;
  animation: gradient-float-4 22s ease-in-out infinite;
}

/* Skill Card Gradients */
.skill-card-gradient {
  position: absolute;
  right: -2.5rem;
  top: -2.5rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  filter: blur(60px);
  transition: all 0.3s;
}

.skill-card-gradient-cyan {
  background: rgba(6, 182, 212, 0.2);
}

.skill-card-gradient-rose {
  background: rgba(244, 63, 94, 0.2);
}

.skill-card-gradient-violet {
  background: rgba(139, 92, 246, 0.2);
}

.skill-card-gradient-orange {
  background: rgba(249, 115, 22, 0.2);
}

.skill-card-gradient-indigo {
  background: rgba(99, 102, 241, 0.2);
}

.skill-card-gradient-pink {
  background: rgba(236, 72, 153, 0.2);
}

/* Tool Group Label (Tools / Technology sub-headings inside cards) */
.tool-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.tool-group-label:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0.75rem;
}


.contact-gradient {
  position: absolute;
  left: -2.5rem;
  bottom: -2.5rem;
  width: 10rem;
  height: 10rem;
  background: rgba(6, 182, 212, 0.2);
  border-radius: 50%;
  filter: blur(60px);
  transition: all 0.3s;
  z-index: -1;
}

.contact-wrapper {
  position: relative;
  overflow: hidden;
}

/* Project Details Utility Classes */
.project-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.project-category-badge {
  margin-bottom: 0;
}

.btn-meta-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-muted);
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Bento Card - Premium Glass Effect */
.bento-card {
  background: rgba(
    255,
    255,
    255,
    0.85
  ); /* Increased opacity for better visibility */
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.12); /* Slightly darker border */
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.bento-card.no-hover:hover {
  transform: none !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  background: rgba(255, 255, 255, 0.85) !important;
}

/* Background Effects */
.gradient-sphere {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.15;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: float 10s infinite ease-in-out;
}

.sphere-1 {
  top: -200px;
  left: -100px;
}
.sphere-2 {
  bottom: -200px;
  right: -100px;
  animation-delay: -5s;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.3) 0%,
    transparent 70%
  );
}

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

/* Navbar */

/* Cyber Grid Background (Ported from Vision Page) */
.cyber-grid {
  background-image:
    linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2; /* Behind everything */
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 40%,
    transparent 80%
  );
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  pointer-events: none;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.navbar.scrolled {
  padding: 0.8rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1rem 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
  animation: navbarBorderPulse 5s ease-in-out infinite alternate;
}

.navbar.scrolled .container {
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.08);
}

@keyframes navbarBorderPulse {
  0% {
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.05), 0 10px 30px rgba(2, 6, 23, 0.04);
  }
  100% {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.12), 0 12px 35px rgba(2, 6, 23, 0.06);
  }
}

.logo-text {
  background: linear-gradient(
    90deg,
    #0f172a 0%,
    #10b981 30%,
    #06b6d4 50%,
    #10b981 70%,
    #0f172a 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoTextShimmer 5s ease-in-out infinite;
  display: inline-block;
  font-weight: 700;
}

@keyframes logoTextShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Contact Button Shimmer Light Sweep */
.navbar .btn-realism .inner {
  position: relative;
  overflow: hidden;
}

.navbar .btn-realism .inner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: rotate(25deg);
  animation: navBtnShimmerSweep 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}

@keyframes navBtnShimmerSweep {
  0%, 60% { left: -70%; }
  100% { left: 160%; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -1px;
}

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

.nav-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.btn-contact {
  padding: 0.5rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.btn-contact:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn-resume {
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--text-muted);
  border-radius: 2rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  margin-right: 0.5rem; /* Gap between buttons */
}

.btn-resume:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  background: transparent;
  overflow: hidden;
}

.badge-content {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 20deg,
    var(--accent) 50deg,
    transparent 80deg
  );
  z-index: -1;
  /* Mask to show only the border area */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;

  /* Neon Glow Effect */
  filter: drop-shadow(0 0 2px var(--accent)) drop-shadow(0 0 5px var(--accent));
}

.badge-content {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: var(--accent);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03), 0 0 10px rgba(16, 185, 129, 0.05);
  white-space: nowrap; /* Prevent wrapping but we will shrink font */
}

@media (max-width: 480px) {
  .badge-content {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
    letter-spacing: 1.2px;
  }
}

.typing-text {
  font-weight: 700;
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background-color: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  transition: none; /* Instant movement with text */
  animation: blink 0.8s step-end infinite;
}

.cursor.typing {
  animation: none; /* Solid color while typing for better focus */
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(
    to right,
    #0f172a,
    #64748b
  ); /* Slate 900 to Slate 500 */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.italic {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 840px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.tools-section {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
}

.btn {
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

/* Neon Button Effects */
@keyframes neonPulse {
  0% {
    box-shadow:
      0 0 5px var(--accent-glow),
      0 0 10px var(--accent-glow);
  }
  50% {
    box-shadow:
      0 0 10px var(--accent),
      0 0 20px var(--accent-glow);
  }
  100% {
    box-shadow:
      0 0 5px var(--accent-glow),
      0 0 10px var(--accent-glow);
  }
}

@keyframes neonBorderPulse {
  0%,
  100% {
    border-color: var(--glass-border);
    box-shadow: none;
  }
  50% {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
  }
}

/* Specific Neon Highlight Class - Converting to Standard Primary if needed or keeping as legacy. 
   User wants View All Projects to be like Primary. */
.btn-primary {
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 0 10px var(--accent-glow);
  font-weight: 700;
  letter-spacing: 0.5px;
  /* Ensure consistent sizing */
  padding: 1rem 2rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn-primary:hover {
  background-color: #0d9668;
  border-color: #0d9668;
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 0 20px var(--accent),
    0 0 40px var(--accent-glow);
  color: #ffffff !important;
}

/* Standard Secondary (based on Cancel button) */
.btn-std-secondary {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn-std-secondary:hover {
  color: #ffffff !important;
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

/* Primary Nav CTA - Highlighted Contact Button */
.btn-nav-primary {
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: #ffffff !important;
  border: 1px solid var(--accent);
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-nav-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  color: #ffffff !important;
}

/* Retain .btn-secondary for Hire Me as requested (Excluding it from changes) */
/* Retain .btn-secondary for Hire Me as requested (Excluding it from changes) */
.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--accent); /* Specific neon border base */
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  /* Add Neon Pulse Animation */
  animation: neon-pulse 2s infinite ease-in-out;
  box-shadow: 0 0 5px var(--accent-glow);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow:
    0 0 20px var(--accent),
    0 0 40px var(--accent-glow);
  transform: translateY(-2px);
  text-shadow: 0 0 8px var(--accent-glow);
}

@keyframes neon-pulse {
  0% {
    box-shadow:
      0 0 5px var(--accent-glow),
      inset 0 0 5px var(--accent-glow);
    border-color: var(--accent);
  }
  50% {
    box-shadow:
      0 0 20px var(--accent),
      inset 0 0 10px var(--accent-glow);
    border-color: #fff;
  }
  100% {
    box-shadow:
      0 0 5px var(--accent-glow),
      inset 0 0 5px var(--accent-glow);
    border-color: var(--accent);
  }
}

/* Specific Neon Highlight Class - Deprecating usage in favor of btn-primary where requested */
.btn-neon {
  /* Keeping strictly for reference or specific isolated cases, but View All Projects will move to btn-primary */
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 0 5px var(--accent-glow);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  transition: 0.3s;
  font-weight: 600;
  display: inline-block;
}

.btn-neon:hover {
  background: var(--accent);
  color: #000;
  box-shadow:
    0 0 20px var(--accent),
    0 0 40px var(--accent-glow);
  transform: translateY(-2px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem; /* Increased from 0.8rem */
  text-transform: uppercase;
  letter-spacing: 3px; /* Slightly wider */
  color: var(--text-muted);
  font-weight: 700; /* Added bold weight */
}

.hero-scroll-indicator .line {
  width: 2px;
  height: 50px;
  /* Increased opacity for better visibility on light background */
  background: rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.hero-scroll-indicator .line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent),
    transparent
  );
  box-shadow: 0 0 8px var(--accent); /* Glowing drop animation */
  animation: scroll-drop 2s ease-in-out infinite;
}

@keyframes scroll-drop {
  0% {
    top: -50%;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Skills/Services */
.section-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-header.center-aligned {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.header-line {
  width: 50px;
  height: 3px;
  background: var(--accent-main, #10b981);
  margin: 1rem 0;
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.skill-card {
  background: var(--cs-surface);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--cs-border);
  padding: 2rem;
  border-radius: 1rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  background: var(--card-hover);
  transform: translateY(-5px);
  border-color: var(--accent);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.skill-tag {
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.skill-card:hover .skill-tag {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
  color: var(--text-main);
}

.skill-tag.highlight-skill {
  background: var(--accent);
  color: white;
  font-weight: 700;
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
  animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
  0% { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25); }
  50% { box-shadow: 0 4px 25px rgba(16, 185, 129, 0.45); }
  100% { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25); }
}

.expertise-divider {
  height: 1.5px;
  background: rgba(0, 0, 0, 0.05);
  margin: 1.5rem 0;
  width: 100%;
}

.expertise-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.expertise-group {
  margin-top: 1rem;
}

/* ── Behance Suggestion Banner ── */
.projects-banner {
  margin-bottom: 4rem;
  width: 100%;
}

.banner-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2rem;
  padding: 3rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 25px 25px;
}

.banner-glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
}

.banner-glass:hover .banner-bg-orb {
  transform: scale(1.2);
  opacity: 0.25;
}

.banner-glass:hover .banner-icon-wrapper {
  transform: rotate(8deg) scale(1.05);
}

.banner-bg-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.15;
  transition: all 0.6s ease;
}

.orb-1 {
  background: #10b981;
  top: -150px;
  right: -50px;
}

.orb-2 {
  background: #3b82f6;
  bottom: -150px;
  left: -50px;
}

.banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

@media (max-width: 991px) {
  .banner-content {
    flex-direction: column;
    text-align: center;
  }
}

.banner-icon-wrapper {
  position: relative;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.banner-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #0057ff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.icon-glow {
  position: absolute;
  inset: -10px;
  background: #3b82f6;
  filter: blur(20px);
  opacity: 0.2;
  border-radius: 2rem;
  z-index: -1;
}

.banner-text {
  flex-grow: 1;
}

.banner-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #10b981;
  margin-bottom: 0.75rem;
}

.banner-text h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

.banner-text p {
  color: #64748b;
  line-height: 1.7;
  font-size: 1.1rem;
  max-width: 800px;
}

.banner-action {
  flex-shrink: 0;
}


.projects-section-spacing {
  padding-top: 160px; /* Increased from 100px based on user feedback */
  padding-bottom: 40px;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}

/* Card Stack Layout (Ruixen UI 3D Stack Experiment) */
.card-stack-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto 4rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.card-stack-stage {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 480px; /* Card height (350px) + lift (20px) + arc margin (40px) + drag shadow (70px) */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1200px;
  margin-bottom: 2rem;
  overflow: visible;
}

/* Base project-card overrides for stack mode */
.card-stack-stage .project-card {
  position: absolute;
  bottom: 0;
  width: 520px;
  max-width: 95%;
  height: 350px;
  margin-bottom: 40px; /* Spacing for shadow & touch swipe */
  aspect-ratio: auto !important; /* Force override of grid aspect-ratio */
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-drag: none;
}

/* Active card specific styles */
.card-stack-stage .project-card.active {
  cursor: grab;
  z-index: 100;
  pointer-events: auto;
}

.card-stack-stage .project-card.active:active {
  cursor: grabbing;
}

/* Inactive cards inside stack */
.card-stack-stage .project-card:not(.active) {
  cursor: pointer;
  pointer-events: auto;
}

/* Disable navigation links / view case study button triggers on background cards */
.card-stack-stage .project-card:not(.active) a,
.card-stack-stage .project-card:not(.active) button {
  pointer-events: none;
}

/* Stage Spotlight VFX */
.card-stack-spotlight {
  pointer-events: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  z-index: 1;
}

.card-stack-spotlight.top {
  top: 20px;
  width: 60%;
  height: 180px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  filter: blur(40px);
}

.card-stack-spotlight.bottom {
  bottom: 0;
  width: 70%;
  height: 120px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.15) 0%, transparent 75%);
  filter: blur(30px);
}

/* Chevron Nav buttons */
.card-stack-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-stack-nav:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3), 0 4px 20px rgba(0,0,0,0.15);
  transform: translateY(-50%) scale(1.1);
}

.card-stack-nav.prev {
  left: 20px;
}

.card-stack-nav.next {
  right: 20px;
}

/* Bottom Controls Bar — cleanup if unused */
.card-stack-controls {
  display: none;
}

/* Dots indicators */
.card-stack-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  z-index: 102;
  position: relative;
}

.card-stack-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-stack-dot:hover {
  background: rgba(148, 163, 184, 0.6);
}

.card-stack-dot.active {
  background: #10b981;
  width: 24px;
  border-radius: 4px;
}

/* Mobile Responsiveness adjustments */
@media (max-width: 992px) {
  .card-stack-nav {
    display: none; /* Rely on swiping and dots on tablets/phones */
  }
}

@media (max-width: 768px) {
  .card-stack-stage {
    height: 420px;
  }
  .card-stack-stage .project-card {
    height: 300px;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .card-stack-stage {
    height: 370px;
  }
  .card-stack-stage .project-card {
    height: 260px;
    margin-bottom: 25px;
  }
}

/* ── Full Image Overlay Card Design ── */
.project-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.project-card:hover {
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-5px);
}

/* Image Container on Top */
.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

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

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

.project-image .overlay {
  display: none; /* No dark gradient obscuring images */
}

/* Static Content Below Image (Always visible, perfectly readable) */
.project-info {
  position: relative;
  padding: 1.25rem 1.25rem 1.35rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  transform: none !important;
}

.project-category {
  font-size: 0.75rem; /* 12px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669; /* Emerald 600 */
  margin-bottom: 0.35rem;
  display: block;
  min-height: 1.15rem;
}

.project-title,
.project-card .project-title,
.project-card .project-title.text-base {
  font-family: var(--font-heading);
  font-size: 1.15rem !important;
  font-weight: 700;
  color: #0f172a; /* Slate 900 */
  margin: 0 0 0.5rem;
  line-height: 1.35;
  min-height: 2.85rem; /* Exactly 2 lines height so cards align */
  display: flex;
  align-items: flex-start;
  transition: color 0.2s ease;
}

.project-card:hover .project-title {
  color: #059669;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.4rem;
  min-height: 32px; /* Fixed height so 1-line and 2-line tags never displace button */
  margin-top: auto;
  margin-bottom: 0.75rem;
}

.tool-tag {
  font-size: 0.72rem; /* 11.5px */
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto !important;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  opacity: 1 !important;
  transform: none !important;
  transition: gap 0.2s ease;
}

.btn-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.project-card:hover .btn-link {
  gap: 0.55rem;
}

.btn-link:hover::after {
  transform: translateX(4px);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.about-image {
  position: relative;
}

.image-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  width: 100%;
  padding-bottom: 120%; /* Fallback for 1/1.2 aspect ratio */
  height: 0;
}

@supports (aspect-ratio: 1) {
  .image-wrapper {
    aspect-ratio: 1/1.2;
    padding-bottom: 0;
    height: auto;
  }
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition-smooth);
}

.about-image:hover img {
  filter: grayscale(0%);
}

.about-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Bento Social Links */
.about-socials {
  display: flex;
  gap: 1rem;
}

/* Bento Social Links */
.about-socials {
  display: flex;
  gap: 1rem;
}

.about-social-link {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(224, 250, 250, 0.5); /* Soft Cyan matches user screenshot */
  border: 1px solid transparent; /* No border in normal state */
  border-radius: 12px;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.about-social-link:hover {
  background: rgba(16, 185, 129, 0.05);
  border-color: var(--accent); /* Add green line on hover */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.1);
}

/* Brand Colors on Hover */
.about-social-link.github:hover i {
  color: #333;
}
.about-social-link.behance:hover i {
  color: #1769ff;
}
.about-social-link.dribbble:hover i {
  color: #ea4c89;
}
.about-social-link.linkedin:hover i {
  color: #0077b5;
}
.about-social-link.instagram:hover i {
  color: #e4405f;
}
.about-social-link.medium:hover i {
  color: #00ab6c !important;
}

.about-social-link i {
  transition: all 0.3s ease;
}

/* Particle Animation Burst Effect */
.about-social-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.6s ease,
    opacity 0.6s ease;
  z-index: 0;
}

.about-social-link:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.2;
}

/* Contact */
.contact-wrapper {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 4rem 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a:hover {
  color: var(--accent);
}

/* Animations Helpers */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  /* Fix 1: Hero Scroll Indicator Overlap */
  .hero {
    height: auto;
    min-height: 100vh;
    padding-bottom: 6rem; /* Space for scroll indicator */
  }

  .hero-scroll-indicator {
    bottom: 1rem;
  }

  /* Fix 2: View All Projects Button & Section Headers */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }

  .section-header.center-aligned {
    align-items: center;
    text-align: center;
  }

  .center-aligned {
    align-items: center;
    text-align: center;
  }

  .btn-neon {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Fix 3: Footer Alignment */
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center; /* or left as per preference, but usually center looks best on mobile for footers */
  }

  .footer-content p {
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
  }

  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .nav-links {
    display: none;
  } /* Simplified mobile menu for now */
  .mobile-menu-btn {
    display: flex;
  }
  .project-card {
    aspect-ratio: auto;
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }
  .project-info {
    position: relative;
    padding: 1.15rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
  }
  .project-title {
    min-height: auto;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }
  .project-tools {
    min-height: auto;
    margin-bottom: 0.75rem;
  }

  /* Fix 4: Integrations Network Alignment & Spacing - Handled by global vars */

  #integrations .section-header {
    margin-bottom: 1.5rem;
    align-items: center; /* Center align title column */
    text-align: center;
  }

  .integrations-visual {
    transform: scale(0.75); /* Increased from 0.55 per user feedback */
    transform-origin: center top;
    margin-top: -1.5rem; /* Adjusted for larger scale */
    margin-bottom: -1rem; /* Adjusted for larger scale */
    width: 100%;
    overflow: visible;
  }

  /* Fix 5: My Expertise Gap - Handled by global vars */

  .skills-grid {
    gap: 1.5rem;
    padding-top: 0; /* Further reduce top padding on grid itself if any */
  }
}

/* Filter Buttons */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem; /* Reduced from 2rem to close gap with title */
}

.filter-btn {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn:hover {
  background: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #10b981 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.12);
}

.filter-btn.active {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #059669 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18) !important;
  transform: translateY(0);
}
/* Trusted Partners Slider */
.partners {
  padding: 4rem 0;
  overflow: hidden;
  position: relative;
  background-color: #000;
}

.partners-intro {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.partners-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.galaxy-bg {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #111 0%, #000 100%);
}

.partners {
  padding: 2rem 0;
}

.partners-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  padding: 0;
}

.partners-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll 40s linear infinite;
  padding: 2rem 0;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 80px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.4s ease;
  padding: 1.5rem;
}

.partner-item svg {
  width: 100%;
  height: 100%;
  fill: var(--text-muted);
  transition: all 0.4s ease;
  opacity: 0.6;
}

.partner-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.partner-item:hover svg {
  fill: var(--text-main);
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Locked Project Card & Blur Styling */
.project-card.locked-project .project-image img {
  filter: blur(8px) brightness(0.7) !important;
  transform: scale(1.08) !important;
  transition: transform 0.5s ease, filter 0.5s ease !important;
}

.project-card.locked-project:hover .project-image img {
  transform: scale(1.12) !important;
  filter: blur(6px) brightness(0.6) !important;
}

.locked-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 10;
  pointer-events: none;
}

.locked-shield-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-size: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.6rem;
}

.locked-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.85);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Password Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.password-modal {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #ffffff;
}

.modal-backdrop.active .password-modal {
  transform: scale(1);
}

.password-modal h3 {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #ffffff;
}

.password-modal p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.modal-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.modal-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.modal-input:focus {
  border-color: var(--accent);
}

/* Form Validation Styles */
/* Form Validation Styles - Controlled by JS now for better UX */
.input-error {
  border-color: #ef4444 !important; /* Red-500 */
}

.input-success {
  border-color: #10b981 !important; /* Emerald-500 */
}

/* OTP Styles */
.otp-input-group {
  display: none;
  margin-top: 10px;
}

.otp-helper-text {
  font-size: 0.8rem;
  color: #888;
  margin-top: 5px;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Ensure buttons have enough space */
.modal-actions button {
  flex: 1;
  min-width: 120px;
  white-space: nowrap;
  padding: 0.8rem 1.2rem;
}
.modal-actions button.btn-realism {
  padding: 2px !important;
}
.btn-cancel {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

/* =========================================
   PREMIUM SAAS CASE STUDY STYLES
   ========================================= */

:root {
  --cs-bg: var(--bg-color);
  --cs-surface: var(--glass-bg);
  --cs-surface-hover: var(--card-hover);
  --cs-border: var(--glass-border);
  --cs-primary: var(--accent);
  --cs-primary-glow: rgba(16, 185, 129, 0.3);
  --cs-text-main: var(--text-main);
  --cs-text-muted: var(--text-muted);
  --cs-gradient: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-hover) 100%
  );
  --cs-card-radius: 24px;
  --cs-font-sans: "Plus Jakarta Sans", sans-serif;
}

.cs-wrapper {
  /* background-color: var(--cs-bg); Removed to show particles */
  color: var(--cs-text-main);
  font-family: var(--cs-font-sans);
  line-height: 1.6;
}

/* Typography */
.cs-title-xl {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.2rem, 5vw, 3.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 1.5rem !important;
  color: var(--text-main) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.cs-title-lg {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.75rem, 3.5vw, 2rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em !important;
  margin-bottom: 1rem !important;
  color: var(--text-main) !important;
}

.cs-title-md {
  font-family: var(--font-heading) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 0.75rem !important;
  color: var(--text-main) !important;
}

.cs-text-lead {
  font-family: var(--font-body) !important;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem) !important;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

/* Layout Utilities */
.cs-section {
  padding: 6rem 0; /* Standardized spacing */
  /* border-bottom: 1px solid var(--cs-border); -- Removed per user request */
  position: relative;
  overflow: hidden;
}

.cs-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.cs-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  align-items: start;
}

.cs-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.cs-card {
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-card-radius);
  padding: 3rem;
  transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cs-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

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

.cs-card:hover {
  border-color: var(--cs-primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

/* Cover Section */
.cs-cover {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  padding-bottom: 3rem;
  background: radial-gradient(
    circle at 50% 10%,
    rgba(59, 130, 246, 0.1),
    transparent 60%
  );
}

.cs-visual-hero {
  /* text-align: center; Removed for Left Alignment with Logo */
  /* justify-content: center; Removed */
  padding-left: 0; /* Ensure no extra padding offsets it from container */
}

.cs-visual-hero .cs-meta-grid {
  text-align: left; /* Align grid text left */
}

.cs-tagline-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--cs-primary);
  border-radius: 100px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
  border-top: 1px solid var(--cs-border);
  padding-top: 3rem;
}

/* Metric / Stats Cards */
.cs-stat-card {
  text-align: center;
  padding: 2.5rem;
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-card-radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.cs-stat-card:hover {
  border-color: var(--cs-primary);
  transform: translateY(-5px);
  background: var(--cs-surface-hover);
}

.cs-stat-val {
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--cs-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  display: block;
}

.cs-stat-label {
  font-size: 0.9rem;
  color: var(--cs-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Personas */
.cs-persona-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.persona-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--cs-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 0 20px var(--cs-primary-glow);
}

.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.persona-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  color: var(--cs-text-muted);
  border: 1px solid var(--cs-border);
}

/* Journey Map */
.cs-journey-step {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
  border-left: 2px solid var(--cs-border);
}

.cs-journey-step:last-child {
  border-left: 2px solid transparent;
}

.cs-journey-step::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cs-bg);
  border: 4px solid var(--cs-primary);
  box-shadow: 0 0 15px var(--cs-primary-glow);
  transition: 0.3s;
}

.cs-journey-step:hover::before {
  background: var(--cs-primary);
  transform: scale(1.2);
}

/* Image Containers */
.cs-image-box {
  width: 100%;
  border-radius: var(--cs-card-radius);
  overflow: hidden;
  border: 1px solid var(--cs-border);
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cs-image-box img {
  width: 100%;
  display: block;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}


/* Wireframe specific */
.cs-wireframe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.wireframe-img {
  opacity: 0.7;
  filter: sepia(20%) hue-rotate(180deg) saturate(20%);
  transition: 0.5s;
}

.wireframe-img:hover {
  opacity: 1;
  filter: none;
}

/* Responsive */
@media (max-width: 768px) {
  .cs-title-xl {
    font-size: 2.5rem;
  }
  .cs-section {
    padding: 4rem 0;
  }
  .cs-grid-2,
  .cs-grid-3,
  .cs-meta-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cs-card {
    padding: 1.5rem;
  }
}

/* Development Warning Banner */
.dev-warning {
  background: rgba(255, 165, 0, 0.15); /* Slightly more vivid */
  border: 1px solid rgba(255, 165, 0, 0.5); /* Stronger border */
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.05),
    0 2px 10px rgba(255, 165, 0, 0.1);
}

.dev-warning-icon {
  font-size: 2rem;
  background: rgba(255, 165, 0, 0.2);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.dev-warning-content h3 {
  font-family: var(--font-heading);
  color: #e67e22; /* Darker, more vivid orange */
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.dev-warning-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.dev-warning-content a {
  color: #d35400; /* Deep orange for contrast */
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.2s ease;
}

.dev-warning-content a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .dev-warning {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }
}

/* --- Integrations Component Animations --- */
@keyframes breath {
  0%,
  100% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Fix for anchor scroll positioning handled globally via html { scroll-padding-top } */

.password-modal-content {
  max-width: 400px;
  padding: 2rem;
}

@keyframes line {
  0%,
  100% {
    left: 0;
    opacity: 0;
  }
  50% {
    left: 100%;
    transform: translateX(-100%);
  }
  10%,
  40%,
  60%,
  90% {
    opacity: 0;
  }
  25%,
  75% {
    opacity: 1;
  }
}

@keyframes line-vertical {
  0%,
  100% {
    top: 0;
    opacity: 0;
  }
  50% {
    top: 100%;
    transform: translateY(-100%);
  }
  10%,
  40%,
  60%,
  90% {
    opacity: 0;
  }
  25%,
  75% {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Marquee / Infinite Scroll Tags */
.marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 4rem 0 2rem;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  margin-top: 2rem;
}

.marquee-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scrollMarquee 40s linear infinite;
}

.marquee-track.reverse {
  animation-direction: reverse;
}

.marquee-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.8rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.marquee-tag:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15);
  color: #10b981;
  background: #ffffff;
}

.marquee-icon {
  display: none;
}

.marquee-tag:hover .marquee-icon {
  display: none;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

/* Utility: Spinner Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* Popover Triangle/Arrow tip */
.password-modal::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--glass-bg); /* Match modal bg */
}

/* Remove Popover Arrow (if reverting to center modal) */
.password-modal::before {
  display: none;
}

/* --- DOWNLOAD MODAL REFACTOR --- */
.download-modal-content {
  text-align: center;
}
.modal-input-group {
  margin: 20px 0;
  position: relative;
}
.email-error-msg {
  color: #ff4d4d;
  font-size: 12px;
  margin-top: 5px;
  display: none;
  text-align: left;
}
.verify-spinner {
  display: none;
  margin: 20px auto;
}
.verify-spinner-text {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}

/* Name Input Style */
#userNameInput {
  margin-bottom: 15px; /* Spacing between Name and Email */
}

/* Button No-Wrap */
#downloadModalActions .btn {
  white-space: nowrap;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Surname Input Style */
#userSurnameInput {
  margin-bottom: 15px;
}

/* Hero Badge Shimmer Animation */
@keyframes shimmer-line {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.hero-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradient Wave Highlight */
  background: linear-gradient(
    110deg,
    transparent 35%,
    var(--accent) 50%,
    transparent 65%
  );
  background-size: 200% 100%;
  animation: shimmer-line 3s linear infinite;
  z-index: -1;
}

/* Optional: Add a subtle glow to the badge content to pop */
.badge-content {
  box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.1);
}

/* Bento Grid Styles */
.bento-card {
  background: #ffffff; /* Solid white background as requested */
  border: 1px solid rgba(0, 0, 0, 0.05); /* Lighter border for light mode */
  /* -webkit-backdrop-filter: blur(12px); Removed for solid bg */
  /* backdrop-filter: blur(12px); Removed for solid bg */
  border-radius: 1.5rem;
  transition: all 0.3s ease;
}

.bento-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05); /* Added subtle shadow on hover */
}

/* Custom Scrollbar for bio if needed */
.custom-scroll::-webkit-scrollbar {
  width: 4px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* HOLOGRAPHIC TOOLS SECTION STYLES */
.nav-item {
  transition: all 0.4s ease;
  border-left: 2px solid transparent;
}
.nav-item:hover,
.nav-item.active {
  padding-left: 2rem;
  border-left-color: #10b981;
  color: #10b981;
}

.hologram-container {
  perspective: 1000px;
}

.hologram-visual {
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(16, 185, 129, 0.3));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: scale(0.8) translateY(20px) rotateY(10deg);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hologram-visual.active {
  opacity: 1;
  transform: scale(1) translateY(0) rotateY(0);
}

/* Glass Panel Override/Addition */
.glass-panel {
  background: #ffffff !important; /* Solid white, overrides tailwind bg-white/50 */
  /* -webkit-backdrop-filter: blur(20px); Removed for solid */
  /* backdrop-filter: blur(20px); Removed for solid */
  border: 1px solid rgba(0, 0, 0, 0.05); /* Lighter border for light mode */
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1); /* Reduced shadow opacity from 0.5 to 0.1 */
}

/* Promo Banner Enhancements */
.promo-card {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2rem;
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: all 0.4s ease;
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0) rotate(-12deg);
  }
  50% {
    transform: translateY(-15px) rotate(-8deg);
  }
}

@keyframes float-y-reverse {
  0%,
  100% {
    transform: translateY(0) rotate(12deg);
  }
  50% {
    transform: translateY(-15px) rotate(16deg);
  }
}

.animate-float {
  animation: float-y 6s ease-in-out infinite;
}

.animate-float-reverse {
  animation: float-y-reverse 7s ease-in-out infinite;
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0) rotate(-12deg);
  }
  50% {
    transform: translateY(-15px) rotate(-8deg);
  }
}

@keyframes float-y-reverse {
  0%,
  100% {
    transform: translateY(0) rotate(12deg);
  }
  50% {
    transform: translateY(-15px) rotate(16deg);
  }
}

.animate-float {
  animation: float-y 6s ease-in-out infinite;
}

.animate-float-reverse {
  animation: float-y-reverse 7s ease-in-out infinite;
}

/* Project Card Clickable area fix */
.project-card {
  cursor: pointer;
}

/* Modal Inline Styles Extraction */
.password-modal input.modal-input {
  width: 100%;
  margin-bottom: 1.5rem;
}

.password-modal .remember-me-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

@supports (accent-color: auto) {
  .password-modal .remember-me-checkbox {
    accent-color: var(--accent);
  }
}

.password-modal .remember-me-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

/* Sparkle Button Style */
.btn-sparkle {
  --black-700: hsla(0 0% 12% / 1);
  --border_radius: 9999px;
  --transtion: 0.3s ease-in-out;
  --offset: 2px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transform-origin: center;
  padding: 1rem 2rem;
  background-color: transparent;
  border: none;
  border-radius: var(--border_radius);
  transform: scale(calc(1 + (var(--active, 0) * 0.1)));
  transition: transform var(--transtion);
  width: auto;
  min-width: 160px;
}
.btn-sparkle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: var(--black-700);
  border-radius: var(--border_radius);
  box-shadow:
    inset 0 0.5px hsl(0, 0%, 100%),
    inset 0 -1px 2px 0 hsl(0, 0%, 0%),
    0px 4px 10px -4px hsla(0 0% 0% / calc(1 - var(--active, 0))),
    0 0 0 calc(var(--active, 0) * 0.375rem) var(--accent-glow);
  transition: all var(--transtion);
  z-index: 0;
}
.btn-sparkle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  background-image:
    radial-gradient(at 51% 89%, rgba(16, 185, 129, 0.5) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.8) 0px, transparent 50%),
    radial-gradient(at 22% 91%, rgba(16, 185, 129, 0.8) 0px, transparent 50%);
  background-position: top;
  opacity: var(--active, 0);
  border-radius: var(--border_radius);
  transition: opacity var(--transtion);
  z-index: 2;
}
.btn-sparkle:is(:hover, :focus-visible) {
  --active: 1;
}
.btn-sparkle:active {
  transform: scale(1);
}
.btn-sparkle .dots_border {
  /* Increased border size for better visibility */
  --size_border: calc(100% + 6px);
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--size_border);
  height: var(--size_border);
  background-color: transparent;
  border-radius: var(--border_radius);
  z-index: -1; /* Moved from -10 to -1 to avoid being hidden behind parent backgrounds */
}
.btn-sparkle .dots_border::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: left;
  transform: rotate(0deg);
  width: 100%;
  height: 2rem;
  background-color: var(
    --accent
  ); /* Changed from white for visibility in light mode */
  box-shadow: 0 0 10px var(--accent); /* Added glow */
  mask: linear-gradient(transparent 0%, white 120%);
  animation: rotate 2s linear infinite;
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
.btn-sparkle .sparkle {
  position: relative;
  z-index: 10;
  width: 1.75rem;
}
.btn-sparkle .sparkle .path {
  fill: currentColor;
  stroke: currentColor;
  transform-origin: center;
  color: hsl(0, 0%, 100%);
}
.btn-sparkle:is(:hover, :focus) .sparkle .path {
  animation: path 1.5s linear 0.5s infinite;
}
.btn-sparkle .sparkle .path:nth-child(1) {
  --scale_path_1: 1.2;
}
.btn-sparkle .sparkle .path:nth-child(2) {
  --scale_path_2: 1.2;
}
.btn-sparkle .sparkle .path:nth-child(3) {
  --scale_path_3: 1.2;
}
@keyframes path {
  0%,
  34%,
  71%,
  100% {
    transform: scale(1);
  }
  17% {
    transform: scale(var(--scale_path_1, 1));
  }
  49% {
    transform: scale(var(--scale_path_2, 1));
  }
  83% {
    transform: scale(var(--scale_path_3, 1));
  }
}
.btn-sparkle .text_button {
  position: relative;
  z-index: 10;
  background-image: linear-gradient(
    90deg,
    hsla(0 0% 100% / 1) 0%,
    hsla(0 0% 100% / var(--active, 0)) 120%
  );
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1rem;
  font-weight: 600;
  color: transparent;
}

/* Sparkle Button Small Variant */
.btn-sparkle.small {
  padding: 0.5rem 1.25rem;
  min-width: auto;
  font-size: 0.9rem;
  width: fit-content;
}
.btn-sparkle.small .sparkle {
  width: 1.25rem;
}

/* Realism Button Small */
.btn-realism.small {
  font-size: 0.85rem;
  padding: 0;
  min-width: 110px;
}
.btn-realism.small .inner {
  padding: 8px 16px;
  border-radius: 12px;
}
.btn-realism.small .blob1,
.btn-realism.small::after {
  /* Adjust blobs for smaller size */
  opacity: 0.8;
}

/* Hover Effect for Realism Button */
.btn-realism:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.btn-realism:hover .inner {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Highlight Animation (Pulse) for Hire Me */
@keyframes emerald-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.btn-highlight {
  animation: emerald-pulse 2s infinite;
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
.btn-sparkle .sparkle {
  position: relative;
  z-index: 10;
  width: 1.75rem;
}
.btn-sparkle .sparkle .path {
  fill: currentColor;
  stroke: currentColor;
  transform-origin: center;
  color: hsl(0, 0%, 100%);
}
.btn-sparkle:is(:hover, :focus) .sparkle .path {
  animation: path 1.5s linear 0.5s infinite;
}
.btn-sparkle .sparkle .path:nth-child(1) {
  --scale_path_1: 1.2;
}
.btn-sparkle .sparkle .path:nth-child(2) {
  --scale_path_2: 1.2;
}
.btn-sparkle .sparkle .path:nth-child(3) {
  --scale_path_3: 1.2;
}
@keyframes path {
  0%,
  34%,
  71%,
  100% {
    transform: scale(1);
  }
  17% {
    transform: scale(var(--scale_path_1, 1));
  }
  49% {
    transform: scale(var(--scale_path_2, 1));
  }
  83% {
    transform: scale(var(--scale_path_3, 1));
  }
}
.btn-sparkle .text_button {
  position: relative;
  z-index: 10;
  background-image: linear-gradient(
    90deg,
    hsla(0 0% 100% / 1) 0%,
    hsla(0 0% 100% / var(--active, 0)) 120%
  );
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1rem;
  font-weight: 600;
  color: transparent;
}

/* Sparkle Button Small Variant */
.btn-sparkle.small {
  padding: 0.5rem 1.25rem;
  min-width: auto;
  font-size: 0.9rem;
  width: fit-content;
}
.btn-sparkle.small .sparkle {
  width: 1.25rem;
}

/* Contact Form Two-Column Layout */
.contact-wrapper {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form-wrapper {
  width: 100%;
}

/* Form Grid for Name/Email */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Enhanced Form Styling */
.contact-form .form-group {
  margin-bottom: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(0, 0, 0, 0.03); /* Darker tint for light mode visibility */
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  color: var(--text-main); /* Fix invisible text */
  font-size: 0.95rem;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px); /* Prefix added */
  backdrop-filter: blur(10px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted); /* Fix placeholder visibility */
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 180px;
  max-height: 340px;
  width: 100%;
  box-sizing: border-box;
}

.contact-form .submit-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Responsive Design */

/* Spacing for Projects Page to clear fixed header */
.projects-section-spacing,
.case-study-hero {
  padding-top: 120px;
  min-height: 100vh; /* Ensure full height */
  position: relative;
  overflow: hidden;
}

.hero-img-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.4; /* Subtle background */
}

@media (max-width: 768px) {
  .projects-section-spacing,
  .case-study-hero {
    padding-top: 100px;
  }
}
@media (max-width: 1024px) {
  .contact-wrapper {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .contact-form .form-group {
    margin-bottom: 0.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .contact-form .submit-btn {
    margin-top: 0.5rem;
  }
}

/* Animated Status Dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse-dot 2s infinite;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Contact Form Submit Button */
.contact-form .submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: center;
  display: flex;
}

/* Full-width blob for submit button */
.contact-form .submit-btn .blob1 {
  width: 100%;
}

/* Force Spacing Utility - Added manually to ensure visibility */
.py-32 {
  padding-top: 8rem !important;
  padding-bottom: 8rem !important;
}

/* Fallback for specific sections */
:root {
  --section-spacing: 6rem; /* Restored to original spacing */
  --marquee-spacing: 3rem;
  --header-scroll-offset: 100px;
}

/* 
   CENTRALIZED SECTION SPACING CONTROL 
   Edit the variables in :root above to change spacing globally.
*/
#about,
#skill-experience,
#tools,
#work,
#contact,
#integrations {
  padding-top: var(--section-spacing) !important;
  padding-bottom: var(--section-spacing) !important;
}

/* Marquee specific */
.marquee-section {
  padding-top: var(--marquee-spacing) !important;
  padding-bottom: var(--marquee-spacing) !important;
}

/* Cyber Grid Background */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Behind content */
  background-size: 24px 24px;
  background-image: radial-gradient(
    rgba(15, 23, 42, 0.15) 1.5px,
    transparent 1.5px
  ); /* Dot Pattern */
  pointer-events: none;
  /* Removed mask to cover entire screen as requested */
}

/* Social Particle Effect */
.about-socials a {
  position: relative;
  overflow: visible !important;
}

.social-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: particle-burst 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Ensure keyframes exist if not already defined, though they should be */
@keyframes particle-burst {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(1);
    opacity: 0;
  }
}

/* Form Validation Feedback */
.modal-input.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1) !important;
}

.modal-input.input-success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1) !important;
}

.success-state {
  background: #10b981 !important;
  border-color: #10b981 !important;
}

.success-state .inner {
  color: white !important;
}

/* Redundant removal of any existing success text style */
.btn-realism.success-state::before {
    background: #10b981 !important;
}

/* Footer Styling to match Solid Cards */
footer {
  background: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -10px 40px -12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

/* ============================================
   USER JOURNEY TIMELINE STYLES
   ============================================ */

.cs-journey-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.cs-journey-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #10b981 0%, rgba(16, 185, 129, 0.3) 100%);
  z-index: 0;
}

.cs-journey-step {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.cs-journey-step:last-child {
  margin-bottom: 0;
}

.cs-journey-step:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.cs-journey-step-icon {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(16, 185, 129, 0.3)
  );
  border-radius: 50%;
  border: 3px solid #10b981;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.cs-journey-step:hover .cs-journey-step-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.cs-journey-step-content {
  flex: 1;
  padding: 1.5rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin: 0 2rem;
  transition: all 0.3s ease;
}

.cs-journey-step:hover .cs-journey-step-content {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: #10b981;
}

.cs-journey-step-number {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.cs-journey-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cs-text-main);
  margin-bottom: 0.5rem;
}

.cs-journey-step-desc {
  color: var(--cs-text-muted);
  line-height: 1.6;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .cs-journey-timeline::before {
    left: 40px;
  }

  .cs-journey-step {
    flex-direction: row !important;
    text-align: left !important;
  }

  .cs-journey-step-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .cs-journey-step-content {
    margin: 0 0 0 1rem;
  }
}

/* Social Icons Refinement */
.about-social-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border-radius: 12px !important;
  color: #64748b !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid transparent !important;
  text-decoration: none !important;
  position: relative;
  overflow: visible !important;
}

.about-social-link:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #1e293b !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

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

/* Re-introducing Realism Button Logic for Header & Hero */
.btn-realism {
  cursor: pointer;
  font-size: 1rem; /* Slightly smaller for header */
  border-radius: 12px;
  border: none;
  padding: 2px;
  background: radial-gradient(circle 80px at 80% -10%, #ffffff, #181b1b);
  position: relative;
  transition: transform 0.3s ease;
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

.btn-realism:hover {
  transform: translateY(-2px);
}

.btn-realism::after {
  content: "";
  position: absolute;
  width: 65%;
  height: 60%;
  border-radius: 120px;
  top: 0;
  right: 0;
  box-shadow: 0 0 20px #ffffff38;
  z-index: -1;
}

.btn-realism .blob1,
.btn-realism .blob2 {
  position: absolute;
  width: 70px;
  height: 100%;
  border-radius: 16px;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    circle 60px at 0% 100%,
    #3fe9ff,
    #0000ff80,
    transparent
  );
  box-shadow: -10px 10px 30px #0051ff2d;
  opacity: 1;
  visibility: visible;
}

.btn-realism .inner {
  padding: 10px 20px;
  border-radius: 10px;
  color: #fff;
  z-index: 3;
  position: relative;
  background: radial-gradient(circle 80px at 80% -50%, #777777, #0f1111);
  width: 100%;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-realism .inner::before {
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 14px;
  background: radial-gradient(
    circle 60px at 0% 100%,
    #00e1ff1a,
    #0000ff11,
    transparent
  );
  position: absolute;
}

/* Specific Style for Small Header Button */
.btn-realism.small {
  font-size: 0.9rem;
}
.btn-realism.small .inner {
  padding: 8px 16px;
}

/* Secondary Button Style - "Back to all Projects" */
.btn-std-secondary {
  display: inline-block !important;
  padding: 12px 28px !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  border-radius: 50px !important;
  color: #10b981 !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
}

.btn-std-secondary i {
  margin-right: 8px;
}

.btn-std-secondary:hover {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3) !important;
}

.btn-std-secondary:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2) !important;
}

/* Contact Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95) !important; /* Light Glass / White */
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 3rem;
  border-radius: 24px;
  width: 90%;
  max-width: 550px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease-out;
  color: #020617; /* Slate 950 - Near Black */
  z-index: 10000;
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

.modal-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #020617; /* Near Black Heading */
  background: none;
  -webkit-text-fill-color: #020617;
}

.modal-content p {
  color: #475569; /* Slate 600 - Darker Gray */
  margin-bottom: 2rem;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.05); /* Light gray bg */
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #0f172a;
  transform: rotate(90deg);
}

/* Modal Form Styles */
.modal-input {
  width: 100%;
  background: #ffffff !important;
  border: 1.5px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  padding: 1rem 1.25rem !important;
  color: #111827 !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}

.modal-input:focus {
  border-color: #10b981 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
  transform: translateY(-1px);
}

.modal-input::placeholder {
  color: #94a3b8 !important; /* Slate 400 - Visible Placeholder */
  opacity: 1 !important;
}

select.modal-input {
  appearance: none;
  background-color: #ffffff !important; /* White bg */
  color: #0f172a !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.25rem;
}

select.modal-input option {
  background-color: #ffffff !important;
  color: #0f172a !important;
  padding: 10px !important;
}

/* Security / Content Protection */
img {
  pointer-events: none; /* Prevents right-click and interaction */
}

@supports (-webkit-user-drag: none) {
  img {
    -webkit-user-drag: none;
  }
}
/* =========================================
   Premium Hero Process Animation (v5.2)
   ========================================= */

/* Hero Layout Overrides */
@media (min-width: 1024px) {
  .hero-content {
    max-width: 1200px;
    grid-template-columns: 1fr 1fr; /* Restore balanced 50/50 split */
    gap: 2rem; /* Standard gap */
    text-align: left;
  }

  .hero-text {
    max-width: 600px; /* Restore readable line length */
  }
}

/* Glass Card Component */
.glass-card {
  background: rgba(255, 255, 255, 0.85); /* High opacity for visibility */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 1rem;
  box-shadow: none;
  transition: all 0.3s ease;
}

.process-card {
  min-width: 195px;
  width: auto;
  z-index: 10;
  border-radius: 1rem;
}

.process-card:hover {
  background: #ffffff;
  border-color: var(--accent);
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

/* Animation Delays */
.delay-0 {
  animation-delay: 0s;
}
.delay-0-5 {
  animation-delay: 0.5s;
}
.delay-1 {
  animation-delay: 1s;
}
.delay-1-5 {
  animation-delay: 1.5s;
}
.delay-2 {
  animation-delay: 2s;
}
.delay-2-5 {
  animation-delay: 2.5s;
}
.delay-3 {
  animation-delay: 3s;
}

/* Animations */
@keyframes float-card {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(15px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.animate-float-card {
  animation: float-card 6s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

/* Process card animation driven by utility classes */

/* End of animations */

/* ── Hero Marquee (Left-to-Right Infinite Loop) ── */
.hero-marquee-outer {
  overflow: hidden;
  width: 100%;
  /* Padding so card shadows/hover don't clip vertically */
  padding: 10px 0;
  /* Subtle edge fade — less visible than before */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 4%,
    black 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 4%,
    black 96%,
    transparent 100%
  );
}

.hero-marquee-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  /* Start showing Set 2 (right half), animate to show Set 1 = left-to-right */
  animation: hero-marquee-ltr 28s linear infinite;
}

@keyframes hero-marquee-ltr {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Pause on hover */
.hero-marquee-outer:hover .hero-marquee-track {
  animation-play-state: paused;
}


/* End of animations */
/* Back to Top Button (Project Details) */
.back-to-top-container {
  padding: 4rem 0 6rem;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

/* Floating Back to Top Button */
.btn-back-top {
  position: fixed;
  bottom: 6rem; /* High visibility above the footer */
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--accent); /* Brand green for visibility */
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff; /* White icon as requested */
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.8);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.btn-back-top i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.btn-back-top:hover {
  background: #fff;
  color: var(--accent);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-back-top:hover i {
  transform: translateY(-2px);
}

/* Hide the old static container if it exists */
.back-to-top-container {
  display: none !important;
}

/* No Hover Utility for Bento Cards */
.bento-card.no-hover:hover {
  transform: none !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  background: rgba(255, 255, 255, 0.85) !important;
}

/* Mobile Spacing Refinement - Optimized for Section Gaps */

/* Project Tool Tags */
.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.75rem 0 1rem;
}

.tool-tag {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.project-card:hover .tool-tag {
    background: rgba(16, 185, 129, 0.22) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 2.5rem !important;
    --marquee-spacing: 2rem !important;
  }

  .py-32 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  /* Specific fix for Work section bottom gap */
  #work {
    padding-bottom: 2.5rem !important;
  }

  /* Specific fix for About section top gap */
  #about {
    padding-top: 2.5rem !important;
  }

  .marquee-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .expertise-grid-2col {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════════════
   CONTACT SPLIT LAYOUT (2A)
══════════════════════════════════════ */
.contact-split-layout {
  display: grid;
  grid-template-columns: 1fr 2.2fr; /* Slightly more room for the form */
  gap: 0;
  align-items: stretch;
  max-width: 100%; /* Fill the container width */
  margin: 3rem auto 0;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 
    0 10px 30px -10px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info-panel,
.contact-form-panel {
  padding: 3.5rem 3rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 2.5rem;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

/* Availability badge with animated ping */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  width: fit-content;
}

.avail-ping {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.avail-ping::before {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  bottom: -3px;
  left: -3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: avail-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes avail-ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}
.contact-visual {
  width: 100%;
  margin: 0.5rem 0 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.contact-split-layout:hover .contact-img {
  transform: scale(1.03);
}

.contact-details-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-label-sm {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
}

.contact-timezone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.timezone-item {
  display: flex;
  flex-direction: column;
}

.contact-connect-section {
  margin-top: auto; /* Pushes to bottom */
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-connect-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.8rem;
}

.contact-socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-secondary, #4b5563);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.contact-social-link:hover {
  background: var(--accent, #10b981);
  color: #fff;
  border-color: transparent;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%; /* Fill container height */
}

.contact-form-panel {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
}

.contact-form .form-group {
  margin-bottom: 0; /* Gaps handle spacing now */
}

/* ── Custom Dropdown ── */
.custom-select-wrapper { position: relative; width: 100%; }

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  color: #9ca3af;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-user-select: none;
  user-select: none;
}

.custom-select-trigger.has-value { color: var(--text-primary, #111827); }

.custom-select-trigger:hover,
.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--accent, #10b981);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.custom-select-arrow {
  font-size: 0.68rem;
  color: #9ca3af;
  transition: transform 0.22s ease;
}

.custom-select-wrapper.open .custom-select-arrow { transform: rotate(180deg); }

.custom-select-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0; right: 0;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.6rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  z-index: 200;
  overflow: hidden;
  display: none;
}

.custom-select-wrapper.open .custom-select-options {
  display: block;
  animation: csOpen 0.18s ease;
}

@keyframes csOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.custom-select-option {
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: #374151;
  transition: background 0.15s, color 0.15s;
}

.custom-select-option:hover { background: rgba(16,185,129,0.07); color: #059669; }
.custom-select-option.selected-opt { background: rgba(16,185,129,0.1); color: #059669; font-weight: 600; }

@media (max-width: 768px) {
  .contact-split-layout { grid-template-columns: 1fr; }
  .contact-info-panel { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-stats { gap: 1rem; }
}

/* ══════════════════════════════════════
   AI & AUTOMATION BENTO GRID
══════════════════════════════════════ */
.ai-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}

.ai-panel-main {
  grid-row: span 2;
}

.ai-bento-panel {
  position: relative;
  background: rgba(15, 23, 42, 0.85); /* Slate 900 */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  overflow: hidden;
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.ai-bento-panel:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 30px 50px -15px rgba(16, 185, 129, 0.2),
    inset 0 0 0 1px rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.4);
}

.ai-glow-orb {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, rgba(6,182,212,0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.8s ease;
}

.ai-bento-panel h3, 
.ai-bento-panel h4 {
  color: #ffffff !important;
  font-family: var(--font-heading) !important;
}

.ai-bento-panel p {
  color: #94a3b8 !important; /* Slate 400 */
}

.ai-stat {
  display: flex;
  flex-direction: column;
}

.ai-stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.ai-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1; /* Slate 300 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ai-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: rgba(30, 41, 59, 0.8); /* Slate 800 */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0; /* Slate 200 */
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  cursor: default;
}

.ai-tag:hover {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(16,185,129,0.3);
}

.ai-capabilities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-capabilities-list li {
  font-size: 0.95rem;
  color: #cbd5e1; /* Slate 300 */
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.ai-capabilities-list li:hover {
  transform: translateX(5px);
  color: #ffffff;
}

@media (max-width: 991px) {
  .ai-bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .ai-panel-main {
    grid-row: auto;
  }
}

/* ══════════════════════════════════════
   DESIGN SYSTEMS MARQUEE
══════════════════════════════════════ */
.design-systems-marquee-section {
  width: 100%;
  padding: 2rem 0;
  background: transparent;
  overflow: hidden;
  margin-bottom: 2rem;
}

.ds-marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ds-marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 2rem;
  align-items: center;
  min-width: 100%;
  animation: scroll-left 40s linear infinite;
}

.ds-marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.8rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.ds-marquee-item:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15);
  color: #10b981;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1rem)); } 
}

/* ── Project Card Warning Badges & Text ── */
.project-card-warning-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(245, 158, 11, 0.95); /* Amber orange */
  color: #000000;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-heading);
  pointer-events: none;
}

.project-card-warning-text {
  font-size: 0.72rem;
  color: #f59e0b; /* Amber */
  margin: 0.5rem 0;
  line-height: 1.4;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
}
