/* QUANDIA — Components */

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(3,7,18,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar-logo img {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.navbar-logo:hover img { opacity: 0.85; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-nav a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #CBD5E1;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
}
.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(135deg,#6C63FF,#00D4FF);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.navbar-nav a:hover { color: #F1F5F9; }
.navbar-nav a:hover::after { left: 14px; right: 14px; }
.navbar-nav a.active { color: #F1F5F9; }
.navbar-nav a.active::after { left: 14px; right: 14px; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
}
.lang-btn {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.lang-btn.active {
  background: linear-gradient(135deg,#6C63FF,#A855F7);
  color: white;
  border-radius: 16px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #CBD5E1;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  background: rgba(3,7,18,0.97);
  backdrop-filter: blur(24px);
  z-index: 999;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #CBD5E1;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.2s;
}
.mobile-menu a:hover {
  background: rgba(108,99,255,0.1);
  color: #F1F5F9;
  border-color: rgba(108,99,255,0.2);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.15;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,rgba(3,7,18,0.95) 50%,rgba(8,15,26,0.8));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #A855F7;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.hero-badge span { width: 6px; height: 6px; background: #A855F7; border-radius: 50%; animation: neural-pulse 2s ease-in-out infinite; }
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #94A3B8;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #64748B;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll::before {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, #6C63FF);
}

/* ─── Value Prop cards ─── */
.value-card {
  padding: 40px 32px;
  text-align: center;
}
.value-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.value-card p { color: #94A3B8; font-size: 0.95rem; line-height: 1.7; }

/* ─── Solution cards ─── */
.solution-card {
  padding: 36px;
  cursor: pointer;
}
.solution-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.solution-card p { color: #94A3B8; font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.solution-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6C63FF;
  transition: gap 0.2s;
}
.solution-card:hover .arrow { gap: 12px; }

/* ─── Testimonial slider ─── */
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.testimonial-item {
  min-width: 100%;
  padding: 48px;
}
.testimonial-quote {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #CBD5E1;
  margin-bottom: 32px;
  font-style: italic;
  position: relative;
}
.testimonial-quote::before {
  content: '"';
  font-size: 5rem;
  line-height: 0;
  position: absolute;
  top: 24px; left: -10px;
  color: rgba(108,99,255,0.2);
  font-family: Georgia, serif;
}
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg,#6C63FF,#A855F7);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; color: white;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: #64748B; margin-top: 2px; }
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #CBD5E1;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.slider-btn:hover { background: rgba(108,99,255,0.15); border-color: rgba(108,99,255,0.3); }
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #334155;
  cursor: pointer;
  transition: all 0.3s;
}
.slider-dot.active { background: #6C63FF; width: 24px; border-radius: 4px; }

/* ─── Team cards ─── */
.team-card {
  perspective: 1000px;
  height: 420px;
}
.team-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.team-card:hover .team-card-inner { transform: rotateY(180deg); }
.team-card-front, .team-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
}
.team-card-front {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}
.team-card-front img { width: 100%; height: 65%; object-fit: cover; }
.team-card-front-info { padding: 20px 24px; }
.team-card-back {
  background: linear-gradient(135deg,rgba(108,99,255,0.15),rgba(168,85,247,0.1));
  border: 1px solid rgba(108,99,255,0.2);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

/* ─── Timeline ─── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,#6C63FF,#A855F7,transparent);
}
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg,#6C63FF,#A855F7);
  box-shadow: 0 0 16px rgba(108,99,255,0.5);
}
.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #6C63FF;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.timeline-text { color: #94A3B8; font-size: 0.9rem; line-height: 1.7; }

/* ─── Tabs ─── */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  padding: 10px 24px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748B;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.25s;
}
.tab-btn.active, .tab-btn:hover {
  background: linear-gradient(135deg,#6C63FF,#A855F7);
  color: white;
  border-color: transparent;
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.4s ease; }

/* ─── Contact Form ─── */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94A3B8;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #F1F5F9;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(108,99,255,0.5);
  background: rgba(108,99,255,0.05);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #334155; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-status {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  margin-top: 16px;
}
.form-status.success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: #34D399; display: block; }
.form-status.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #F87171; display: block; }

/* ─── Footer ─── */
footer {
  background: rgba(3,7,18,0.9);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  margin-bottom: 0;
}
.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}
.footer-desc { color: #64748B; font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: #64748B;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #A855F7; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { color: #334155; font-size: 0.82rem; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #64748B;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.social-link:hover {
  background: rgba(108,99,255,0.15);
  border-color: rgba(108,99,255,0.3);
  color: #A855F7;
  transform: translateY(-2px);
}

/* ─── Page hero (inner pages) ─── */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.page-hero p {
  color: #94A3B8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Scroll to top ─── */
#scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg,#6C63FF,#A855F7);
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s ease;
  z-index: 100;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(108,99,255,0.4);
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { transform: translateY(-3px); }

/* ─── Blog card ─── */
.blog-card { overflow: hidden; }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6C63FF;
  margin-bottom: 10px;
}
.blog-title { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.blog-meta { display: flex; gap: 16px; color: #475569; font-size: 0.78rem; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 2.4rem; }
  .team-card { height: 360px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .testimonial-item { padding: 32px 24px; }
}
