/*
 * CSZ Portfolio
 * Minimal, clean aesthetic inspired by cswxyz.github.io
 */

/* Fonts loaded in HTML with display=swap for performance */

:root {
  /* Render-inspired dark palette */
  --bg-primary: #0a0a0b;        /* Deep charcoal */
  --bg-secondary: #111113;      /* Elevated dark */
  --bg-tertiary: #18181b;       /* Card surfaces */
  --bg-card: #141416;           /* Card background */

  /* Text colors */
  --text-primary: #fafafa;      /* Pure white */
  --text-secondary: #a1a1aa;    /* Zinc 400 */
  --text-muted: #71717a;        /* Zinc 500 */

  /* Accent colors - Render-inspired purple/orange gradient */
  --accent: #a855f7;            /* Vibrant purple */
  --accent-hover: #c084fc;      /* Lighter purple */
  --accent-light: #d8b4fe;      /* Soft purple */
  --accent-glow: rgba(168, 85, 247, 0.15);
  --purple: #a855f7;            /* Purple 500 */
  --purple-dark: #7c3aed;       /* Purple 600 */
  --orange: #fb923c;            /* Orange 400 */
  --amber: #fbbf24;             /* Amber 400 */
  --lime: #a3e635;              /* Lime 400 */
  --cyan: #22d3ee;              /* Cyan 400 */

  /* Gradient accents */
  --gradient-purple-orange: linear-gradient(135deg, #a855f7 0%, #fb923c 100%);
  --gradient-purple-lime: linear-gradient(135deg, #7c3aed 0%, #a3e635 100%);
  --gradient-glow: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(251, 146, 60, 0.1) 100%);

  /* Borders - subtle */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(168, 85, 247, 0.5);
  --border-subtle: rgba(255, 255, 255, 0.04);

  --success: #4ade80;           /* Green 400 */

  /* Button/CTA colors */
  --teal: #a855f7;
  --teal-dark: #9333ea;
  --coral: #fb923c;
  --coral-dark: #f97316;
  --green: #4ade80;
  --pink: #f0abfc;
  --brown: #27272a;
  --brown-light: #3f3f46;
  --brown-dark: #18181b;

  /* Glass effect */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);

  /* Navbar background */
  --navbar-bg: rgba(10, 10, 11, 0.8);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  /* Clean background with subtle noise texture feel */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(251, 146, 60, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

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

::selection {
  background: var(--accent);
  color: #FFFFFF;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-purple-orange);
  z-index: 1003;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  background: rgba(5, 5, 7, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar:hover {
  background: rgba(5, 5, 7, 0.85);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  padding: 0 3rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand img.nav-cross {
  width: 28px;
  height: auto;
  opacity: 0.85;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 1.25rem;
  color: var(--text-primary);
  opacity: 0.7;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-logo-img {
  height: 48px;
  width: auto;
}


.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0.85rem;
  border-radius: 0;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 1px;
}

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

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 0.5rem;
  align-self: center;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-secondary);
  transition: background 0.3s ease;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-purple-orange);
  border-radius: 2px;
}

.section-title-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient text utility */
.text-gradient {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.text-gradient-blue {
  background: linear-gradient(135deg, #a855f7 0%, #fb923c 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

/* Gradient Orbs - Hidden */
.gradient-orb {
  display: none;
}

.gradient-orb-purple,
.gradient-orb-blue,
.gradient-orb-orange {
  display: none;
}

/* Hero */
.hero {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero .container {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  z-index: 10;
}

.hero-cowboy {
  width: 80%;
  margin-left: auto;
  margin-right: 0;
  position: relative;
  z-index: 5;
}

/* Accent border */
.talavera-border {
  height: 1px;
  background: var(--border);
}

/* Icon Crawler */
.icon-crawler {
  background: var(--bg-secondary);
  padding: 1.5rem 0 2.5rem 0;
  overflow-x: hidden; /* fallback for browsers not supporting clip */
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
  margin-top: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.3s ease;
}

.icon-crawler::before {
  display: none;
}

.crawler-track {
  display: flex;
  width: fit-content;
  animation: crawl 40s linear infinite;
}

.crawler-content {
  display: flex;
  gap: 1.5rem;
  flex-shrink: 0;
  padding-right: 1.5rem;
}

.crawler-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-secondary);
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.crawler-icon:hover {
  background: rgba(92, 124, 170, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.crawler-icon i {
  font-size: 1.4rem;
}

.crawler-icon::after {
  content: attr(title);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.75rem;
  background: var(--bg-tertiary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-top: 6px;
  z-index: 10;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.crawler-icon:hover::after {
  opacity: 1;
}

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

.hero-cowboy img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}


.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.75rem;
}

.profile-image {
  background: none;
  border: none;
  box-shadow: none;
  margin-bottom: 1rem;
}

.profile-image img {
  width: 80px;
  height: auto;
  object-fit: contain;
  border: none;
  background: none;
  box-shadow: none;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-shadow: 0 0 80px rgba(168, 85, 247, 0.3);
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.bio {
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin: 0;
}

.hero-action {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.project-preview {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
  margin-bottom: 1rem;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.preview-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 0;
}

.placeholder-preview {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 2px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.theme-preview {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.theme-preview svg {
  width: 64px;
  height: 64px;
  opacity: 0.9;
}

.gym-theme {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #e94560;
}

.restaurant-theme {
  background: linear-gradient(135deg, #2d1f1f 0%, #4a2c2a 50%, #6b3a3a 100%);
  color: #f4a460;
}

.auto-theme {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3d3d3d 100%);
  color: #4fc3f7;
}

.course-preview {
  background: linear-gradient(135deg, #1a0a2e 0%, #09090b 100%);
  position: relative;
}

.course-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 48%, #a855f7 48%, #a855f7 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, #a855f7 48%, #a855f7 52%, transparent 52%);
  background-size: 30px 30px;
  opacity: 0.1;
}

.event-preview {
  background: linear-gradient(135deg, #5C4A3D 0%, #8B7355 100%);
  position: relative;
}

.event-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
}

.sesa-preview {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  position: relative;
}

.sesa-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 30px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 4px;
}

.bakery-preview {
  background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);
  position: relative;
}

.bakery-preview::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 2px dashed rgba(0,0,0,0.15);
  border-radius: 0;
}

.tracer-preview {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.tracer-preview::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: 50%;
}

.tracer-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: rgba(59, 130, 246, 0.3);
  border-radius: 50%;
}

.guitar-preview {
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #7c2d12 100%);
  position: relative;
}

.guitar-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.rl-preview {
  background: linear-gradient(135deg, #14532d 0%, #22c55e 50%, #14532d 100%);
  position: relative;
}

.rl-preview::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 4px;
}

.chip8-preview {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
}

.chip8-preview::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 40px;
  border: 2px solid rgba(0, 255, 136, 0.4);
}

.chip8-preview::after {
  content: '';
  position: absolute;
  top: calc(50% - 8px);
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  background: rgba(0, 255, 136, 0.6);
}

.regression-preview {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  position: relative;
}

.regression-preview::before {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 20%;
  width: 60%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(-20deg);
}

.regression-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: rgba(251, 191, 36, 0.8);
  box-shadow:
    -20px 10px 0 rgba(251, 191, 36, 0.6),
    15px -8px 0 rgba(251, 191, 36, 0.6),
    -10px -15px 0 rgba(251, 191, 36, 0.6),
    25px 5px 0 rgba(251, 191, 36, 0.6);
}

.preview-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 0;
}

.project-card.featured {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.project-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.project-info {
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 0;
  color: var(--accent-light);
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

/* Buttons - Render-inspired style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-purple-orange);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25), 0 0 0 1px rgba(168, 85, 247, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.35), 0 0 0 1px rgba(168, 85, 247, 0.2);
  filter: brightness(1.1);
}

.btn-primary .btn-arrow {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-gradient {
  background: var(--gradient-purple-orange);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.2);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
  filter: brightness(1.1);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  border-radius: 0;
}

.btn-consultation {
  background: linear-gradient(135deg, var(--lime) 0%, var(--cyan) 100%);
  color: #0a0a0b;
  box-shadow: 0 4px 14px rgba(163, 230, 53, 0.25);
}

.btn-consultation:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(163, 230, 53, 0.35);
  filter: brightness(1.1);
}

.btn-arrow {
  font-size: 1.1em;
}

/* Showcases */
.showcases-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.showcase-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.showcase-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-purple-orange);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.showcase-item:hover::before {
  opacity: 1;
}

.showcase-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-glow);
  border-radius: 0;
}

.showcase-icon svg {
  width: 20px;
  height: 20px;
  color: var(--purple);
}

.showcase-info {
  flex: 1;
}

.showcase-info h3 {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.125rem;
}

.showcase-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.showcase-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: transform 0.2s;
}

.showcase-item:hover .showcase-arrow {
  transform: translateX(4px);
}

/* Section Divider */
.section-divider {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-divider::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
}

/* CTA Section */
.cta-section {
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Book a Call CTA Section - BRIGHT */
.book-cta-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0f0a1a 50%, var(--bg-primary) 100%);
  overflow: hidden;
  padding: 5rem 0;
}

.book-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(251, 146, 60, 0.15) 30%, transparent 60%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}

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

.book-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.book-cta-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(251, 146, 60, 0.3) 100%);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
  50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.6), 0 0 60px rgba(251, 146, 60, 0.3); }
}

.book-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #c084fc 50%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.book-cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.book-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #a855f7 0%, #fb923c 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1.25rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4), 0 4px 15px rgba(251, 146, 60, 0.3);
  position: relative;
  overflow: hidden;
}

.book-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.book-cta-btn:hover::before {
  left: 100%;
}

.book-cta-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.5), 0 6px 20px rgba(251, 146, 60, 0.4);
}

.book-cta-btn-icon {
  font-size: 1.3rem;
}

.book-cta-btn-arrow {
  transition: transform 0.3s ease;
}

.book-cta-btn:hover .book-cta-btn-arrow {
  transform: translateX(4px);
}

.book-cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.book-cta-features span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.book-cta-features strong {
  color: #4ade80;
  margin-right: 0.25rem;
}

@media (max-width: 768px) {
  .book-cta-title {
    font-size: 1.75rem;
  }

  .book-cta-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .book-cta-features {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Top Banner - Purple Gradient */
.top-banner {
  display: none;
}

/* Footer Banner */
.footer-banner {
  display: block;
  height: 3px;
  background: var(--gradient-purple-orange);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

/* Footer */
.footer {
  padding: 2rem 0;
  transition: background 0.3s ease;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-logo .logo-icon {
  font-size: 1rem;
  opacity: 0.6;
}

.footer-logo-img {
  height: 60px;
  width: auto;
}


.footer-divider {
  color: var(--text-muted);
}

.footer-year {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-contact a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--text-primary);
}

.footer-contact .github-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-contact .github-link svg {
  width: 14px;
  height: 14px;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-glow);
  border-radius: 0;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--purple);
}

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

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.contact-cta {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.contact-cta p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Contact Cards (reusable) */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-glow);
  border-radius: 0;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--purple);
  transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
  background: var(--gradient-purple-orange);
}

.contact-card:hover .contact-card-icon svg {
  color: #ffffff;
}

.contact-card-content {
  flex: 1;
  min-width: 0;
}

.contact-card-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-card-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
}

.contact-card-action {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-card-action::after {
  content: '\2192';
  transition: transform 0.2s;
}

.contact-card:hover .contact-card-action {
  color: var(--accent);
}

.contact-card:hover .contact-card-action::after {
  transform: translateX(4px);
}

.contact-cards-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.contact-cards-row .contact-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
}

@media (max-width: 768px) {
  .contact-cards-row {
    flex-direction: column;
    align-items: center;
  }

  .contact-cards-row .contact-card {
    width: 100%;
    max-width: 350px;
    min-width: auto;
  }
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    top: 20px;
    padding: 0.75rem 0;
  }

  .navbar .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    order: 2;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 0;
    flex-direction: column;
    padding: 0.5rem;
    min-width: 160px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-top: 0.75rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 0;
    transition: all 0.2s;
  }

  .nav-links a:hover {
    background: rgba(92, 124, 170, 0.1);
    color: var(--accent);
  }

  .nav-divider {
    width: 100%;
    height: 1px;
    margin: 0.25rem 0;
  }

  .hero .container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 1rem;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 1rem;
  }

  .hero-cowboy {
    width: 100%;
    margin: 0 auto;
  }

  .hero-cowboy img {
    width: 100%;
    height: 60vw;
    object-fit: cover;
    object-position: right center;
  }

  .bio {
    max-width: none;
  }

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

  .project-preview {
    max-width: none;
    margin: 0;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-contact {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-contact .footer-divider {
    display: none;
  }

  .section {
    padding: 3rem 0;
  }

  .section:first-of-type,
  main > section:first-child,
  .hero {
    padding-top: 10rem;
  }

  .section-title {
    font-size: 1.25rem;
  }
}

/* Work Split - Frontend/Backend Cards */
.work-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.work-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(168, 85, 247, 0.1);
}

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

.work-card-preview {
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
}

.work-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-card:hover .work-card-preview img {
  transform: scale(1.05);
}

.dashboard-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-muted);
}

.dashboard-iframe-preview {
  width: 300%;
  height: 300%;
  border: none;
  transform: scale(0.333);
  transform-origin: top left;
  pointer-events: none;
}

.work-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.work-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.work-card.frontend .work-card-label {
  background: var(--gradient-purple-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.work-card.backend .work-card-label {
  background: linear-gradient(135deg, var(--lime) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.work-card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.work-card-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.work-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.work-features li {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 0;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.work-features li:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.25);
  color: var(--text-primary);
}

.work-card-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.work-card-link::after {
  content: '\2192';
  transition: transform 0.2s ease;
}

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

.work-cta {
  text-align: center;
  padding-top: 1rem;
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.process-number {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-purple-orange);
  border-radius: 0;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Results */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.result-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.result-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-purple-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.result-label {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.result-source {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial {
  text-align: center;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  background: var(--gradient-purple-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
}

.testimonial:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

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

.testimonial blockquote {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

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

.author-name {
  font-weight: 600;
  background: var(--gradient-purple-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.author-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Skills Grid */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.skill-card {
  flex: 0 0 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.skill-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-glow);
  border-radius: 0;
  margin-bottom: 1.25rem;
}

.skill-icon svg {
  width: 24px;
  height: 24px;
  color: var(--purple);
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 0;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple);
}

.skill-tag i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .skill-card {
    flex: 0 0 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
  }
}

@media (max-width: 480px) {
  .skill-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Divider Scene */
.divider-scene {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: -1px 0;
}

.divider-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Cowboy Scene */
.cowboy-scene {
  background: var(--bg-primary);
  padding: 0;
  margin: 0;
}

.cowboy-scene .divider-img {
  width: 100%;
  max-width: none;
  display: block;
  border: none;
  background: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

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

  .work-card-preview {
    height: 150px;
  }
}
