/* =============================================================================
   Snow Rover 2 Page Styles
   SpaceX-inspired modern design with full-viewport sections
============================================================================= */

/* Page-specific body styles */
.sr2-page {
  background: #000;
  overflow-x: hidden;
}

/* =============================================================================
   Hero Section - Full Viewport Video Background
============================================================================= */
.sr2-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

/* Remove the global ::after line from the hero section */
.sr2-hero::after {
  display: none !important;
}

.sr2-hero__video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.sr2-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% center;
}

.sr2-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.sr2-hero__content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 900px;
  padding: 0 40px;
  margin-top: 60px;
  margin-left: 80px;
}

.sr2-hero__label {
  display: inline-block;
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
}

.sr2-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: 8px;
  color: #fff;
  margin: 0 0 20px 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
  text-align: left !important;
}

.sr2-hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 25px 0;
  letter-spacing: 2px;
}

.sr2-hero__description {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 40px 0;
  max-width: 600px;
}

.sr2-hero__cta {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 16px 40px;
  border: 2px solid #fff;
  border-radius: 0;
  transition: all 0.3s ease;
  background: transparent;
}

.sr2-hero__cta:hover {
  background: #fff;
  color: #000;
}

/* Scroll Indicator */
.sr2-hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 1s ease-out 1s both;
}

.sr2-hero__scroll-indicator span {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.sr2-hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { 
    opacity: 0.6; 
    transform: scaleY(1);
  }
  50% { 
    opacity: 1; 
    transform: scaleY(1.2);
  }
}

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

/* =============================================================================
   Feature Sections - Alternating Layout with Images
============================================================================= */
.sr2-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.sr2-section--reversed {
  direction: rtl;
}

.sr2-section--reversed > * {
  direction: ltr;
}

.sr2-section--dark {
  background: #0a0a0a;
}

.sr2-section--light {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

.sr2-section__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px;
  background: linear-gradient(135deg, rgba(70, 80, 95, 0.4) 0%, rgba(50, 60, 75, 0.4) 100%);
  border-radius: 50px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.sr2-section__image {
  width: 120%;
  height: auto;
  max-width: none;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.sr2-section__image:hover {
  transform: scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.sr2-section__content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
}

.sr2-section__text-wrapper {
  max-width: 500px;
}

.sr2-section__label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #00d4ff;
  margin-bottom: 20px;
}

.sr2-section__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  margin: 0 0 20px 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.sr2-section__divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #00ffff);
  margin-bottom: 30px;
  border-radius: 2px;
}

.sr2-section__description {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 20px 0;
}

.sr2-section__description:last-child {
  margin-bottom: 0;
}

/* =============================================================================
   Links Styling
============================================================================= */
.sr2-link {
  color: #00d4ff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.sr2-link:hover {
  color: #00ffff;
  border-bottom-color: #00ffff;
}

/* =============================================================================
   Specs/Cards Section
============================================================================= */
.sr2-specs {
  background: linear-gradient(180deg, #000 0%, #0a0a0a 50%, #000 100%);
  padding: 120px 40px;
  position: relative;
}

.sr2-specs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.sr2-specs__header {
  text-align: center;
  margin-bottom: 80px;
}

.sr2-specs__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  margin: 0 0 30px 0;
  text-transform: uppercase;
}

.sr2-specs__divider {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #00ffff);
  margin: 0 auto;
  border-radius: 2px;
}

.sr2-specs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* =============================================================================
   Cards
============================================================================= */
.sr2-card {
  background: linear-gradient(145deg, rgba(20, 20, 25, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 50px 40px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.sr2-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sr2-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 212, 255, 0.1);
}

.sr2-card:hover::before {
  opacity: 1;
}

.sr2-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 30px auto;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  color: #00d4ff;
  transition: all 0.4s ease;
}

.sr2-card:hover .sr2-card__icon {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 255, 255, 0.1) 100%);
  border-color: rgba(0, 212, 255, 0.4);
  transform: scale(1.1);
}

.sr2-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  margin: 0 0 20px 0;
}

.sr2-card__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 15px 0;
}

.sr2-card__text:last-child {
  margin-bottom: 0;
}

/* =============================================================================
   Mission Statement Section
============================================================================= */
.sr2-mission {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px;
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
  overflow: hidden;
}

.sr2-mission::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.sr2-mission::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.sr2-mission__content {
  position: absolute;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sr2-mission__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 6px;
  color: #fff;
  margin: 0 0 30px 0;
  text-transform: uppercase;
}

.sr2-mission__divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #00ffff);
  margin: 0 auto 40px auto;
  border-radius: 2px;
}

.sr2-mission__text {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 50px auto;
  text-align: center;
}

.sr2-mission__cta {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 18px 50px;
  border: 2px solid #00d4ff;
  border-radius: 0;
  transition: all 0.3s ease;
  background: transparent;
}

.sr2-mission__cta:hover {
  background: #00d4ff;
  color: #000;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

/* =============================================================================
   Scroll Animations (Enhanced)
============================================================================= */
.sr2-page .scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.sr2-page .scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for grouped elements */
.sr2-section__label.scroll-animate { transition-delay: 0s; }
.sr2-section__title.scroll-animate { transition-delay: 0.1s; }
.sr2-section__divider.scroll-animate { transition-delay: 0.2s; }
.sr2-section__description.scroll-animate:nth-of-type(1) { transition-delay: 0.3s; }
.sr2-section__description.scroll-animate:nth-of-type(2) { transition-delay: 0.4s; }
.sr2-section__image.scroll-animate { transition-delay: 0.2s; }

.sr2-card:nth-child(1) { transition-delay: 0s; }
.sr2-card:nth-child(2) { transition-delay: 0.15s; }
.sr2-card:nth-child(3) { transition-delay: 0.3s; }

/* =============================================================================
   Responsive Design
============================================================================= */

/* Large Tablets / Small Desktops */
@media (max-width: 1200px) {
  .sr2-section {
    min-height: 0;
  }
  
  .sr2-section__content {
    padding: 60px 40px;
  }
  
  .sr2-specs__grid {
    gap: 30px;
  }
  
  .sr2-card {
    padding: 40px 30px;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .sr2-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  
  .sr2-section--reversed {
    direction: ltr;
  }
  
  .sr2-section__media {
    min-height: 50vh;
    order: 1;
  }
  
  .sr2-section__content {
    order: 2;
    padding: 60px 40px;
  }
  
  .sr2-section__text-wrapper {
    max-width: 700px;
    text-align: center;
  }
  
  .sr2-section__divider {
    margin-left: auto;
    margin-right: auto;
  }
  
  .sr2-specs__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .sr2-hero__title {
    letter-spacing: 4px;
  }
}

/* Mobile Phones */
@media (max-width: 768px) {
  .sr2-hero {
    min-height: 100vh;
  }
  
  .sr2-hero__content {
    padding: 0 20px;
    margin-top: 80px;
  }
  
  .sr2-hero__label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 6px 16px;
  }
  
  .sr2-hero__title {
    letter-spacing: 3px;
    margin-bottom: 15px;
  }
  
  .sr2-hero__subtitle {
    letter-spacing: 1px;
    margin-bottom: 20px;
  }
  
  .sr2-hero__description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  
  .sr2-hero__cta {
    padding: 14px 30px;
    font-size: 0.8rem;
  }
  
  .sr2-hero__scroll-indicator {
    bottom: 30px;
  }
  
  .sr2-section__media {
    min-height: 40vh;
    padding: 20px;
  }
  
  .sr2-section__content {
    padding: 50px 25px;
  }
  
  .sr2-section__title {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
  
  .sr2-section__description {
    font-size: 0.95rem;
  }
  
  .sr2-specs {
    padding: 80px 20px;
  }
  
  .sr2-specs__header {
    margin-bottom: 50px;
  }
  
  .sr2-card {
    padding: 35px 25px;
  }
  
  .sr2-card__icon {
    width: 60px;
    height: 60px;
  }
  
  .sr2-card__icon svg {
    width: 32px;
    height: 32px;
  }
  
  .sr2-card__title {
    font-size: 1.3rem;
  }
  
  .sr2-mission {
    padding: 80px 25px;
    min-height: 0;
  }
  
  .sr2-mission__title {
    letter-spacing: 3px;
  }
  
  .sr2-mission__text {
    font-size: 1rem;
  }
  
  .sr2-mission__cta {
    padding: 14px 35px;
    font-size: 0.85rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .sr2-hero__title {
    letter-spacing: 2px;
  }
  
  .sr2-hero__cta {
    width: 100%;
    max-width: 280px;
  }
  
  .sr2-section__media {
    min-height: 35vh;
  }
  
  .sr2-section__label {
    font-size: 0.75rem;
  }
  
  .sr2-section__title {
    font-size: 1.5rem;
  }
  
  .sr2-mission__cta {
    width: 100%;
    max-width: 280px;
  }
}

/* =============================================================================
   Light Mode Adjustments
============================================================================= */
body.light-mode.sr2-page {
  background: #f5f5f5;
}

body.light-mode .sr2-section--dark {
  background: #fff;
}

body.light-mode .sr2-section--light {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body.light-mode .sr2-section__title,
body.light-mode .sr2-specs__title,
body.light-mode .sr2-mission__title,
body.light-mode .sr2-card__title {
  color: #1a1a2e;
}

body.light-mode .sr2-section__description,
body.light-mode .sr2-card__text,
body.light-mode .sr2-mission__text {
  color: rgba(0, 0, 0, 0.7);
}

body.light-mode .sr2-section__label,
body.light-mode .sr2-link {
  color: #0078b4;
}

body.light-mode .sr2-section__divider,
body.light-mode .sr2-specs__divider,
body.light-mode .sr2-mission__divider {
  background: linear-gradient(90deg, #0078b4, #00a8e8);
}

body.light-mode .sr2-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.98) 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .sr2-card:hover {
  border-color: rgba(0, 120, 180, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(0, 120, 180, 0.1);
}

body.light-mode .sr2-card__icon {
  background: linear-gradient(135deg, rgba(0, 120, 180, 0.1) 0%, rgba(0, 168, 232, 0.05) 100%);
  border-color: rgba(0, 120, 180, 0.2);
  color: #0078b4;
}

body.light-mode .sr2-specs {
  background: linear-gradient(180deg, #f5f5f5 0%, #fff 50%, #f5f5f5 100%);
}

body.light-mode .sr2-specs::before,
body.light-mode .sr2-mission::before {
  background: linear-gradient(90deg, transparent, rgba(0, 120, 180, 0.3), transparent);
}

body.light-mode .sr2-mission {
  background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
}

body.light-mode .sr2-mission__cta {
  color: #0078b4;
  border-color: #0078b4;
}

body.light-mode .sr2-mission__cta:hover {
  background: #0078b4;
  color: #fff;
}

body.light-mode .sr2-section__media {
  background: linear-gradient(135deg, rgba(250, 250, 252, 0.95) 0%, rgba(240, 242, 248, 0.95) 100%);
}

body.light-mode .sr2-section__image {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

body.light-mode .sr2-section__image:hover {
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
}

/* =============================================================================
   Accessibility - Reduced Motion
============================================================================= */
@media (prefers-reduced-motion: reduce) {
  .sr2-hero__scroll-line {
    animation: none;
  }
  
  .sr2-page .scroll-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .sr2-card,
  .sr2-section__image,
  .sr2-hero__cta,
  .sr2-mission__cta {
    transition: none;
  }
  
  .sr2-card:hover,
  .sr2-section__image:hover {
    transform: none;
  }
}

/* =============================================================================
   Print Styles
============================================================================= */
@media print {
  .sr2-hero {
    height: auto;
    min-height: 0;
    page-break-after: always;
  }
  
  .sr2-hero__video-container,
  .sr2-hero__scroll-indicator,
  .back-to-top {
    display: none;
  }
  
  .sr2-section {
    min-height: 0;
    page-break-inside: avoid;
  }
  
  .sr2-hero__overlay {
    background: rgba(0, 0, 0, 0.7);
  }
}
