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

:root {
  --bg:             #0F1A14;
  --bg-surface:     #1A2E20;
  --border:         #27500A;
  --green-mid:      #639922;
  --green-pop:      #97C459;
  --green-soft:     #C0DD97;
  --amber:          #FAC775;
  --text-primary:   #F1EFE8;
  --text-secondary: #C0DD97;
  --text-muted:     #639922;

  --accent2:    #FAC775;
  --glow1:      rgba(250, 199, 117, 0.4);
  --card:       #1A2E20;
  --muted:      #639922;

  --radius: 20px;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}



html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

@media (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }
}

/* ── Particles Container ───────────────────────────────────── */
#leaves-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.falling-leaf {
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--green-mid);
  border-radius: 0 50% 0 50%;
  opacity: 0.3;
  animation: fall linear forwards, sway 3s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes fall {
  0% { top: -5%; }
  100% { top: 105%; }
}

@keyframes sway {
  0% { transform: translateX(0) rotate(0deg); }
  100% { transform: translateX(30px) rotate(45deg); }
}

/* ── Intro Overlay ──────────────────────────────────────── */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-text {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  align-items: center;
  gap: 15px;
}

.intro-text .welcome-word {
  color: var(--text-primary);
}

.intro-text .partner-word {
  color: var(--green-pop);
}

.welcome-leaf {
  color: var(--green-pop);
  animation: leaf-flutter 2s ease-in-out infinite alternate;
  transform-origin: bottom left;
}

@keyframes leaf-flutter {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(15deg) scale(1.1); }
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

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

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

/* ── Selection ──────────────────────────────────────────── */
::selection {
  background: var(--green-pop);
  color: var(--bg);
}

/* ── Custom Cursor (Branch) ────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-glow::before {
  content: "🌿";
  font-size: 26px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor-glow {
    display: none !important;
  }

  .card {
    cursor: pointer !important;
  }
}

/* ── Noise overlay ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 220px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 2;
}

/* ── Header ─────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(6, 11, 8, 0.8);
  z-index: 1000;
  transition: padding 0.3s var(--transition);
}

header.scrolled {
  padding: 10px 48px;
  background: rgba(26, 46, 32, 0.9); /* var(--bg-surface) slightly transparent */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(151, 196, 89, 0.2);
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  padding: 8px 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 99px;
  transition: all 0.3s var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--green-pop);
  background: var(--bg);
}

nav a.active {
  color: var(--green-pop);
}

.nav-cta {
  background: var(--bg);
  border: 1px solid var(--green-pop);
  color: var(--green-pop) !important;
  padding: 9px 22px !important;
  font-weight: 600 !important;
  transition: all 0.2s var(--transition);
}

.nav-cta:hover {
  background: var(--green-pop) !important;
  color: var(--bg) !important;
  transform: translateY(-1px);
}

/* ── Sections ────────────────────────────────────────────── */
section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  z-index: 3;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--border);
}

h2.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1rem;
  margin-bottom: 48px;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding-top: 140px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  box-shadow: 2px 2px 0 #060B08;
}

@keyframes pulse-badge {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(151, 196, 89, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(151, 196, 89, 0);
  }
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero h1 .line-grad {
  color: var(--green-pop);
}

.hero .typed-wrapper {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-muted);
  margin-bottom: 12px;
}

.typing {
  color: var(--green-pop);
  font-weight: 700;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  padding: 14px 36px;
  border: none;
  background: var(--green-pop);
  color: var(--bg);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  transition: all 0.2s var(--transition);
  box-shadow: 4px 4px 0 #060B08;
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #060B08;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-outline {
  padding: 13px 36px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--transition);
  box-shadow: 4px 4px 0 #060B08;
}

.btn-outline:hover {
  border-color: var(--green-mid);
  color: var(--text-primary);
  background: var(--bg);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #060B08;
}

/* ── Stats strip ─────────────────────────────────────────── */
.stats-strip {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--amber);
}

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

/* ── Skills badges ───────────────────────────────────────── */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.skill-badge {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid;
  transition: all 0.2s var(--transition);
  box-shadow: 2px 2px 0 #060B08;
}

.skill-badge:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #060B08;
}

/* ── Process Scroll Animation & Tree Layout ───────────────── */
.process-wrapper {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 40px auto 0;
}

.process-tree-container {
  width: 100%;
  position: relative;
  /* Ensure it stays mostly fixed as you scroll through timeline */
  position: sticky;
  top: 150px;
  align-self: flex-start;
}

#processTree {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(151, 196, 89, 0.1));
}

@media (max-width: 768px) {
  .process-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process-tree-container {
    display: none;
  }
}

.process-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
}

.process-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

@media (max-width: 768px) {
  .process-container::before {
    left: 20px;
  }
}

.process-step {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  opacity: 1;
}

@media (max-width: 768px) {
  .process-step {
    gap: 15px;
  }
}

.step-num {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: all 0.2s var(--transition);
}

@media (max-width: 768px) {
  .step-num {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

.step-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 12px;
  flex-grow: 1;
  transition: all 0.2s var(--transition);
  box-shadow: 4px 4px 0 #060B08;
}

.process-step:hover .step-content {
  transform: translate(-3px, -3px);
  border-color: var(--green-mid);
  box-shadow: 7px 7px 0 #060B08;
}

.process-step:hover .step-num {
  background: var(--green-pop);
  border-color: var(--green-pop);
  color: var(--bg);
}

.step-content h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}


/* Ensure heading centered and uppercase */
#process .section-title {
  text-align: center;
  text-transform: uppercase;
}


.badge-v {
  border-color: var(--border);
  color: var(--green-pop);
  background: rgba(151, 196, 89, 0.08);
}

.badge-c {
  border-color: var(--border);
  color: var(--amber);
  background: rgba(250, 199, 117, 0.08);
}

.badge-p {
  border-color: var(--border);
  color: var(--green-soft);
  background: rgba(192, 221, 151, 0.08);
}

/* ── Projects ────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1100px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: none;
  transition: all 0.2s var(--transition);
  position: relative;
  box-shadow: 4px 4px 0 #060B08;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 #060B08;
  border-color: var(--green-mid);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 190px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition);
}

.card:hover .card-img-wrap img {
  transform: scale(1.07);
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--amber);
  color: #111;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.card-body {
  padding: 20px 22px 22px;
  position: relative;
  z-index: 1;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: gap 0.3s, color 0.3s;
}

.card:hover .card-arrow {
  gap: 10px;
  color: var(--green-pop);
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 320px;
  padding: 36px 28px;
  transition: all 0.2s var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 4px 4px 0 #060B08;
}

.price-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green-mid);
  opacity: 0;
  transition: opacity 0.4s;
}

.price-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--green-mid);
  box-shadow: 6px 6px 0 #060B08;
}

.price-card:hover::after {
  opacity: 1;
}

.price-card.featured {
  border-color: var(--amber);
  background: var(--bg);
}

.price-card.featured::after {
  opacity: 1;
  background: var(--amber);
}

.feature-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--amber);
  color: #1A2E20;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.price-tier {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.price-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.price-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.price-amount span {
  font-size: 1.1rem;
  font-weight: 600;
  vertical-align: top;
  padding-top: 8px;
  display: inline-block;
  color: var(--text-muted);
}

.price-maintenance {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.price-maintenance .icon {
  font-size: 1rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.features-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-list li .check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-pop);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--bg);
}

.features-list li .cross {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.btn-plan {
  width: 100%;
  padding: 13px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--transition);
  box-shadow: 4px 4px 0 #060B08;
}

.btn-plan-filled {
  background: var(--green-pop);
  color: var(--bg);
}

.btn-plan-filled:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #060B08;
}

.btn-plan-ghost {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border) !important;
}

.btn-plan-ghost:hover {
  border-color: var(--green-pop) !important;
  color: var(--text-primary);
  background: var(--bg);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #060B08;
}

/* ── Testimonial ─────────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  width: 100%;
}

.t-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  transition: all 0.2s var(--transition);
  box-shadow: 4px 4px 0 #060B08;
}

.t-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 #060B08;
  border-color: var(--green-mid);
}

.t-stars {
  color: var(--amber);
  font-size: 1rem;
  margin-bottom: 12px;
}

.t-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--green-pop);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--text-primary);
}

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

.t-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 560px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 4px 4px 0 #060B08;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--bg);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s var(--transition);
  box-shadow: 2px 2px 0 #060B08;
}

.contact-link:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--bg);
  transform: translate(2px, 2px);
  box-shadow: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ci-wa {
  background: rgba(37, 211, 102, 0.1);
}

.ci-em {
  background: rgba(26, 46, 32, 0.5); /* from bg-surface */
}

.contact-link-label {
  font-size: 0.75rem;
  color: inherit;
  opacity: 0.8;
}

.contact-link-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: inherit;
}

/* ── WhatsApp FAB ────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 1000;
  box-shadow: 4px 4px 0 #060B08;
  transition: all 0.2s var(--transition);
}

.whatsapp-fab svg {
  width: 22px;
  height: 22px;
  fill: var(--green-pop);
}

.whatsapp-fab:hover {
  transform: translate(2px, 2px);
  border-color: var(--green-pop);
  background: var(--green-pop);
  color: var(--bg);
  box-shadow: 2px 2px 0 #060B08;
}

.whatsapp-fab:hover svg {
  fill: var(--bg);
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 28px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 3;
}

footer span {
  color: var(--amber);
}

/* ── Section separator ────────────────────────────────────── */
section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--border);
}

/* ── Scroll reveal utility ───────────────────────────────── */
@keyframes fadeScaleUp {
  from {
    transform: translateY(24px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.ao-animate {
  animation: fadeScaleUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Smooth link underlines ──────────────────────────────── */
a {
  text-decoration-skip-ink: auto;
}

/* ── Focus-visible for accessibility ─────────────────────── */
:focus-visible {
  outline: 2px solid var(--green-pop);
  outline-offset: 2px;
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  header {
    padding: 14px 20px;
  }

  nav a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 8vw, 3.5rem);
    letter-spacing: -1px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .stats-strip {
    gap: 24px;
    flex-direction: column;
    align-items: center;
  }

  .modal-body {
    padding: 24px;
  }

  .modal-body h2 {
    font-size: 1.6rem;
  }

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

@media (max-width: 480px) {
  nav .nav-cta {
    display: none;
  }

  nav {
    gap: 4px;
  }

  nav a {
    padding: 4px 6px;
    font-size: 0.85rem;
  }

  section {
    padding: 100px 16px 60px;
  }

  .flashcards-deck {
    grid-template-columns: 1fr !important;
  }
}



#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--green-pop);
  z-index: 9999;
  transition: width 0.1s;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  box-shadow: 2px 2px 0 #060B08;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--green-mid);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #060B08;
}

/* Modal Styling */
.project-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 11, 8, 0.95); /* Deep dark tint */
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}

.project-modal.show {
  display: flex;
  animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUpModal 0.3s ease-out;
  box-shadow: 8px 8px 0 #060B08;
}

@keyframes slideUpModal {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  color: var(--text-secondary);
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
  background: var(--bg);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
  box-shadow: 2px 2px 0 #060B08;
}

.close-modal:hover {
  color: var(--green-pop);
  background: var(--bg-surface);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #060B08;
}

#modalImg {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  padding: 40px;
}

.modal-body h2 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.modal-body p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  white-space: pre-wrap;
}
