/* EASY-GSM Landing - Custom styles */

:root {
  --bg-dark: #0f172a;
  --accent: #6366f1;
  --accent-light: #818cf8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Scroll reveal: hidden by default, show when in view */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance: slight delay for hero content */
#hero .reveal {
  transition-delay: 0.1s;
}

/* Feature cards: hover lift and glow */
.feature-card:hover {
  transform: translateY(-4px);
}

/* Header: transparent by default, solid when scrolled */
#header.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.06);
}

/* Link focus for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Carousel: only one slide visible; widths set in JS (pixels) */
#carousel-wrapper {
  width: 100%;
  overflow: hidden;
}
#carousel-track {
  display: flex;
  will-change: transform;
}
.carousel-slide {
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  min-height: 420px;
}
.carousel-app-frame {
  display: flex;
  height: 100%;
  min-height: 380px;
  border-radius: 1rem;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(71, 85, 105, 0.5);
  overflow: hidden;
}
.carousel-sidebar {
  width: 11rem;
  flex-shrink: 0;
  background: rgba(30, 41, 59, 0.95);
  border-right: 1px solid rgba(71, 85, 105, 0.5);
  display: flex;
  flex-direction: column;
}
.carousel-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.carousel-navbar {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(71, 85, 105, 0.5);
}
.carousel-content {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

/* Carousel: real high-res screenshots — fit inside slide without distortion */
.carousel-screenshot-wrap {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 1rem;
  background: #0f172a;
  border: 1px solid rgba(71, 85, 105, 0.5);
}
.carousel-screenshot-img {
  width: 100%;
  height: auto;
  max-height: min(75vh, 720px);
  object-fit: contain;
  object-position: top center;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  display: block;
}

/* Carousel controls: fixed position below carousel so they don't move when changing slides */
.carousel-controls-bar {
  width: 100%;
}
.carousel-controls-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
}
.carousel-label {
  justify-self: start;
  min-width: 0;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(148 163 184);
}
.carousel-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  justify-self: end;
}
@media (max-width: 640px) {
  .carousel-controls-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .carousel-label { justify-self: center; text-align: center; }
  .carousel-dots { justify-self: center; }
}

/* Smooth scroll offset for fixed header */
section[id] {
  scroll-margin-top: 5rem;
}

@media (min-width: 768px) {
  section[id] {
    scroll-margin-top: 6rem;
  }
}
