/* Scroll snap container for welcome page */
body.controller-welcome.action-index {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body.controller-welcome.action-index header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.08);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

body.controller-welcome.action-index main {
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
  max-width: none;
}

/* Hero section improvements */
.landing-area-top {
  height: 100vh;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.landing-area-top::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 100%;
}

.landing-hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-in 1s ease-out forwards;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.landing-hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-in 1s ease-out 0.3s forwards;
}

.landing-hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #2d3748;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  opacity: 0;
  animation: fade-in 1s ease-out 0.6s forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.landing-hero-words {
  margin-bottom: 2rem;
}

.landing-hero-cta {
  opacity: 0;
  animation: fade-in 1s ease-out 0.9s forwards;
}

.btn-primary-gradient {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn-primary-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  color: #fff !important;
}

.btn-primary-gradient:hover::before {
  transform: translateX(0);
}

.landing-hero-cta .btn {
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.landing-hero-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5) !important;
  color: white;
}

/* Details section improvements */
.landing-area-details, .landing-area-details--with-snap {
  min-height: 100vh;
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.landing-what-is-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.08);
}

.landing-what-is-section .lead {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.8;
  color: #2d3748;
}

.landing-area-details-item {
  margin-bottom: 4rem;
  opacity: 0;
  animation: fade-in-up 0.8s ease-out forwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-area-details-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.landing-area_masked-image {
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1;
}

.landing-area_masked-image:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.landing-area_masked-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Platform cards */
.landing-platforms-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 20px;
  padding: 3rem 1rem !important;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.06);
}

.landing-section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.landing-section-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #1a202c;
}

.platform-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.3);
}

.platform-icon {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.platform-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

.platform-description {
  color: #4a5568;
  font-size: 0.95rem;
}

/* Installation instructions */
.landing-install-section {
  margin-top: 3rem;
}

.install-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
  cursor: pointer;
}

.install-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
  border-left-color: #764ba2;
}

.install-card:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.install-title {
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

.install-instructions {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .landing-area-top {
    padding: 1rem;
  }

  .landing-hero-title {
    margin-bottom: 1rem;
  }

  .landing-area-details {
    padding: 2rem 1rem;
  }

  .landing-platforms-section {
    padding: 2rem 1rem !important;
  }

  .platform-card {
    margin-bottom: 1rem;
  }
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Public footer styling for welcome page */
body.controller-welcome.action-index .footer-public {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  padding: 2rem 0;
  overflow-x: hidden;
}

body.controller-welcome.action-index .footer-public .navbar {
  padding: 0;
}

body.controller-welcome.action-index .footer-public .footer-links {
  gap: 0.5rem;
}

body.controller-welcome.action-index .footer-public .nav-link {
  color: #4a5568;
  transition: color 0.3s ease;
  padding: 0.5rem;
  text-align: center;
}

body.controller-welcome.action-index .footer-public .nav-link:hover {
  color: #667eea;
}

body.controller-welcome.action-index .footer-public .text-center {
  color: #4a5568;
}

body.controller-welcome.action-index .footer-public .btn {
  color: #4a5568;
  border-color: rgba(102, 126, 234, 0.2);
}

body.controller-welcome.action-index .footer-public .btn:hover {
  color: #667eea;
  border-color: #667eea;
  background-color: rgba(102, 126, 234, 0.05);
}

/* Mobile footer adjustments */
@media (max-width: 767px) {
  body.controller-welcome.action-index .footer-public {
    padding: 1.5rem 0;
  }

  body.controller-welcome.action-index .footer-public .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* Global footer styling for all pages */
.footer-public {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  padding: 2rem 0;
  overflow-x: hidden;
}

.footer-public .navbar {
  padding: 0;
}

.footer-public .footer-links {
  gap: 0.5rem;
}

.footer-public .nav-link {
  color: #4a5568;
  transition: color 0.3s ease;
  padding: 0.5rem;
  text-align: center;
}

.footer-public .nav-link:hover {
  color: #667eea;
}

.footer-public .text-center {
  color: #4a5568;
}

.footer-public .btn {
  color: #4a5568;
  border-color: rgba(102, 126, 234, 0.2);
}

.footer-public .btn:hover {
  color: #667eea;
  border-color: #667eea;
  background-color: rgba(102, 126, 234, 0.05);
}

@media (max-width: 767px) {
  .footer-public {
    padding: 1.5rem 0;
  }

  .footer-public .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* Navbar styling for welcome page */
body.controller-welcome.action-index .navbar-traquility {
  background: rgba(255, 255, 255, 0.98) !important;
}

body.controller-welcome.action-index .navbar-brand-text {
  color: #1a202c;
  font-weight: 600;
}

body.controller-welcome.action-index .nav-link {
  color: #4a5568 !important;
  transition: color 0.3s ease;
}

body.controller-welcome.action-index .nav-link:hover {
  color: #667eea !important;
}

/* General navbar styling */
.navbar-traquility {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-traquility .navbar-brand-text {
  color: #1a202c;
  font-weight: 600;
}

.navbar-traquility .nav-link {
  color: #4a5568;
  transition: color 0.3s ease;
}

.navbar-traquility .nav-link:hover {
  color: #667eea;
}
