/* 
 * Component-specific styles for the ChargePoint landing page
 * This file contains styles for individual components
 */

/* Header & Navigation */
.header-sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after, 
.nav-link.active::after {
  width: 100%;
}

.logo-container {
  position: relative;
  overflow: hidden;
}

.logo-container::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(30deg);
  animation: logo-shine 3s infinite;
}

@keyframes logo-shine {
  0% { transform: rotate(30deg) translateX(-100%); }
  100% { transform: rotate(30deg) translateX(100%); }
}

/* Hero Section */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 1;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 75px;
  filter: drop-shadow(0 -5px 10px rgba(0, 0, 0, 0.05));
}

.hero-wave path {
  fill: #ffffff;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  animation: pulse-slow 8s infinite alternate ease-in-out;
}

.hero-bg-circle-1 {
  top: 10%;
  left: 10%;
  width: 300px;
  height: 300px;
  animation-delay: 0s;
}

.hero-bg-circle-2 {
  bottom: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  animation-delay: 2s;
}

.hero-bg-circle-3 {
  top: 40%;
  left: 30%;
  width: 200px;
  height: 200px;
  animation-delay: 4s;
}

.app-badge {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.app-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.app-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: badge-shine 3s infinite;
  animation-delay: calc(var(--badge-index, 0) * 0.5s);
}

@keyframes badge-shine {
  0% {
    transform: rotate(30deg) translateX(-100%);
  }
  100% {
    transform: rotate(30deg) translateX(100%);
  }
}

/* Feature Cards */
.feature-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-top: 4px solid transparent;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-top: 4px solid var(--primary);
}

.feature-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.5s ease-out;
}

.feature-card:hover::before {
  transform: scaleY(1);
}

.feature-icon {
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  position: relative;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(10deg);
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(var(--primary-rgb, 79, 70, 229), 0.2) 0%, rgba(var(--primary-rgb, 79, 70, 229), 0) 70%);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon::after {
  opacity: 1;
  transform: scale(1.5);
}

/* App Showcase Tabs */
.feature-tab {
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  border-left: 3px solid transparent;
  overflow: hidden;
}

.feature-tab-active {
  border-left: 3px solid var(--primary);
  background-color: rgba(79, 70, 229, 0.05);
}

.feature-tab::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  height: 0%;
  width: 3px;
  background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
  transition: height 0.3s ease;
}

.feature-tab:hover::before {
  height: 100%;
}

.feature-tab-active::before {
  height: 100%;
}

.feature-tab::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.feature-tab:hover::after {
  transform: translateX(0);
}

.feature-tab-active::after {
  transform: translateX(0);
}

.feature-screenshot {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  transform: perspective(1000px) rotateY(0) translateZ(0);
}

.feature-screenshot:hover {
  transform: perspective(1000px) rotateY(-5deg) translateZ(20px);
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-tab-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.feature-tab-content.active {
  opacity: 1;
  transform: translateY(0);
}

/* How It Works Section */
.step-item {
  position: relative;
}

.step-item::after {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(50% + 1rem);
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  width: calc(100% - 1.5rem);
  z-index: -1;
  border-radius: 3px;
  opacity: 0.7;
}

.step-item:last-child::after {
  display: none;
}

.step-number {
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.step-number::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-item:hover .step-number {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.step-item:hover .step-number::before {
  opacity: 0.3;
  animation: pulse-slow 2s infinite;
}

.step-content {
  transition: all 0.3s ease;
}

.step-item:hover .step-content {
  transform: translateY(-5px);
}

/* Map and Station Finder */
.map-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
  transform: translateY(0);
}

.map-container:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.map-marker {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  cursor: pointer;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}

.map-marker.active {
  transform: scale(1.3);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.map-marker:hover {
  transform: scale(1.2) translateY(-3px);
}

.map-marker.active:hover {
  transform: scale(1.4) translateY(-3px);
}

.station-info-card {
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.slide-in-right {
  animation: slideInRight 0.5s forwards;
}

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

.station-status {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.status-available {
  background-color: var(--secondary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  animation: pulse 2s infinite;
}

.status-busy {
  background-color: var(--accent);
}

.status-offline {
  background-color: var(--text-light);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(6, 182, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}

/* Testimonials */
.testimonials-container {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(249,250,251,1) 100%);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -15px;
  left: 10px;
  font-size: 120px;
  font-family: serif;
  color: rgba(79, 70, 229, 0.1);
  line-height: 1;
}

.testimonial-avatar {
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cbd5e0;
  transition: all 0.3s ease;
  margin: 0 5px;
}

.testimonial-indicator.active {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.testimonial-arrow:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Pricing Section */
.pricing-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-top: 4px solid transparent;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(249,250,251,1) 100%);
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.pricing-card:hover::after {
  opacity: 1;
}

.pricing-card.featured {
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--secondary)) 1;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  background: white;
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  filter: blur(3px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.pricing-card:hover .pricing-badge {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.pricing-price {
  position: relative;
  display: inline-block;
}

.pricing-price::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.pricing-card:hover .pricing-price::after {
  transform: scaleX(1);
}

.pricing-feature {
  transition: all 0.3s ease;
  position: relative;
  padding-left: 1.5rem;
}

.pricing-feature::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  opacity: 0.8;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.pricing-card:hover .pricing-feature::before {
  transform: scale(1.2);
  opacity: 1;
}

/* FAQ Section */
.faq-item {
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.5);
  position: relative;
}

.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
  border-radius: 4px 0 0 4px;
}

.faq-item:hover::before,
.faq-item.active::before {
  transform: scaleY(1);
}

.faq-question {
  cursor: pointer;
  padding: 1.25rem;
  background-color: #f9fafb;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.faq-item:hover .faq-question,
.faq-item.active .faq-question {
  background-color: #f5f7fa;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: all 0.3s ease;
  color: var(--primary);
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  background-color: rgba(79, 70, 229, 0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), padding 0.3s ease;
  padding: 0 1.25rem;
  color: var(--text-medium);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.25rem;
  background-color: white;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Download Section */
.download-section {
  position: relative;
  overflow: hidden;
}

.download-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  z-index: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiMwMDAiIGZpbGwtb3BhY2l0eT0iLjUiPjxwYXRoIGQ9Ik0zNiAxOGMzLjMxNCAwIDYtMi42ODYgNi02cy0yLjY4Ni02LTYtNi02IDIuNjg2LTYgNiAyLjY4NiA2IDYgNnptMCAxOGMzLjMxNCAwIDYtMi42ODYgNi02cy0yLjY4Ni02LTYtNi02IDIuNjg2LTYgNiAyLjY4NiA2IDYgNnptMCAxOGMzLjMxNCAwIDYtMi42ODYgNi02cy0yLjY4Ni02LTYtNi02IDIuNjg2LTYgNiAyLjY4NiA2IDYgNnptLTE4IDBjMy4zMTQgMCA2LTIuNjg2IDYtNnMtMi42ODYtNi02LTYtNiAyLjY4Ni02IDYgMi42ODYgNiA2IDZ6bTAtMThjMy4zMTQgMCA2LTIuNjg2IDYtNnMtMi42ODYtNi02LTYtNiAyLjY4Ni02IDYgMi42ODYgNiA2IDZ6bTAtMThjMy4zMTQgMCA2LTIuNjg2IDYtNnMtMi42ODYtNi02LTYtNiAyLjY4Ni02IDYgMi42ODYgNiA2IDZ6bS0xOCAwYzMuMzE0IDAgNi0yLjY4NiA2LTZzLTIuNjg2LTYtNi02LTYgMi42ODYtNiA2IDIuNjg2IDYgNiA2em0wIDE4YzMuMzE0IDAgNi0yLjY4NiA2LTZzLTIuNjg2LTYtNi02LTYgMi42ODYtNiA2IDIuNjg2IDYgNiA2em0wIDE4YzMuMzE0IDAgNi0yLjY4NiA2LTZzLTIuNjg2LTYtNi02LTYgMi42ODYtNiA2IDIuNjg2IDYgNiA2eiI+PC9wYXRoPjwvZz48L2c+PC9zdmc+');
  animation: download-bg-move 30s linear infinite;
}

@keyframes download-bg-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

.download-content {
  position: relative;
  z-index: 1;
}

.download-app-badge {
  transition: all 0.3s ease;
  transform: scale(1);
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.download-app-badge:hover {
  transform: scale(1.05) translateY(-5px);
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
}

.download-device {
  position: relative;
  transition: all 0.5s ease;
  transform: translateY(0) rotate(0deg);
}

.download-device:hover {
  transform: translateY(-10px) rotate(2deg);
}

.download-device::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  transition: all 0.5s ease;
}

.download-device:hover::after {
  width: 70%;
  opacity: 0.7;
}

/* Footer */
.footer {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 75px;
  transform: rotateY(0);
  transition: transform 0.5s ease;
}

.footer-wave:hover svg {
  transform: rotateY(180deg);
}

.footer-wave path {
  fill: #ffffff;
}

.footer-link {
  transition: all 0.3s ease;
  color: #cbd5e1;
  position: relative;
  display: inline-block;
  padding: 2px 0;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-link:hover::after {
  width: 100%;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.newsletter input:focus {
  outline: 2px solid var(--primary);
}

#footer .app-badges img {
  filter: grayscale(0.2);
  transition: all 0.3s ease;
}

#footer .app-badges img:hover {
  filter: grayscale(0);
}
