/* ========================================
   PRISMA Consulting — Style Sheet
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f2a;
  --bg-card: #141432;
  --bg-card-hover: #1a1a40;

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a82;

  --accent-coral: #e8735a;
  --accent-amber: #e8a44a;
  --accent-teal: #4a8fa8;
  --accent-gradient: linear-gradient(135deg, var(--accent-coral), var(--accent-amber), var(--accent-teal));

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(232, 164, 74, 0.25);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-height: 84px;
  --container-max: 1200px;
  --radius: 12px;
  --radius-sm: 8px;

  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* --- Typography --- */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
}

.section-subtitle.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(232, 115, 90, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 115, 90, 0.4);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  text-align: center;
}

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

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.logo-sub {
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 28px;
  border-radius: 50px;
  background: var(--accent-gradient);
  color: var(--bg-primary) !important;
  font-weight: 600;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  opacity: 0.9;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 26, 0.4) 0%,
    rgba(10, 10, 26, 0.55) 70%,
    rgba(10, 10, 26, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ========================================
   VALUE PROPOSITION
   ======================================== */
.value-prop {
  background: var(--bg-secondary);
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.value-text h2 {
  margin-bottom: 24px;
}

.value-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.counter-card {
  display: flex;
  justify-content: center;
}

.ticker {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-label-left {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.ticker-digits {
  display: flex;
  gap: 6px;
}

.ticker-digit {
  width: 56px;
  height: 72px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Scoreboard center line */
.ticker-digit::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* Flip animation */
.ticker-digit.flip {
  animation: digitFlip 0.3s ease-in-out;
}

@keyframes digitFlip {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(0.6); opacity: 0.7; }
  100% { transform: scaleY(1); opacity: 1; }
}

.ticker-comma {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-muted);
  align-self: flex-end;
  padding-bottom: 4px;
}

/* ========================================
   SERVICES (Accordion)
   ======================================== */
.services {
  text-align: center;
}

.accordion {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.accordion-item.active {
  border-color: var(--border-glow);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-main);
  text-align: left;
  gap: 16px;
  transition: background var(--transition);
}

.accordion-trigger:hover {
  background: var(--bg-card-hover);
}

.accordion-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.accordion-title-group {
  flex: 1;
  min-width: 0;
}

.accordion-title-group h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.accordion-title-group .service-tagline {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.accordion-chevron::before,
.accordion-chevron::after {
  content: '';
  position: absolute;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform 0.3s ease;
}

.accordion-chevron::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-chevron::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-item.active .accordion-chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px 0 24px;
}

.accordion-item.active .accordion-body {
  max-height: 300px;
  padding: 0 24px 24px 24px;
}

.service-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--accent-amber);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-bullets {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-bullets li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.service-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
}

.service-outcome {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-style: italic;
}

/* ========================================
   PORTFOLIO
   ======================================== */
.portfolio {
  background: var(--bg-secondary);
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.portfolio-card {
  display: block;
  width: 50%;
  align-self: center;
  background: transparent;
  border: none;
  padding: 0;
}

.portfolio-card-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all var(--transition);
}

.portfolio-card-media:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.portfolio-caption {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 14px 0 0;
}

.portfolio-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   APP SHOWCASE
   ======================================== */
.app-showcase {
  background: var(--bg-secondary);
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.app-text h2 {
  margin-bottom: 24px;
}

.app-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.app-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-features li {
  font-size: 1rem;
  color: var(--text-secondary);
  padding-left: 28px;
  position: relative;
}

.app-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
}

.app-collage {
  position: relative;
  min-height: 480px;
}

.app-img {
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  object-fit: cover;
  position: absolute;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.app-img-main {
  width: 88%;
  top: 0;
  left: 0;
  z-index: 1;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
}

.app-img-secondary {
  width: 60%;
  bottom: 40px;
  right: 0;
  z-index: 3;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.app-img-tertiary {
  width: 52%;
  bottom: -10px;
  left: 10%;
  z-index: 2;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.app-collage:hover .app-img-secondary {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.app-collage:hover .app-img-tertiary {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: left;
  position: relative;
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-glow);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: var(--radius) var(--radius) 0 0;
}

.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.testimonial-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
  text-align: center;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 48px auto 0;
}

.step {
  flex: 1;
  max-width: 260px;
  padding: 0 20px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--bg-primary);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--accent-gradient);
  flex-shrink: 0;
  margin-top: 28px;
  opacity: 0.5;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  background: var(--bg-secondary);
  text-align: center;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-amber);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.form-success {
  display: none;
  padding: 16px;
  background: rgba(74, 168, 100, 0.15);
  border: 1px solid rgba(74, 168, 100, 0.3);
  border-radius: var(--radius-sm);
  color: #5ec878;
  text-align: center;
  font-weight: 500;
}

.form-success.visible {
  display: block;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.contact-detail {
  text-align: center;
}

.contact-detail h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-detail p {
  color: var(--text-secondary);
}

.contact-prism {
  width: 140px;
  opacity: 0.7;
  filter: drop-shadow(0 0 30px rgba(232, 164, 74, 0.15));
  transition: opacity var(--transition);
}

.contact-prism:hover {
  opacity: 1;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.logo-img-sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================
   FADE-IN ANIMATIONS
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  /* Mobile nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 24px;
    transition: right var(--transition);
    border-left: 1px solid var(--border-subtle);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .hamburger {
    display: block;
  }

  /* Value grid */
  .value-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  /* Accordion mobile */
  .accordion {
    grid-template-columns: 1fr;
  }

  .accordion-trigger {
    padding: 16px;
  }

  /* How It Works mobile */
  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    margin: 0;
  }

  /* App showcase */
  .app-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-collage {
    order: -1;
    min-height: 360px;
  }

  .app-img-main {
    width: 92%;
  }

  .app-img-secondary {
    width: 58%;
    right: -4px;
    bottom: 30px;
  }

  .app-img-tertiary {
    width: 50%;
    left: 5%;
    bottom: 0;
  }

  /* Portfolio grid */
  .portfolio-grid {
    gap: 32px;
  }

  .portfolio-card {
    width: 100%;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .service-card {
    padding: 24px 20px;
  }

  .container {
    padding: 0 16px;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .accordion {
    grid-template-columns: repeat(2, 1fr);
  }
}
