/* Single Page Scroll Styles */

/* Reset and base styles */
html {
  scroll-behavior: smooth;
}

/* FIXED: Allow footer to show by removing height/overflow restrictions */
body.single-page-scroll {
  /* Removed: overflow: hidden; height: 100vh; */
  margin: 0;
  padding: 0;
}

/* FIXED: Allow container to expand beyond viewport */
.single-page-container {
  /* Removed: height: 100vh; overflow: hidden; */
  position: relative;
  min-height: 100vh;
}

/* Individual page sections */
.page-section {
  width: 100%;
  height: 100vh;
  position: relative; /* Changed from absolute to relative */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  z-index: 1;
}

/* Section content wrapper */
.section-content {
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.page-section.active .section-content {
  opacity: 1;
  transform: translateY(0);
}

/* Animation variants */
.section-content.fade {
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}

.section-content.slide-up {
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.8s ease 0.4s, opacity 0.8s ease 0.4s;
}

/* FIXED: Modified slide-left to prevent horizontal shifting during scrolling */
.section-content.slide-left {
  opacity: 0;
  /* Removed transform: translateX(-80px); that was causing the alignment issue */
  transition: opacity 0.8s ease 0.4s;
}

.section-content.zoom {
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.8s ease 0.4s, opacity 0.8s ease 0.4s;
}

.page-section.active .section-content.fade,
.page-section.active .section-content.slide-up,
.page-section.active .section-content.zoom {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* FIXED: Simplified activation for slide-left to only change opacity */
.page-section.active .section-content.slide-left {
  opacity: 1;
}

/* Enhanced header styles for fixed navigation */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(24, 28, 36, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#main-header.scrolled {
  background: rgba(24, 28, 36, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation menu enhancements */
.nav-menu a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a.active {
  color: #00e6d0;
}

.nav-menu a.active:after {
  width: 100%;
}

/* Section navigation dots */
.section-navigation {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.section-nav-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.section-nav-dot.active {
  background: #00e6d0;
  transform: scale(1.3);
}

.section-nav-dot:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 230, 208, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.section-nav-dot.active:before {
  opacity: 1;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1002;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00e6d0, #00b8a5);
  width: 0;
  transition: width 0.3s ease;
}

/* Section backgrounds */
.page-section.bg-gradient-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.page-section.bg-gradient-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.page-section.bg-gradient-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.page-section.bg-gradient-4 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.page-section.bg-dark {
  background: #1a1a1a;
  color: #ffffff;
}

.page-section.bg-light {
  background: #ffffff;
  color: #333333;
}

/* Typography for sections */
.section-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-content h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Call to action buttons */
.section-cta {
  display: inline-flex;
  gap: 1rem;
  margin-top: 2rem;
}

.section-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.section-btn.primary {
  background: #00e6d0;
  color: #181c24;
}

.section-btn.primary:hover {
  background: #00b8a5;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 230, 208, 0.3);
}

.section-btn.secondary {
  background: transparent;
  color: currentColor;
  border: 2px solid currentColor;
}

.section-btn.secondary:hover {
  background: currentColor;
  color: #181c24;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  body.single-page-scroll {
    overflow: auto;
    margin-top: 0 !important; /* Remove any top margin */
    padding-top: 0 !important; /* Remove any top padding */
  }
  
  .single-page-container {
    height: auto;
    overflow: visible;
    margin-top: 70px; /* Add margin to account for fixed header */
  }
  
  .page-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    transform: none !important;
    margin-top: 0; /* Remove any top margin on sections */
  }
  
  .section-navigation {
    display: none;
  }
  
  /* First section specific adjustment */
  .page-section:first-child {
    margin-top: 0; /* Ensure no extra space at the top */
  }
  
  .section-content h1 {
    font-size: 2.5rem;
  }
  
  .section-content h2 {
    font-size: 2rem;
  }
  
  .section-content p {
    font-size: 1.1rem;
  }
  
  .section-cta {
    flex-direction: column;
    align-items: center;
  }
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
  .page-section {
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-section {
    transition: none;
  }
  
  .section-content {
    transition: none;
  }
}