/* ============================================
   TRIVEXA — Section Styles
   ============================================ */

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-fixed);
  padding: var(--space-5) 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav--scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,175,55,0.08);
  padding: var(--space-4) 0;
}

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto; padding: 0 var(--space-6);
}

.nav__logo {
  font-size: 1.4rem; font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  color: var(--text-primary);
}

.nav__logo span { color: var(--gold); }

.nav__links {
  display: flex; align-items: center; gap: var(--space-10);
}

.nav__link {
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  color: var(--text-secondary); position: relative;
  transition: color var(--duration-fast) var(--ease-out);
  letter-spacing: var(--tracking-wide);
}

.nav__link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover { color: var(--gold); }
.nav__link:hover::after { width: 100%; }
.nav__link--active { color: var(--gold); }
.nav__link--active::after { width: 100%; }

.nav__cta { margin-left: var(--space-4); }

.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}

.nav__hamburger span {
  width: 24px; height: 1.5px; background: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(5,8,22,0.98);
  backdrop-filter: blur(30px);
  z-index: 29;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-10);
  opacity: 0; pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-menu--open { opacity: 1; pointer-events: all; }

.mobile-menu__link {
  font-size: var(--text-2xl); font-weight: var(--weight-semibold);
  color: var(--text-primary); letter-spacing: var(--tracking-tight);
  transition: color var(--duration-fast) var(--ease-out);
}

.mobile-menu__link:hover { color: var(--gold); }

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 100px;
}

.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}

.hero__particles {
  position: absolute; inset: 0; z-index: 1;
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 40% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 40% 50%, black 20%, transparent 70%);
  z-index: 0;
}

.hero__glow {
  position: absolute; width: 600px; height: 600px;
  border-radius: 50%; filter: blur(120px);
  pointer-events: none;
}

.hero__glow--1 {
  top: 10%; left: 15%;
  background: rgba(59,130,246,0.07);
}

.hero__glow--2 {
  bottom: 10%; right: 20%;
  background: rgba(212,175,55,0.05);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
  position: relative; z-index: 2;
}

.hero__content { max-width: 620px; }

.hero__label {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: 8px 20px; border-radius: var(--radius-full);
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.15);
  font-size: var(--text-xs); font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--space-8);
}

.hero__label .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tighter);
  line-height: 1.05;
  margin-bottom: var(--space-8);
}

.hero__title .highlight {
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: var(--text-lg); color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10); max-width: 520px;
}

.hero__actions { display: flex; gap: var(--space-5); flex-wrap: wrap; }

/* ── Hero Visual (Right Side) ── */
.hero__visual {
  position: relative; perspective: 1000px;
}

.hero__dashboard {
  position: relative; transform: rotateY(-5deg) rotateX(2deg);
  transition: transform var(--duration-slow) var(--ease-out);
}

.hero__dashboard:hover {
  transform: rotateY(0) rotateX(0);
}

.hero__dashboard-main {
  background: rgba(11,16,32,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.dashboard-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dashboard-header__title {
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.dashboard-header__badge {
  padding: 4px 12px; border-radius: var(--radius-full);
  background: rgba(40,200,64,0.1);
  border: 1px solid rgba(40,200,64,0.2);
  font-size: 0.65rem; color: #28C840;
  font-weight: var(--weight-medium);
}

.dashboard-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4); margin-bottom: var(--space-6);
}

.metric-card {
  padding: var(--space-5); border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.metric-card__label {
  font-size: 0.65rem; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-2);
}

.metric-card__value {
  font-size: var(--text-xl); font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.metric-card__change {
  font-size: 0.65rem; color: #28C840;
  margin-top: var(--space-1);
}

.dashboard-chart {
  height: 120px;
  background: linear-gradient(180deg, rgba(212,175,55,0.08) 0%, transparent 100%);
  border-radius: var(--radius-md);
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}

.dashboard-chart__line {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80%;
}

/* Floating Cards */
.hero__float-card {
  position: absolute;
  background: rgba(11,16,32,0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 3;
}

.hero__float-card--1 {
  top: -20px; right: -30px;
  animation: float 6s ease-in-out infinite;
}

.hero__float-card--2 {
  bottom: 30px; left: -40px;
  animation: float 8s ease-in-out infinite 1s;
}

.float-card__icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(212,175,55,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}

.float-card__icon svg {
  width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.5;
}

.float-card__title {
  font-size: 0.7rem; font-weight: var(--weight-semibold);
  color: var(--text-primary); margin-bottom: 2px;
}

.float-card__value {
  font-size: var(--text-lg); font-weight: var(--weight-bold);
  color: var(--gold);
}

.float-card__sub {
  font-size: 0.6rem; color: var(--text-tertiary);
}

/* ── Trust Section ── */
.trust {
  padding: var(--space-16) 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}

.trust__label {
  text-align: center; margin-bottom: var(--space-12);
  font-size: var(--text-xs); font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--text-tertiary);
}

.trust__track {
  display: flex; gap: var(--space-16);
  animation: ticker 25s linear infinite;
  width: max-content;
}

.trust__logo {
  font-size: var(--text-2xl); font-weight: var(--weight-bold);
  color: rgba(255,255,255,0.2);
  white-space: nowrap; letter-spacing: var(--tracking-wider);
  transition: color var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
  text-transform: uppercase;
}

.trust__logo:hover { color: rgba(212,175,55,0.5); }

/* ── Services Grid ── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ── Projects Grid ── */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

/* ── Why Choose Us ── */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.why__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
  padding: var(--space-12);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-xl);
}

/* ── Tech Stack ── */

/* ── Process Timeline ── */
.process__track {
  display: flex; gap: 0; justify-content: center;
  position: relative; padding: var(--space-12) 0 var(--space-10);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.process__track::-webkit-scrollbar { display: none; }

.process__line {
  position: absolute; top: calc(var(--space-12) + 25px);
  left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-border) 15%, var(--gold-border) 85%, transparent 100%);
  z-index: 1;
}

/* ── Testimonials ── */
.testimonials__track-wrapper {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.testimonials__track {
  display: flex; gap: var(--space-8);
  animation: ticker 60s linear infinite;
  width: max-content;
}

.testimonials__track:hover {
  animation-play-state: paused;
}

/* ── Stats Section ── */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  position: relative;
}

.cta-section__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--space-6);
  max-width: 700px; margin-left: auto; margin-right: auto;
}

.cta-section__desc {
  font-size: var(--text-lg); color: var(--text-secondary);
  margin-bottom: var(--space-10);
  max-width: 550px; margin-left: auto; margin-right: auto;
}

.cta-section__glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Footer ── */
.footer {
  padding: var(--space-20) 0 var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer__brand-desc {
  font-size: var(--text-sm); color: var(--text-tertiary);
  margin-top: var(--space-5); max-width: 300px;
  line-height: var(--leading-relaxed);
}

.footer__heading {
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--text-primary); margin-bottom: var(--space-6);
}

.footer__links {
  display: flex; flex-direction: column; gap: var(--space-4);
}

.footer__link {
  font-size: var(--text-sm); color: var(--text-tertiary);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover { color: var(--gold); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer__copy {
  font-size: var(--text-xs); color: var(--text-tertiary);
}

.footer__parent {
  font-size: var(--text-xs); color: var(--text-tertiary);
  letter-spacing: var(--tracking-wider);
}

.footer__socials {
  display: flex; gap: var(--space-5);
}

.footer__social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.footer__social:hover {
  border-color: var(--gold-border);
  background: rgba(212,175,55,0.08);
}

.footer__social svg {
  width: 16px; height: 16px; fill: var(--text-tertiary);
  transition: fill var(--duration-fast) var(--ease-out);
}

.footer__social:hover svg { fill: var(--gold); }

/* ── Page Headers (for inner pages) ── */
.page-header {
  padding: clamp(8rem, 12vw, 12rem) 0 var(--space-16);
  text-align: center;
  position: relative; overflow: hidden;
  background: var(--bg-secondary);
}

.page-header__title {
  font-size: var(--text-4xl); font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--space-5);
}

.page-header__desc {
  font-size: var(--text-lg); color: var(--text-secondary);
  max-width: 600px; margin: 0 auto;
}

/* ── Contact Form ── */
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6);
  max-width: 800px; margin: 0 auto;
}

.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-group--full { grid-column: 1 / -1; }

.form-label {
  font-size: var(--text-xs); font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest); text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  padding: var(--space-4) var(--space-5);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all var(--duration-fast) var(--ease-out);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold-border-hover);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 20px rgba(212,175,55,0.08);
}

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