/* ═══════════════════════════════════════════════════════════ */
/*  Crackers — Premium Dark Portfolio                         */
/*  Inspired by Portfely.com • Single Page Design             */
/* ═══════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties (Design Tokens) ─── */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;

  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.55);
  --text-muted: rgba(240, 240, 245, 0.35);

  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.15);
  --accent-glow-strong: rgba(108, 92, 231, 0.3);

  --teal: #00cec9;
  --gold: #fdcb6e;
  --purple: #a29bfe;
  --red-dot: #ff6b6b;
  --yellow-dot: #feca57;
  --green-dot: #48dbfb;

  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(108, 92, 231, 0.08);

  --font-sans: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', -apple-system, sans-serif;

  --nav-height: 64px;
  --max-width: 1200px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Light Mode Theme ─── */
[data-theme="light"] {
  --bg-primary: #f5f5fa;
  --bg-secondary: #eeeef4;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8fc;

  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.6);
  --text-muted: rgba(26, 26, 46, 0.4);

  --accent: #6c5ce7;
  --accent-light: #5a4bd1;
  --accent-glow: rgba(108, 92, 231, 0.12);
  --accent-glow-strong: rgba(108, 92, 231, 0.22);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 60px rgba(108, 92, 231, 0.06);
}

[data-theme="light"] html,
[data-theme="light"] {
  color-scheme: light;
}

/* Light mode: scrolled navbar */
[data-theme="light"] .navbar.scrolled {
  background: rgba(245, 245, 250, 0.88);
}

/* Light mode: mobile overlay */
[data-theme="light"] .nav-links.open,
[data-theme="light"] .nav-links {
  /* keeps nav-links transparent on desktop, only mobile override below */
}

@media (max-width: 768px) {
  [data-theme="light"] .nav-links {
    background: rgba(245, 245, 250, 0.97);
  }
  [data-theme="light"] .nav-links .nav-link {
    color: var(--text-primary);
  }
}

/* Light mode: hero glow dimmed */
[data-theme="light"] .hero-glow {
  opacity: 0.06;
}

/* Light mode: dot grid */
[data-theme="light"] .hero-dot-grid {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}

/* Light mode: falling rocks canvas overlay blend */
[data-theme="light"] #falling-rocks-canvas {
  opacity: 0.35;
}

/* Light mode: demo section bg */
[data-theme="light"] .demo-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

/* Light mode: step highlight keeps white text */
[data-theme="light"] .how-step.step-highlight {
  background: var(--accent);
  border-color: var(--accent);
}

/* Light mode: demo badge bg */
[data-theme="light"] .demo-badge {
  background: rgba(255, 255, 255, 0.95);
}

/* Light mode: browser header */
[data-theme="light"] .browser-header {
  background: rgba(0, 0, 0, 0.03);
}

/* Light mode: form inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(26,26,46,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

[data-theme="light"] .form-group select option {
  background: #fff;
  color: var(--text-primary);
}

/* Light mode: secondary buttons */
[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

/* Light mode: card elevations */
[data-theme="light"] .about-card,
[data-theme="light"] .about-stats-card,
[data-theme="light"] .how-step,
[data-theme="light"] .portfolio-card,
[data-theme="light"] .contact-form-card,
[data-theme="light"] .contact-info-card,
[data-theme="light"] .contact-social-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .about-card:hover,
[data-theme="light"] .about-stats-card:hover,
[data-theme="light"] .how-step:hover,
[data-theme="light"] .portfolio-card:hover {
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.12);
}

/* Light mode: step number */
[data-theme="light"] .step-number {
  color: rgba(0, 0, 0, 0.06);
}

/* Light mode: social buttons and badges */
[data-theme="light"] .about-socials a,
[data-theme="light"] .social-link-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.09);
  color: var(--text-secondary);
}

[data-theme="light"] .portfolio-card-tags span {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
}

[data-theme="light"] .browser-address {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
}

[data-theme="light"] .hero-badge {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.08);
}


/* ─── Theme Toggle Button ─── */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: all 0.4s var(--ease-spring);
}

/* Dark mode (default): show moon, hide sun */
.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #fdcb6e;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-glow-strong);
  color: var(--text-primary);
}

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

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

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

/* ─── Falling Rocks Canvas ─── */
#falling-rocks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════ */
/*  NAVIGATION                                     */
/* ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: all 0.5s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border-color);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  transition: opacity 0.3s;
}

.logo-text:hover {
  opacity: 0.8;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
  position: relative;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
  opacity: 0.9;
  transform: scale(0.97);
  color: #fff;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════ */
/*  HERO SECTION                                   */
/* ═══════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 440px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: fit-content;
}

.badge-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.badge-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-ring 2s infinite;
}

.badge-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Hero Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
}

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

/* Hero Checks */
.hero-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-check {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(108, 92, 231, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon i {
  font-size: 12px;
  color: var(--accent);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(0.97);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.hero-status {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-status i {
  color: var(--accent);
  margin-right: 6px;
}

/* Earth Globe */
.hero-earth {
  display: flex;
  align-items: center;
  justify-content: center;
}

.earth-wrapper {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  position: relative;
}

.earth-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ═══════════════════════════════════════════════ */
/*  GLOBAL SECTION STYLES                          */
/* ═══════════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-tag i {
  font-size: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.text-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════ */
/*  ABOUT SECTION                                  */
/* ═══════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.about-card,
.about-stats-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}

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

.about-card-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.about-card:hover .about-card-glow,
.about-stats-card:hover .about-card-glow {
  opacity: 1;
}

.about-avatar {
  margin-bottom: 20px;
}

.avatar-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent-glow-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: rgba(108, 92, 231, 0.08);
}

.avatar-ring i {
  font-size: 28px;
  color: var(--accent-light);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.about-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.about-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
}

.about-tech-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(108, 92, 231, 0.1);
  color: var(--accent-light);
  border: 1px solid rgba(108, 92, 231, 0.15);
}

.about-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.about-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  transition: all 0.3s var(--ease-out);
}

.about-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Stats Card */
.about-stats-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.stat-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.stat-item {
  text-align: center;
}

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

.stat-suffix {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-light);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-partnership-note {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 14px;
  background: rgba(108, 92, 231, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(108, 92, 231, 0.1);
}

.about-partnership-note i {
  color: var(--accent);
  margin-right: 6px;
}

/* ═══════════════════════════════════════════════ */
/*  HOW IT WORKS SECTION                           */
/* ═══════════════════════════════════════════════ */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.how-step {
  position: relative;
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}

.how-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.how-step.step-highlight {
  background: var(--accent);
  border-color: var(--accent);
}

.how-step.step-highlight:hover {
  border-color: var(--accent-light);
}

.step-number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  display: block;
  user-select: none;
}

.step-highlight .step-number {
  color: rgba(255, 255, 255, 0.2);
}

.step-content {
  margin-top: 12px;
}

.step-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.step-icon-row i {
  font-size: 16px;
  color: var(--text-muted);
}

.step-highlight .step-icon-row i {
  color: #fff;
}

.step-icon-row h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.step-highlight h3 {
  color: #fff;
}

.step-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.how-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.step-highlight p {
  color: rgba(255, 255, 255, 0.7);
}

/* How Stats Row */
.how-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.how-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.how-stat-num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}

.how-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════ */
/*  LIVE DEMO SECTION                              */
/* ═══════════════════════════════════════════════ */
.demo-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.demo-showcase {
  position: relative;
  max-width: 900px;
  margin: 0 auto 40px;
}

.demo-browser {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: var(--red-dot); }
.dot.yellow { background: var(--yellow-dot); }
.dot.green { background: var(--green-dot); }

.browser-address {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-address i {
  font-size: 10px;
  color: var(--green-dot);
}

.browser-actions {
  color: var(--text-muted);
  font-size: 14px;
}

.browser-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
}

.browser-launch-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  color: #fff;
}

.browser-body-link {
  display: block;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.browser-body {
  padding: 0;
  line-height: 0;
  position: relative;
}

.browser-body img {
  width: 100%;
  height: auto;
  transition: transform 0.5s var(--ease-out);
}

.browser-body-link:hover .browser-body img {
  transform: scale(1.02);
}

/* Demo Click / Hover Overlay */
.demo-click-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.35s var(--ease-out);
  z-index: 4;
}

.browser-body-link:hover .demo-click-overlay {
  opacity: 1;
}

.demo-click-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ff5e14 0%, #ff8936 50%, #f39c12 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(255, 94, 20, 0.45);
  transform: translateY(12px);
  transition: transform 0.35s var(--ease-spring);
}

.browser-body-link:hover .demo-click-pill {
  transform: translateY(0);
}

.demo-click-subtext {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transform: translateY(8px);
  transition: transform 0.35s var(--ease-spring);
}

.browser-body-link:hover .demo-click-subtext {
  transform: translateY(0);
}

/* Demo Actions Row */
.demo-actions-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 32px 0 24px;
}

.btn-demo-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #ff5e14 0%, #ff8936 50%, #f39c12 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(255, 94, 20, 0.35);
  transition: all 0.3s var(--ease-out);
}

.btn-demo-launch:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 36px rgba(255, 94, 20, 0.5);
  color: #fff;
}

.demo-cta-hint {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-cta-hint i {
  color: #00b894;
}

/* Light mode adjustments for demo overlay */
[data-theme="light"] .demo-click-overlay {
  background: rgba(245, 245, 250, 0.75);
}

[data-theme="light"] .demo-click-subtext {
  color: #1a1a2e;
  text-shadow: none;
}


/* Floating Demo Badges */
.demo-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(22, 22, 31, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  z-index: 5;
  animation: badge-float 4s ease-in-out infinite;
}

.demo-badge-1 {
  top: 15%;
  right: -40px;
  animation-delay: 0s;
}

.demo-badge-2 {
  bottom: 25%;
  left: -40px;
  animation-delay: -1.5s;
}

.demo-badge-3 {
  bottom: 8%;
  right: -20px;
  animation-delay: -3s;
}

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

.demo-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.demo-badge-icon.teal {
  background: rgba(0, 206, 201, 0.15);
  color: var(--teal);
}

.demo-badge-icon.gold {
  background: rgba(253, 203, 110, 0.15);
  color: var(--gold);
}

.demo-badge-icon.purple {
  background: rgba(162, 155, 254, 0.15);
  color: var(--purple);
}

.demo-badge-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.demo-badge-text small {
  font-size: 11px;
  color: var(--text-muted);
}

/* Tech Pills */
.demo-tech-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.15);
  color: var(--accent-light);
}

/* ═══════════════════════════════════════════════ */
/*  PORTFOLIO SECTION                              */
/* ═══════════════════════════════════════════════ */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.portfolio-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}

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

.portfolio-card-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.portfolio-card:hover .portfolio-card-glow {
  opacity: 1;
}

.portfolio-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.portfolio-card-icon i {
  font-size: 22px;
  color: var(--accent-light);
}

.portfolio-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.portfolio-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.portfolio-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.portfolio-card-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.portfolio-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s var(--ease-out);
}

.portfolio-card-link:hover {
  color: var(--accent-light);
  gap: 10px;
}

/* ═══════════════════════════════════════════════ */
/*  CONTACT SECTION                                */
/* ═══════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.contact-form-card,
.contact-info-card,
.contact-social-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.contact-form-card:hover,
.contact-info-card:hover,
.contact-social-card:hover {
  border-color: var(--border-hover);
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.3s var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(240,240,245,0.35)' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn-submit:hover {
  opacity: 0.9;
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

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

.spin-icon {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

.form-status-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInStatus 0.3s ease-in-out;
}

.form-status-msg.success {
  background: rgba(0, 184, 148, 0.15);
  border: 1px solid rgba(0, 184, 148, 0.4);
  color: #00b894;
}

.form-status-msg.error {
  background: rgba(235, 77, 75, 0.15);
  border: 1px solid rgba(235, 77, 75, 0.4);
  color: #eb4d4b;
}

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

/* Contact Info */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

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

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 16px;
}

.contact-info-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-info-item span,
.contact-info-item a {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Social Card */
.contact-social-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-socials {
  display: flex;
  gap: 10px;
}

.social-link-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
}

.social-link-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════ */
/*  FOOTER                                         */
/* ═══════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  background: var(--bg-secondary);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 360px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-socials a {
  font-size: 16px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════ */
/*  SCROLL TO TOP                                  */
/* ═══════════════════════════════════════════════ */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 4px 24px rgba(108, 92, 231, 0.3);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════ */
/*  SCROLL REVEAL ANIMATIONS                       */
/* ═══════════════════════════════════════════════ */
.animate-in {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(-8px);
  animation: fadeInUp 0.7s var(--ease-out) forwards;
}

.animate-in[data-delay="0"] { animation-delay: 0.1s; }
.animate-in[data-delay="1"] { animation-delay: 0.2s; }
.animate-in[data-delay="2"] { animation-delay: 0.35s; }
.animate-in[data-delay="3"] { animation-delay: 0.5s; }
.animate-in[data-delay="4"] { animation-delay: 0.65s; }
.animate-in[data-delay="5"] { animation-delay: 0.8s; }

.animate-in-right {
  opacity: 0;
  filter: blur(6px);
  transform: translateX(-12px);
  animation: fadeInRight 0.8s var(--ease-out) forwards;
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
  }
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════ */
/*  RESPONSIVE                                     */
/* ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-checks {
    align-items: center;
  }

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

  .hero-earth {
    max-width: 360px;
    margin: 0 auto;
  }

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

  .about-stats-card {
    grid-column: 1 / -1;
  }

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

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

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

  .demo-badge-1,
  .demo-badge-2,
  .demo-badge-3 {
    position: static;
    animation: none;
    display: inline-flex;
    margin: 8px;
  }

  .demo-showcase::after {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }

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

  .nav-links .nav-link {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .section {
    padding: 72px 0;
  }

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

  .how-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .demo-badge {
    padding: 8px 12px;
  }

  .demo-badge-text strong {
    font-size: 12px;
  }
}