/* Stacking Cards Animation */
#fullpage {
  position: relative;
  overflow: hidden;
}

.fp-section {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden !important;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1.000), 
              opacity 0.8s ease,
              box-shadow 0.8s ease;
  transform-origin: center bottom;
  will-change: transform, opacity;
}

/* Initial state - all sections start at bottom */
.fp-section {
  transform: translateY(100vh);
  opacity: 0;
}

/* Active section - fully visible on top */
.fp-section.active {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
  z-index: 100 !important;
  box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
}

/* Previous sections - stacked underneath with slight scale and offset */
.fp-section.fp-completely.previous-1 {
  transform: translateY(0) scale(0.95) !important;
  opacity: 0.9 !important;
  z-index: 99 !important;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.fp-section.fp-completely.previous-2 {
  transform: translateY(0) scale(0.90) !important;
  opacity: 0.8 !important;
  z-index: 98 !important;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.15);
}

.fp-section.fp-completely.previous-3 {
  transform: translateY(0) scale(0.85) !important;
  opacity: 0.7 !important;
  z-index: 97 !important;
}

.fp-section.fp-completely.previous-4 {
  transform: translateY(0) scale(0.80) !important;
  opacity: 0.6 !important;
  z-index: 96 !important;
}

.fp-section.fp-completely.previous-5 {
  transform: translateY(0) scale(0.75) !important;
  opacity: 0.5 !important;
  z-index: 95 !important;
}

/* Future sections - hidden below */
.fp-section:not(.active):not(.fp-completely) {
  transform: translateY(100vh) !important;
  opacity: 0 !important;
  z-index: 90 !important;
}

/* Add subtle shadow overlay on stacked sections */
.fp-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.fp-section.fp-completely:not(.active)::before {
  opacity: 1;
}

.fp-section.active::before {
  opacity: 0 !important;
}

/* Prevent scrollbar flickering */
.fp-section .container {
  overflow: hidden !important;
}

.fp-section .about-content,
.fp-section .row {
  overflow: hidden !important;
}

/* Hide scrollbars globally for fullpage sections */
#fullpage::-webkit-scrollbar {
  display: none;
}

#fullpage {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.fp-section::-webkit-scrollbar {
  display: none;
}

.fp-section {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth content appearance */
.fp-section .container {
  position: relative;
  z-index: 2;
}


