/* ===== CSS Variables — Dark Theme (default) ===== */
:root,
[data-theme="dark"] {
  --bg-primary: #0b0b0b;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --accent: #FF6D5B;
  --accent-light: #FF8A7A;
  --accent-dim: #FF6D5B99;
  --accent-glow: rgba(255, 109, 91, 0.12);
  --accent-glow-strong: rgba(255, 109, 91, 0.22);
  --text-primary: #f0ece8;
  --text-secondary: #9a9490;
  --text-muted: #5a5652;
  --border: rgba(255, 109, 91, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --gradient-accent: linear-gradient(135deg, #FF6D5B 0%, #FF9A52 100%);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(255, 109, 91, 0.15);
  --radius: 12px;
  --radius-lg: 18px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
}

[data-theme="light"] {
  --bg-primary: #FAF8F6;
  --bg-secondary: #F2EFEc;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFF5F4;
  --accent: #E8503E;
  --accent-light: #FF6D5B;
  --accent-dim: #E8503E99;
  --accent-glow: rgba(232, 80, 62, 0.08);
  --accent-glow-strong: rgba(232, 80, 62, 0.16);
  --text-primary: #1a1512;
  --text-secondary: #5c5450;
  --text-muted: #9a8f8b;
  --border: rgba(232, 80, 62, 0.2);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --gradient-accent: linear-gradient(135deg, #E8503E 0%, #FF8050 100%);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(232, 80, 62, 0.12);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--font-mono); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ===== Theme Toggle ===== */
.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.theme-icon { display: flex; align-items: center; justify-content: center; }
.theme-icon svg { width: 18px; height: 18px; }

[data-theme="dark"] .light-icon { display: flex; }
[data-theme="dark"] .dark-icon { display: none; }
[data-theme="light"] .light-icon { display: none; }
[data-theme="light"] .dark-icon { display: flex; }

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(250, 248, 246, 0.88);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.nav-logo .dot { color: var(--accent); }

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.3px;
}

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

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
  display: block;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 109, 91, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 109, 91, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 109, 91, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 109, 91, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-blob-1 {
  top: 10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 109, 91, 0.1) 0%, transparent 70%);
}

.hero-blob-2 {
  bottom: 10%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 154, 82, 0.08) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  letter-spacing: 0.5px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 0.95;
  margin-bottom: 1rem;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.4s forwards;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.6s forwards;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.8s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease 1s forwards;
}

.hero-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.6s ease 1.2s forwards;
}

.hero-socials a {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition);
}

.hero-socials a svg { width: 18px; height: 18px; }

.hero-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent));
}

.scroll-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: bounce 2s infinite;
}

/* ===== Sections ===== */
.section { padding: 7rem 0; }
.section-alt { background: var(--bg-secondary); }

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

.section-header { margin-bottom: 3.5rem; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  position: relative;
  display: inline-block;
}

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

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

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

.about-text p strong { color: var(--text-primary); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.stat:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.35rem;
  display: block;
  font-family: var(--font-mono);
}

.about-highlights { display: flex; flex-direction: column; gap: 1rem; }

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition);
}

.highlight-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.highlight-icon {
  width: 42px; height: 42px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.highlight-icon svg { width: 20px; height: 20px; }

.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

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

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-glow);
}

.skill-category-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.skill-category-title svg { width: 16px; height: 16px; flex-shrink: 0; }

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

.skill-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: var(--transition);
}

.skill-tag:hover {
  background: var(--accent-glow-strong);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 16px; bottom: 16px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -2.85rem; top: 14px;
  width: 14px; height: 14px;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-inner {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.job-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.company {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.timeline-meta { text-align: right; }

.job-period {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.job-location {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.job-duties { margin-bottom: 1.25rem; }

.job-duties li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.job-duties li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 3px;
}

.job-duties li strong { color: var(--text-primary); }

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

.job-tags span {
  padding: 0.2rem 0.6rem;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

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

.project-card:hover::after { transform: scaleX(1); }

.project-card.featured { grid-column: span 3; }

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

.project-icon {
  width: 46px; height: 46px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.project-icon svg { width: 22px; height: 22px; }

.project-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.project-downloads {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 20px;
  color: #34d399;
  font-family: var(--font-mono);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.project-desc strong { color: var(--text-primary); }

.project-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.project-tech span {
  padding: 0.2rem 0.6rem;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.35rem 0.8rem;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: var(--transition);
  font-family: var(--font-display);
}

.project-link svg { width: 14px; height: 14px; }

.project-link:hover {
  background: var(--accent-glow-strong);
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.testimonial-card.featured-testimonial {
  grid-column: span 1;
  border-color: var(--border);
  background: var(--bg-card-hover);
  position: relative;
}

.testimonial-card.featured-testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-accent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.4;
  font-weight: 800;
  margin-bottom: -0.5rem;
}

.testimonial-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.author-avatar.cto {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
}

.author-name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.1rem;
}

/* ===== Education ===== */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  transition: var(--transition);
}

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

.edu-icon {
  width: 50px; height: 50px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.edu-icon svg { width: 24px; height: 24px; }

.edu-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.edu-school { color: var(--accent); font-size: 0.9rem; font-weight: 500; }
.edu-location, .edu-period { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }

.edu-gpa {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.7rem;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.certs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.certs-card:hover { border-color: var(--border); }

.certs-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.certs-title svg { width: 18px; height: 18px; }

.certs-list { display: flex; flex-direction: column; gap: 0.6rem; }

.certs-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.certs-list li:hover {
  border-color: var(--border);
  color: var(--text-primary);
}

.cert-provider {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== Achievements ===== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition);
}

.achievement-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.achievement-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.achievement-icon svg { width: 20px; height: 20px; }

.achievement-icon.trophy  { background: rgba(251,191,36,0.1); color: #fbbf24; }
.achievement-icon.star    { background: rgba(245,158,11,0.1); color: #f59e0b; }
.achievement-icon.growth  { background: rgba(52,211,153,0.1); color: #34d399; }
.achievement-icon.download{ background: var(--accent-glow); color: var(--accent); }
.achievement-icon.migrate { background: rgba(56,189,248,0.1); color: #38bdf8; }
.achievement-icon.mentor  { background: rgba(192,132,252,0.1); color: #c084fc; }

.achievement-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

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

/* ===== Contact ===== */
.contact-wrapper {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.contact-icon {
  width: 42px; height: 42px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-icon svg { width: 18px; height: 18px; }

.contact-card h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
}

.contact-card p {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-all;
}

.contact-cta { margin: 0 auto; }

/* ===== Hero intro sentence ===== */
.hero-tagline.hero-intro { margin-bottom: 1rem; }

/* ===== Case study links (projects section) ===== */
.case-studies { margin-top: 3.5rem; }

.case-studies-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.case-study-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}

.faq-item:hover,
.faq-item[open] { border-color: var(--border); background: var(--bg-card-hover); }

.faq-item summary {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin-top: 0.9rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-item a,
.case-study-article a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Case study pages ===== */
.case-study-article { padding: 9rem 0 6rem; }
.case-study-article .container { max-width: 780px; }

.case-study-back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.case-study-back:hover { color: var(--accent); }

.case-study-article h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.case-study-summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.case-study-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.case-study-stats .stat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.case-study-stats .stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.case-study-stats .stat-label { font-size: 0.85rem; color: var(--text-secondary); }

.case-study-article h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 0.9rem;
}

.case-study-article p,
.case-study-article li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.case-study-article p + p,
.case-study-article ul + p,
.case-study-article ol + p { margin-top: 0.9rem; }

.case-study-article ul { list-style: disc; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.case-study-article ol { list-style: decimal; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.case-study-article li::marker { color: var(--accent); }
.case-study-article li strong, .case-study-article p strong { color: var(--text-primary); }

.case-study-cta {
  margin-top: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.case-study-cta h2 { margin-top: 0; }
.case-study-cta .btn { margin-top: 1.25rem; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  text-align: center;
}

.footer p { font-size: 0.875rem; color: var(--text-muted); }
.footer .footer-sub { font-size: 0.8rem; margin-top: 0.3rem; opacity: 0.7; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.featured { grid-column: span 2; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(11, 11, 11, 0.96);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99;
  }

  [data-theme="light"] .nav-links {
    background: rgba(250, 248, 246, 0.96);
  }

  .nav-links.open { opacity: 1; pointer-events: all; }
  .nav-links a { font-size: 1.4rem; }
  .nav-toggle { display: flex; position: relative; z-index: 100; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 1.75rem; }
  .timeline-header { flex-direction: column; gap: 0.5rem; }
  .timeline-meta { text-align: left; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card.featured-testimonial { grid-column: span 1; }
  .edu-grid { grid-template-columns: 1fr; }
  .edu-card { flex-direction: column; }
  .achievements-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .theme-toggle { top: 0.75rem; right: 4.5rem; }
}

@media (max-width: 640px) {
  .hero-name { letter-spacing: -2px; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ===== Hero Split Layout ===== */
.hero { justify-content: flex-start; padding: 0 2rem; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 4rem;
  min-height: 100vh;
  padding: 6rem 0 4rem;
}

.hero-content { text-align: left; }
.hero-tagline { margin: 0 0 2.5rem; }
.hero-actions { justify-content: flex-start; }
.hero-socials { justify-content: flex-start; }

/* Profile image right side */
.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  width: 380px;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
  position: relative;
  z-index: 2;
  border: 2px solid var(--border-subtle);
  filter: brightness(1.02) contrast(1.02);
}

.hero-image-ring {
  position: absolute;
  inset: -12px;
  border-radius: 32px;
  border: 1.5px solid var(--border);
  z-index: 1;
}

.hero-image-blob {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,109,91,0.18) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: -24px;
  z-index: 3;
  background: var(--gradient-accent);
  border-radius: 14px;
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(255,109,91,0.4);
}

.badge-num {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.badge-txt {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Project Card with Image ===== */
.project-card { flex-direction: column; padding: 0; overflow: hidden; }

.project-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

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

.project-body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

/* Featured card horizontal on desktop */
.project-card.featured {
  grid-column: span 3;
  flex-direction: row;
}

.project-card.featured .project-img-wrap {
  width: 340px;
  height: auto;
  min-height: 240px;
  flex-shrink: 0;
  border-radius: 0;
}

.project-card.featured .project-body { padding: 1.75rem; }

@media (max-width: 1024px) {
  .project-card.featured { grid-column: span 2; flex-direction: column; }
  .project-card.featured .project-img-wrap { width: 100%; height: 220px; }
}

@media (max-width: 768px) {
  /* Hero stacks on mobile */
  .hero { padding: 0 1.5rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    padding: 5rem 0 3rem;
  }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }

  .hero-image-wrap { order: -1; }
  .hero-photo { width: 260px; height: 320px; }
  .hero-badge { bottom: 12px; left: -12px; }

  .project-card.featured { grid-column: span 1; }
  .project-card.featured .project-img-wrap { width: 100%; height: 200px; }

  .project-img-wrap { height: 180px; }
}

@media (max-width: 768px) {
  .case-studies-grid { grid-template-columns: 1fr; }
  .case-study-article { padding: 7rem 0 4rem; }
}

/* ===== Services & Pricing ===== */
.pricing-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin: -1rem 0 2.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  min-width: 0;
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.pricing-card-popular {
  border-color: var(--border);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.pricing-card-popular::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: var(--gradient-accent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.pricing-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1.1;
}

.pricing-amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--accent);
}

.pricing-from {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pricing-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  flex: 1;
}

.pricing-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.4em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.pricing-btn {
  justify-content: center;
  text-align: center;
  margin-top: 0.5rem;
}

.pricing-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 720px;
}

.pricing-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; }
}

/* ===== Hero right column ===== */
.hero-inner { grid-template-columns: 1fr 420px; }
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 340px; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* Nav spacing on mid-size screens */
@media (min-width: 769px) and (max-width: 1180px) {
  .nav-links { gap: 1.25rem; }
  .nav-container { padding-right: 4.5rem; }
}

/* ===== Nav "Let's Talk" button ===== */
.nav-links a.nav-cta {
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 700;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active { background: var(--accent); color: #fff; }
@media (max-width: 768px) {
  .nav-links a.nav-cta { padding: 0.6rem 1.6rem; }
}

/* ===== How it works band ===== */
.steps-band {
  padding: 4rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.steps-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}
.step-card:hover { border-color: var(--border); transform: translateY(-3px); }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== Final call to action band ===== */
.cta-band { padding: 4rem 0; }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band-inner > div:first-child {
  flex: 1 1 380px;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}
.cta-band p { color: var(--text-secondary); margin-top: 0.5rem; }
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-band {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 50%, var(--accent-glow-strong), transparent 60%),
    var(--bg-primary);
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .nav-links a.nav-cta { padding: 0.6rem 1.6rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-band { padding: 3rem 0; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .cta-band-actions { flex-direction: column; width: 100%; }
  .cta-band-actions .btn { justify-content: center; }
}

/* ===== Hero v2 ===== */
.hero-content.hx { text-align: left; max-width: 640px; }

.hx-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.15s forwards;
}
.hx-title em {
  font-style: normal;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hx-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
}
.hx-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow-strong);
}

.hx-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 34rem;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.3s forwards;
}

.hx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.45s forwards;
}
.hx-actions .btn { padding: 0.95rem 1.6rem; }

.btn.hx-wa {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-subtle);
  box-shadow: inset 0 0 0 0 transparent;
}
.btn.hx-wa svg { width: 18px; height: 18px; color: #25D366; flex-shrink: 0; }
.btn.hx-wa:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.08);
  transform: translateY(-2px);
}

.hx-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.6s forwards;
}
.hx-stats > div { padding: 0 1.6rem; border-left: 1px solid var(--border-subtle); }
.hx-stats > div:first-child { padding-left: 0; border-left: none; }
.hx-stats dt {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1.2;
}
.hx-stats dd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  max-width: 14ch;
  line-height: 1.4;
}

@media (max-width: 1024px) {
}
@media (max-width: 768px) {
  .hero-inner { text-align: left; padding-top: 6.5rem; min-height: auto; }
  .hero-content.hx { text-align: left; }
  .hx-actions { flex-direction: column; align-items: stretch; }
  .hx-actions .btn { justify-content: center; }
}

/* ===== Hero app phones ===== */
.nav-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-glow-strong);
  border: 1.5px solid var(--border);
}

.hero-inner { grid-template-columns: 1.05fr 1fr; }

/* hero v3 tuning */
.hx-title { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
.hero-content.hx { max-width: 600px; }

/* ===== Hero showcase: full store graphics, two scrolling columns ===== */
.hx-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 600px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.35s forwards;
}
.hx-col { overflow: hidden; }
.hx-track {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  will-change: transform;
}
.hx-col-up .hx-track   { animation: hxScrollUp 38s linear infinite; }
.hx-col-down .hx-track { animation: hxScrollDown 32s linear infinite; }
.hx-col-down { margin-top: 3rem; }
.hx-showcase:hover .hx-track { animation-play-state: paused; }

.hx-track img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  background: var(--bg-card);
}
[data-theme="light"] .hx-track img { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12); }

/* each track holds its images twice; moving by half (+ half a gap) loops seamlessly */
@keyframes hxScrollUp   { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 0.5rem)); } }
@keyframes hxScrollDown { from { transform: translateY(calc(-50% - 0.5rem)); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .hx-track { animation: none !important; }
}
@media (max-width: 1024px) {
  .hx-showcase { height: 520px; }
}
@media (max-width: 768px) {
  .hx-showcase { height: 440px; margin-top: 0.5rem; }
  .hx-col-down { margin-top: 2rem; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
}
