/**
 * Volve company presentation — slide deck styles
 */

@import '../shared/css/tokens.css';
@import '../shared/css/particles.css';
@import '../shared/css/slide-components.css';

html,
body {
  height: 100%;
  overflow: hidden;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.deck {
  position: relative;
  width: 100%;
  height: 100vh;
  background: transparent;
  z-index: 1;
}

.deck__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 32px clamp(20px, 2.5vw, 40px) 88px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  text-align: center;
  z-index: 1;
}

.slide--active {
  opacity: 1;
  visibility: visible;
}

.slide--left {
  text-align: left;
  align-items: flex-start;
}

.slide__inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 0;
}

.slide__inner--wide {
  max-width: 100%;
}

.slide__inner--wide .slide__title {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.slide__overline {
  display: block;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.slide__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.slide__title--large {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.slide__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: min(900px, 100%);
  margin: 0 auto 32px;
}

.slide--left .slide__subtitle {
  margin-left: 0;
}

.slide__body {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: min(720px, 100%);
  margin: 0 auto;
}

.slide--left .slide__body {
  margin-left: 0;
}

.slide__logo {
  height: 40px;
  width: auto;
  margin: 0 auto 32px;
}

.slide__cta {
  margin-top: 32px;
}

.slide__email {
  display: block;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1rem;
}

.slide__email:hover {
  color: var(--primary);
}

.slide__link {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary-light);
  font-size: 1rem;
}

.slide__link:hover {
  color: var(--primary);
}

/* Title slide stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 40px auto 0;
}

.hero-stat {
  padding: 8px 12px;
}

.hero-stat__value {
  display: block;
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat__label {
  display: block;
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Who we are split layout */
.about-split {
  display: grid;
  gap: 32px;
  align-items: center;
  text-align: left;
}

@media (min-width: 768px) {
  .about-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.about-visual {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual__pulse {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 87, 51, 0.2) 0%, rgba(255, 87, 51, 0.05) 100%);
  animation: pulse 4s ease-in-out infinite;
}

.about-visual__ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid rgba(255, 87, 51, 0.3);
  animation: rotate 20s linear infinite;
}

.about-visual__core {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(255, 87, 51, 0.4);
  color: #fff;
}

.about-visual__core svg {
  width: 44px;
  height: 44px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* VTEX slide — centered vertical layout */
.vtex-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  text-align: center;
}

.vtex-layout__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vtex-layout__header .slide__title {
  margin-bottom: 0;
}

.vtex-layout__logo img {
  height: 80px;
  width: auto;
  display: block;
}

.vtex-layout__copy {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 900px;
  margin: 0;
}

.vtex-layout__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.vtex-layout__chips .chip {
  font-size: 0.875rem;
  padding: 8px 16px;
}

.vtex-layout__chips .chip--primary {
  background: rgba(255, 87, 51, 0.18);
  border: 1px solid rgba(255, 87, 51, 0.4);
}

.vtex-layout__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 900px;
}

.vtex-stat {
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-paper);
  border: 1px solid var(--border-subtle);
}

.vtex-stat__value {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.vtex-stat__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Slide 6 — depth layout */
.vtex-depth {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
}

.vtex-depth__header .slide__title {
  margin-bottom: 0;
}

.vtex-depth__body {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 900px;
  margin: 0 auto;
}

.vtex-depth__footer {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 900px;
  margin: 0 auto;
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.capability-row .chip {
  font-size: 0.875rem;
  padding: 8px 14px;
}

/* Services grid */
.services-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  text-align: left;
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 20px;
  background: var(--bg-paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  height: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: rgba(255, 87, 51, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: rgba(255, 87, 51, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.service-card .chips {
  gap: 6px;
}

.service-card .chip {
  font-size: 0.8rem;
}

/* Why Volve */
.why-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  text-align: left;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pull-quote {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 32px;
  border-left: 4px solid var(--primary);
  background: rgba(42, 42, 42, 0.6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  text-align: left;
}

.pull-quote p {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 8px;
}

.pull-quote cite {
  font-size: 0.875rem;
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

/* Customer logos */
.customer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .customer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.customer-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 16px;
  background: var(--bg-paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.customer-tile--vtex img {
  height: 106px;
  max-height: none!important;
  width: auto;
  min-width: 120px;
}

.customer-tile:hover {
  border-color: var(--primary);
  background: rgba(255, 87, 51, 0.05);
  transform: scale(1.02);
}

.customer-tile img {
  max-height: 48px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.85);
  opacity: 0.75;
  transition: filter var(--transition), opacity var(--transition);
}

.customer-tile:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Chrome */
.deck__chrome {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(42, 42, 42, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-subtle);
}

.deck__logo img {
  height: 24px;
  width: auto;
}

.deck__counter {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.deck__dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 50%;
}

.deck__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(217, 217, 217, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.deck__dot:hover {
  background: rgba(255, 87, 51, 0.5);
}

.deck__dot--active {
  background: var(--primary);
  transform: scale(1.2);
}

.deck__nav {
  display: flex;
  gap: 8px;
}

.deck__nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.deck__nav-btn:hover {
  border-color: var(--primary);
  background: rgba(255, 87, 51, 0.08);
}

.deck__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.notes-panel {
  position: fixed;
  bottom: 72px;
  left: 24px;
  right: 24px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.notes-panel--visible {
  opacity: 1;
  visibility: visible;
}

.notes-panel__label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 8px;
}

.deck__hint {
  position: fixed;
  top: 16px;
  right: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
  z-index: 100;
}

.slide .front-grid,
.slide .icon-tiles,
.slide .trust-row {
  width: 100%;
  max-width: 100%;
}

/* Slide 4 — Four Pillars */
.slide--pillars .slide__title {
  margin-bottom: 12px;
}

.slide--pillars .icon-tiles {
  width: 100%;
  gap: 24px;
  margin-top: 32px;
}

.slide--pillars .icon-tile {
  padding: 28px 20px;
  min-height: min(180px, 22vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.slide--pillars .icon-tile__icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
}

.slide--pillars .icon-tile__icon svg {
  width: 36px;
  height: 36px;
}

.slide--pillars .icon-tile__title {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: 8px;
}

.slide--pillars .icon-tile__text {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.5;
}

/* Slide 8 — Why Volve */
.slide--why .trust-card {
  padding: 24px;
}

.slide--why .trust-card__title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.slide--why .trust-card__text {
  font-size: 1rem;
  line-height: 1.55;
}

.slide--why .pull-quote p {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.slide--why .pull-quote cite {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .slide {
    padding: 24px 16px 120px;
  }

  .deck__dots {
    display: none;
  }

  .deck__hint {
    display: none;
  }

  .hero-stats,
  .vtex-layout__stats {
    grid-template-columns: 1fr;
  }

  .about-visual {
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-visual__pulse,
  .about-visual__ring {
    animation: none;
  }
}
