/* ===================================
   MIA Explore -Landing Page
   =================================== */

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130%; /* taller than container to allow parallax travel */
  object-fit: cover;
  z-index: 0;
  will-change: transform;
  animation: heroParallax linear both;
  animation-timeline: scroll();
  animation-range: 0vh 100vh;
}

@keyframes heroParallax {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-15%);
  }
}

/* Fallback for browsers that don't support scroll-driven animations */
@supports not (animation-timeline: scroll()) {
  .hero-video {
    height: 100%;
    animation: none;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.7) 70%, rgba(10, 10, 10, 0.95) 100%);
  z-index: 1;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 4rem 6rem;
  animation: heroFadeIn 1.2s ease-out;
}

.hero-text {
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title-line {
  display: block;
  font-size: 4.5rem;
  color: var(--color-white);
  margin-bottom: 0.1em;
  animation: slideInLeft 0.8s ease-out;
}

.hero-title-highlight {
  display: block;
  font-size: 8rem;
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-gray-light);
  max-width: 600px;
  margin: 2rem 0 3rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-secondary-slim,
.btn-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-cyan);
  color: var(--color-black);
  border: 2px solid var(--color-cyan);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-cyan-bright);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(6, 214, 214, 0.4);
}

.btn-primary:hover::before {
  left: 0;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-cyan);
  transform: translateY(-2px);
  box-shadow: 4px 8px 8px rgba(6, 214, 214, 0.1);
}

.btn-secondary-slim {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  align-self: flex-start;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary-slim:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-cyan);
  transform: translateY(-2px);
  box-shadow: 4px 8px 8px rgba(6, 214, 214, 0.1);
}

.btn-cta {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-amber) 100%);
  color: var(--color-black);
  border: none;
  font-size: 1.3rem;
  padding: 1.2rem 3rem;
  font-weight: 700;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(6, 214, 214, 0.5);
}

/* ===================================
   MISSION SECTION
   =================================== */

.mission {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-amber) 0%, var(--color-amber-cooked) 100%);
  padding: 8rem 2rem;
}

.mission-content {
  max-width: 1000px;
  padding: 0 2rem;
}

.mission-text {
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 3rem;
}

.mission-text-white {
  color: var(--color-white);
}

.mission-text-dark {
  color: var(--color-black);
}

/* ===================================
   PRODUCTS SECTION
   =================================== */

.products {
  background: var(--color-midnight-blue);
  padding: 6rem 4rem;
}

.products-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.products-header {
  margin-bottom: 4rem;
}

.products-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 0.75rem;
}

.products-title {
  font-family: var(--font-display);
  font-size: 6.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.products-subtitle {
  font-size: 1.15rem;
  color: var(--color-gray-light);
  line-height: 1.6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.product-image .title-left {
  position: absolute;
  top: 0.5rem;
  left: 2rem;
  color: #41b3a7;
  font-weight: 600;
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.product-image .title-right {
  position: absolute;
  top: 0.5rem;
  right: 2rem;
  color: #4cbfb3;
  font-weight: 700;
  font-size: 4rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.5rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
}

.product-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray);
  max-width: 480px;
  padding-bottom: 2rem;
}

.btn-bracket {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-white);
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  transition: var(--transition-smooth);
  margin-top: 0.5rem;
  align-self: flex-start;
}

.btn-bracket:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  background: rgba(6, 214, 214, 0.08);
}

/* ===================================
   SOLUTIONS SECTION
   =================================== */

.solutions {
  background: linear-gradient(135deg, #114954 0%, #091e22 100%);
  padding: 6rem 2rem;
}

.solutions-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.solutions-header {
  grid-column: span 8;
  text-align: left;
  margin-bottom: 1rem;
}

.solutions-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 0.75rem;
}

.solutions-title {
  font-family: var(--font-display);
  font-size: 6.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.solutions-subtitle {
  font-size: 1.15rem;
  color: var(--color-gray-light);
  line-height: 1.6;
}

/* Solution Cards */
.solution-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.solution-card:hover {
  transform: translateY(-8px);
}

.solution-card:hover .card-overlay {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.6) 60%, rgba(10, 10, 10, 0.95) 100%);
}

/* Card Layouts */
.card-large {
  grid-column: span 12;
  min-height: 600px;
}

.card-medium {
  grid-column: span 6;
}

.card-product {
  grid-column: span 6;
  min-height: 550px;
}

.card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}

.solution-card:hover .card-background {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.7) 60%, rgba(10, 10, 10, 0.98) 100%);
  transition: var(--transition-smooth);
}

.card-overlay-adventure {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: var(--transition-smooth);
}

/* Card Overlay Variants */
.card-overlay-museum {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(26, 10, 26, 0.7) 60%, rgba(10, 10, 10, 0.98) 100%);
}

.card-overlay-urban {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 20, 30, 0.7) 60%, rgba(10, 10, 10, 0.98) 100%);
}

.card-overlay-cube {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(6, 30, 30, 0.7) 60%, rgba(10, 10, 10, 0.98) 100%);
}

.card-overlay-app {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(30, 15, 10, 0.7) 60%, rgba(10, 10, 10, 0.98) 100%);
}

.card-content {
  position: relative;
  z-index: 10;
  padding: 2rem;
  background: #08080868;
  margin: 2rem;
  border-radius: 2rem;
}

.card-content-darker {
  position: relative;
  z-index: 10;
  padding: 2rem;
  background: #080808a8;
  margin: 2rem;
  border-radius: 2rem;
}

.card-content-right {
  position: relative;
  z-index: 10;
  padding: 2rem;
  background: #08080868;
  margin: 2rem;
  border-radius: 2rem;
  margin-left: auto; /* pushes this flex item to the right */
  max-width: 700px; /* optional: prevents it from spanning too wide on large cards */
}

.card-category {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  background: rgba(6, 214, 214, 0.15);
  border: 1px solid rgba(6, 214, 214, 0.3);
  border-radius: 20px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 1rem 0 1.5rem;
  max-width: 700px;
}

.card-medium .card-title,
.card-product .card-title {
  font-size: 2.8rem;
}

.card-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-gray-light);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1200px) {
  .card-large {
    grid-column: span 12;
  }

  .card-medium,
  .card-product {
    grid-column: span 12;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 65vh;
  }
  .hero-content {
    padding: 0 2rem 2rem;
  }

  .hero-title-line {
    font-size: 2.5rem;
  }

  .hero-title-highlight {
    font-size: 4.5rem;
  }

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

  .mission {
    padding: 4rem 0;
  }

  .mission-text {
    font-size: 2rem;
  }

  .products {
    padding: 4rem 1rem;
  }
  .products-title {
    font-size: 2.5rem;
  }

  .solutions {
    padding: 4rem 1rem;
  }

  .solutions-title {
    font-size: 2.5rem;
  }

  .solutions-header {
    grid-column: span 10;
  }

  .solutions-inner {
    gap: 1.5rem;
  }

  .solution-card {
    min-height: 400px;
  }

  .product-image img {
    height: 260px;
  }

  .product-image .title-right {
    color: #f8f8f8;
  }

  .card-title {
    font-size: 2.5rem;
  }

  .card-medium .card-title,
  .card-product .card-title {
    font-size: 2.2rem;
  }

  .card-large {
    min-height: 450px;
  }

  .card-content,
  .card-content-darker,
  .card-content-right {
    margin: 1rem;
    padding: 1.5rem;
  }

  .card-description {
    font-size: 1rem;
  }
}
