﻿/* ========================== PAGE SECTIONS ========================== */
.section {
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}



.bg-secondary-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background: #f9fafb;
}

.description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Container with border for premium look */
.bordered-container {
  margin: 0 auto;
  padding: 1.6rem 1.2rem;
  border-radius: 24px;
  border: 2px solid rgba(99, 102, 241, 0.18);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 2;
}

/* Dot background for premium/secondary sections */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle,
      rgba(99, 102, 241, 0.035) 1px,
      transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: 0.6;
}

/* ========================== CONTENT CENTER ========================== */
.content-center {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

/* ========================== BADGES ========================== */
.location-badge {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  background:
    radial-gradient(circle, rgba(99, 102, 241, 0.28) 1px, transparent 1px),
    linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.03));
  background-size:
    6px 6px,
    100%;
  color: var(--primary);
  margin-bottom: 0.9rem;
}

/* ========================== FEATURES GRID ========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.premium-grid {
  gap: 2rem;
}

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

/* ========================== FEATURE CARD ========================== */
.features-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0rem 1rem;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}

.features-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.features-list {
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.portfolio-btn {
  margin-top: 1rem;
  text-align: center;
  align-self: start;
}

/* ========================== STATS GRID ========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.stat-card {
  text-align: center;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-light);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  transition:
    0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.stat-value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

/* ========================== ABOUT FEATURES ========================== */
.about-features {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.about-features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle,
      rgba(99, 102, 241, 0.05) 1px,
      transparent 1px);
  background-size: 15px 15px;
  pointer-events: none;
  border-radius: 24px;
}

/* ========================== CTA BLOCKS ========================== */
.center-cta {
  text-align: center;
  margin-top: 2.8rem;
}

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

/* ========================== FOOTER CTA ========================== */
.footer-cta {
  background:
    radial-gradient(circle at top left,
      rgba(99, 102, 241, 0.18),
      transparent 60%),
    radial-gradient(circle at bottom right,
      rgba(14, 165, 233, 0.15),
      transparent 60%),
    linear-gradient(180deg, #020617 0%, #020617 100%);
  color: #fff;
  padding: 6.5rem 0;
  text-align: center;
}

.footer-cta h2 {
  color: #fff;
}

.footer-cta p {
  max-width: 650px;
  margin: 1rem auto 2.8rem;
  color: #cbd5f5;
}

.footer-cta .btn-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(6px);
}

.footer-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

/* ========================== FAQ ========================== */
/* ==========================
   FAQ SECTION - PREMIUM + SEO SAFE
========================== */

.faq-grid {
  display: grid;
  gap: 0.8rem;
}

/* Card */
.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8faff;
  overflow: hidden;
  transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.active {
  background: linear-gradient(180deg,
      rgba(99, 102, 241, 0.06),
      rgba(99, 102, 241, 0.02));
  border: 1.5px solid rgba(99, 102, 241, 0.45);
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(99, 102, 241, 0.04) inset;
}


/* Question Row */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  margin: 0;
  line-height: 1.4;
}

/* Toggle Icon (CSS Only) */
.faq-toggle-icon {
  width: 12px;
  height: 12px;
  position: relative;
  flex-shrink: 0;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.faq-toggle-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-toggle-icon::after {
  height: 100%;
  width: 2px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* Active → minus icon */
.faq-item.active .faq-toggle-icon::after {
  opacity: 0;
}

.faq-item.active .faq-toggle-icon::before {
  transform: translateY(-50%) rotate(180deg);
}

/* Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease,
    opacity 0.25s ease;
  opacity: 0;
}

.faq-answer p {
  margin: 0.8rem 0 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Active State */
.faq-item.active .faq-answer {
  max-height: 1000px;
  padding-bottom: 1rem;
  opacity: 1;
}

/* Hover polish */
@media (hover: hover) {
  .faq-question:hover {
    color: var(--primary);
  }
}

/* Mobile Refinement */
@media (max-width: 768px) {
  .faq-question {
    font-size: 0.95rem;
    padding: 0.9rem 1.2rem;
  }

  .faq-answer {
    padding: 0 1.2rem;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 0.9rem;
  }
}


/* ========================== TECH STACK PREMIUM ========================== */
.tech-stack-premium {
  position: relative;
  overflow: hidden;
}

.tech-stack-premium::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 0;
  width: 6px;
  height: 84%;
  border-radius: 999px;
  background: linear-gradient(180deg,
      var(--primary),
      var(--secondary),
      transparent 90%);
  box-shadow:
    0 0 18px rgba(99, 102, 241, 0.55),
    0 0 42px rgba(14, 165, 233, 0.35);
  opacity: 0.9;
}

.tech-stack-premium::before {
  content: "";
  position: absolute;
  top: 5%;
  right: -60px;
  width: 140px;
  height: 90%;
  background: radial-gradient(ellipse at right,
      rgba(99, 102, 241, 0.18),
      transparent 70%);
  pointer-events: none;
}

.tech-stack-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .tech-stack-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.tech-stack-content {
  position: relative;
  z-index: 2;
}

.tech-stack-highlights {
  margin: 1.8rem 0 2.2rem;
  padding: 1rem;
  display: grid;
  list-style-type: disc;
  gap: 0.8rem;
}

.tech-stack-highlights li {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.tech-stack-rail {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  position: relative;
}

.tech-stack-rail::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
      rgba(99, 102, 241, 0.35),
      rgba(99, 102, 241, 0.05));
}


/* ========================== Services ========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.stack-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.2rem;
  padding: 1rem 1.6rem;
  border-radius: 20px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.9),
      rgba(248, 250, 252, 0.85));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transition: all 0.35s ease;
}


.stack-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow:
    0 22px 64px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(99, 102, 241, 0.25);
}

.glow-edge::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), transparent 70%);
  border-radius: 20px 0 0 20px;
}

.stack-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background:
    radial-gradient(circle at top left,
      rgba(99, 102, 241, 0.35),
      transparent 70%),
    var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow:
    inset 0 0 0 1px rgba(99, 102, 241, 0.25),
    0 10px 26px rgba(99, 102, 241, 0.25);
}

.stack-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.stack-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .stack-card {
    grid-template-columns: 44px 1fr;
    padding: 1.2rem 1.3rem;
  }

  .stack-icon {
    width: 44px;
    height: 44px;
  }
}