/* ===========================
   HOME PAGE SPECIFIC STYLES
   =========================== */

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 60px 80px;
}

/* Grid scoped to hero + navbar — does NOT extend to rest of page */
.hero::before {
  content: '';
  position: absolute;
  top: -80px; /* reach behind the fixed navbar */
  left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(0, 230, 118, 0.12) 0%, transparent 68%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: 54px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.hero-title em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 700;
  color: var(--green);
  font-size: 1.08em;
  letter-spacing: 0;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.trusted-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.trusted-by img {
  height: 44px;
  width: auto;
}

.trusted-by span {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* MOBILE SHOWCASE */
.mobile-showcase {
  padding: 0 60px 80px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mobile-showcase::after {
  content: '';
  position: absolute;
  bottom: -180px;
  left: -180px;
  width: 900px;
  height: 800px;
  background: radial-gradient(ellipse 55% 50% at 22% 75%, rgba(0, 230, 118, 0.14) 0%, rgba(0, 230, 118, 0.05) 52%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.showcase-frame {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  background: #000;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0,230,118,0.1);
}

.showcase-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.showcase-thumb {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.showcase-thumb:hover img {
  transform: scale(1.03);
}

.showcase-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.2s;
}

.showcase-thumb:hover .showcase-play {
  background: rgba(0, 0, 0, 0.18);
}

.showcase-play i {
  font-size: 72px;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.6));
  transition: transform 0.2s, color 0.2s;
}

.showcase-thumb:hover .showcase-play i {
  transform: scale(1.08);
  color: #fff;
}

/* WHO WE SERVE */
.who-we-serve {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 230, 118, 0.04) 30%, rgba(0, 230, 118, 0.06) 50%, transparent 100%);
  padding: 100px 0 120px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.who-we-serve::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -120px;
  transform: translateY(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse 55% 50% at 15% 50%, rgba(0, 230, 118, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.serve-grid {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 120px), 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.serve-divider {
  width: 1px;
  height: 120px;
  background: rgba(255, 255, 255, 0.15);
}

.serve-card {
  padding: 0 40px;
}

.serve-card h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.serve-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  line-height: 1.5;
  max-width: 440px;
}

.serve-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  background: var(--green);
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}

.serve-link i {
  transform: rotate(-45deg);
}

.serve-link:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* PRODUCTS */
.products-section {
  padding: 34px 120px 98px;
  background: #07100C;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.products-section::before {
  content: '';
  position: absolute;
  top: -280px;
  left: -280px;
  width: 1100px;
  height: 950px;
  background: radial-gradient(ellipse 60% 55% at 22% 28%, rgba(0, 230, 118, 0.14) 0%, rgba(0, 230, 118, 0.05) 55%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.products-header,
.products-grid {
  position: relative;
  z-index: 1;
}

.products-header {
  text-align: center;
  margin-bottom: 52px;
}

.products-section .section-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.products-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 74px;
  align-items: stretch;
}

.product-left {
  padding-top: 12px;
}

.product-tagline {
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 500;
  color: var(--green);
  line-height: 1.32;
  margin-bottom: 14px;
  letter-spacing: 0;
}

.product-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  margin-bottom: 22px;
  max-width: 560px;
}

.product-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.accordion-item {
  border: 1px solid rgba(0, 230, 118, 0.18);
  border-radius: 8px;
  background: #061a13;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}

.accordion-item.active {
  background: #062b1f;
  border-color: rgba(0, 230, 118, 0.32);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: rgba(220, 245, 235, 0.78);
  background: transparent;
  transition: background 0.2s, color 0.2s;
  user-select: none;
  line-height: 1.5;
}

.accordion-item:hover .accordion-header {
  color: rgba(220, 245, 235, 0.95);
}

.accordion-item.active .accordion-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  padding-bottom: 6px;
}

.accordion-header i {
  color: var(--green);
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.accordion-item.active .accordion-header i {
  transform: rotate(45deg);
}

.accordion-body {
  display: none;
  padding: 0 18px 14px;
  background: transparent;
}

.accordion-item.active .accordion-body {
  display: block;
}

.accordion-body p {
  font-size: 13px;
  color: rgba(200, 230, 215, 0.72);
  line-height: 1.6;
  margin: 0;
}

.product-explore {
  margin-top: 24px;
  background: var(--green);
  border: none;
  color: #001b10;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
}

.product-explore:hover {
  background: var(--green-dark);
  color: #001b10;
  transform: translateY(-1px);
}

.product-right {
  position: relative;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-mockup-card {
  background: #25e0bb;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
  min-height: 320px;
}

.product-mockup-img {
  width: 100%;
  max-width: none;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.product-coming-soon {
  text-align: right;
  margin-top: 20px;
  font-size: 16px;
  color: #00e8b0;
  font-weight: 700;
  flex-shrink: 0;
}

.product-coming-soon em {
  color: #f1e779;
  font-style: italic;
}

/* PROJECTS */
.projects-section {
  padding: 86px 120px 98px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #04120d;
  scroll-margin-top: 98px;
}

.projects-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.36;
  pointer-events: none;
  z-index: 0;
}

.projects-section::after {
  content: '';
  position: absolute;
  bottom: -220px;
  left: -120px;
  width: 760px;
  height: 560px;
  background: radial-gradient(ellipse 62% 58% at 25% 74%, rgba(0, 230, 118, 0.16) 0%, rgba(0, 230, 118, 0.04) 52%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.projects-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.projects-heading-wrap { max-width: 720px; }

.projects-header .section-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.projects-subtitle {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(214, 232, 223, 0.68);
  line-height: 1.6;
  max-width: 580px;
}

.projects-cta {
  flex-shrink: 0;
  background: var(--green);
  color: #00150d;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 8px;
  box-shadow: none;
}

.projects-cta:hover {
  background: var(--green-dark);
  color: #00150d;
  transform: translateY(-1px);
  box-shadow: none;
}

.projects-scroll {
  position: relative;
  z-index: 2;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 -6px;
  padding: 8px 6px 14px;
  cursor: grab;
}

.projects-scroll:active,
.projects-scroll.dragging {
  cursor: grabbing;
}

.projects-scroll::-webkit-scrollbar { display: none; }

.projects-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 3.8);
  gap: 18px;
  position: relative;
  z-index: 2;
}

.project-card {
  position: relative;
  background: linear-gradient(180deg, #20272a 0%, #171d20 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  scroll-snap-align: start;
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), border-color 0.3s, box-shadow 0.35s;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 230, 118, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 230, 118, 0.12);
}

.project-img-wrap {
  height: 170px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10231b;
  position: relative;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.03);
}

.project-green { background: linear-gradient(135deg, #1ed28e 0%, #14b87a 100%); }
.project-teal  { background: linear-gradient(135deg, #214b56 0%, #1a3d47 100%); }
.project-light { background: linear-gradient(135deg, #f4f4f4 0%, #e5e5e5 100%); }
.project-blue  { background: linear-gradient(135deg, #f0f4f9 0%, #d8e2ed 100%); }

.project-light img,
.project-blue img {
  object-fit: contain;
  padding: 8px;
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.project-info {
  padding: 0 4px 2px;
}

.project-info h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
  line-height: 1.15;
}

.project-info p {
  font-size: 12px;
  color: rgba(220, 236, 228, 0.58);
  line-height: 1.55;
  margin-bottom: 10px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  transition: gap 0.25s ease, opacity 0.2s;
}

.project-link:hover { gap: 10px; opacity: 0.85; }

.project-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

/* Projects scroll progress indicator */
.projects-progress {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.projects-progress-track {
  width: 210px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
}

.projects-progress-fill {
  height: 100%;
  width: 30%;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.5);
  transition: width 0.15s linear;
}

/* TESTIMONIALS */
.testimonials-section {
  padding: 72px 120px 110px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #03140d 0%, #021009 100%);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.testimonials-header .section-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--white);
}

.testimonials-subtitle {
  margin: 16px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 0.84fr) minmax(0, 0.84fr);
  gap: 18px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.testimonial-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial-col--center {
  align-self: start;
}

.testimonial-col:not(:first-child) .testimonial-author {
  flex-wrap: wrap;
  row-gap: 6px;
}

.testimonial-col:not(:first-child) .author-info {
  flex: 1 1 calc(100% - 52px);
}

.testimonial-col:not(:first-child) .stars {
  margin-left: 52px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 230, 118, 0.18);
  border-radius: 14px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), border-color 0.3s, box-shadow 0.35s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 230, 118, 0.38);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.40);
}

.testimonial-card > p {
  font-size: 13.5px;
  color: rgba(220, 245, 235, 0.80);
  line-height: 1.75;
  margin-bottom: 28px;
  font-style: normal;
}

.testimonial-col:not(:first-child) .testimonial-card > p {
  margin-top: 12px;
  margin-bottom: 60px;
}

/* Desktop balance: make vertical cards visually taller without forcing text-author gaps */
.testimonial-col:not(:first-child) .testimonial-card {
  min-height: 400px;
}

.testimonial-author {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(0, 80, 40, 0.9) 0%, rgba(0, 50, 28, 0.95) 100%);
  border: 1.5px solid rgba(0, 230, 118, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.15);
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  line-height: 1.3;
}

.author-info span {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.stars {
  color: #f5c518;
  font-size: 13px;
  letter-spacing: 2px;
  flex-shrink: 0;
  align-self: flex-end;
  line-height: 1;
  filter: drop-shadow(0 0 5px rgba(245, 197, 24, 0.40));
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-title { font-size: 46px; }
  .who-we-serve { margin: 24px 0 56px; padding: 64px 0; }
  .serve-grid { width: min(calc(100% - 64px), 1200px); }
  .serve-card { padding: 0 32px; }
  .serve-divider { height: 180px; }
  .serve-card p { font-size: 14px; }
  .serve-link { font-size: 13px; }
  .products-section { padding: 34px 32px 86px; }
  .products-section .section-title { font-size: 38px; font-weight: 700; line-height: 1.15; letter-spacing: -0.4px; }
  .product-tagline { font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; }
  .accordion-header { font-size: 15px; }
  .accordion-body p { font-size: 14px; }
  .products-grid { gap: 40px; }
  .projects-section { padding: 70px 32px 82px; }
  .projects-grid { grid-auto-columns: calc((100% - 18px) / 2.2); }
  .projects-header .section-title { font-size: 38px; font-weight: 700; line-height: 1.15; letter-spacing: -0.4px; }
  .projects-progress { margin-top: 24px; }
  .testimonials-section { padding: 46px 32px 60px; }
  .showcase-label { font-size: 60px; }
  .mobile-showcase { padding: 60px 32px; }
}

@media (max-width: 768px) {
  .hero { padding: 100px 24px 60px; }
  .hero-title { font-size: 38px; letter-spacing: -0.5px; white-space: normal; }
  .hero-subtitle { font-size: 14px; }
  .mobile-showcase { padding: 40px 16px; }
  .showcase-frame { padding: 0; }
  .showcase-label { font-size: 44px; }
  .phone-img { height: 180px; }
  .who-we-serve { margin: 24px 0 56px; padding: 56px 0; }
  .serve-grid {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .serve-divider { display: none; }
  .serve-card { padding: 0 8px; }
  .serve-card h3 { font-size: clamp(26px, 8vw, 34px); }
  .serve-card p { font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
  .serve-card:nth-child(3) h3 { color: var(--green-dark); }
  .serve-card:nth-child(3) p { color: rgba(255, 255, 255, 0.85); }
  .serve-link { font-size: 13px; }
  .products-section { padding: 60px 16px 80px; }
  .products-header { margin-bottom: 36px; }
  .products-section .section-title { font-size: 38px; font-weight: 700; line-height: 1.15; letter-spacing: -0.4px; }
  .product-tagline { font-size: 22px; font-weight: 500; }
  .product-description { font-size: 15px; }
  .accordion-header { font-size: 14px; }
  .accordion-body p { font-size: 13px; }
  .products-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-right { margin-top: 0; flex-direction: column; }
  .product-mockup-card { min-height: 340px; }
  .product-coming-soon { font-size: 14px; }
  .projects-section { padding: 60px 16px 80px; }
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .projects-header .section-title { font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: -0.4px; }
  .projects-cta { align-self: flex-start; }
  .projects-grid {
    grid-auto-columns: calc((100% - 12px) / 1.08);
    gap: 12px;
  }
  .project-img-wrap { height: 156px; }
  .project-info h4 { font-size: 16px; }
  .projects-progress-track { width: 120px; }
  .testimonials-section { padding: 44px 16px 88px; }
  .testimonials-header { margin-bottom: 28px; }
  .testimonials-header .section-title { font-size: 26px; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* On mobile, make Amina/Funke cards behave exactly like the first two cards */
  .testimonial-col:not(:first-child) .testimonial-card {
    min-height: auto;
  }

  .testimonial-col:not(:first-child) .testimonial-card > p {
    margin-top: 0;
    margin-bottom: 28px;
  }

  .testimonial-col:not(:first-child) .testimonial-author {
    flex-wrap: nowrap;
    row-gap: 0;
  }

  .testimonial-col:not(:first-child) .author-info {
    flex: 1;
  }

  .testimonial-col:not(:first-child) .stars {
    margin-left: auto;
  }
}
