/* Home page specific styles */

/* Scroll container setup */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for WebKit browsers */
.scroll-container::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar on body and html as well */
html, body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  overflow-x: hidden;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none;
}

/* Section styling */
.section {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
}

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base animations */
.animate-fade-in {
  animation: fadeIn 1.2s ease-out;
}

.animate-fade-in-delay {
  animation: fadeIn 1.2s ease-out 0.3s both;
}

/* Section reveal animations */
.section {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.section:not(.active) {
  opacity: 0.3;
}

/* Ensure hero section is always visible initially */
.section[data-section="0"] {
  opacity: 1;
}

.section.active .work-card,
.section.active .content-card {
  animation: slideInUp 0.8s ease-out 0.3s both;
}

/* Work card animations */
.work-card {
  transition: all 0.3s ease;
  transform: scale(1);
  opacity: 0;
}

.work-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px var(--shadow-color);
}

/* Content card animations */
.content-card {
  transition: all 0.3s ease;
  transform: translateY(30px);
  opacity: 0;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

/* Active section cards */
.section.active .content-card:nth-child(1) {
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.section.active .content-card:nth-child(2) {
  animation: slideInUp 0.8s ease-out 0.6s both;
}

/* Scroll indicator animation */
.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0,-10px,0);
  }
  70% {
    transform: translate3d(0,-5px,0);
  }
  90% {
    transform: translate3d(0,-2px,0);
  }
}

/* Hide scroll indicator in non-hero sections */
.section:not(.hero-section) .scroll-indicator {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 3rem;
  }

  .hero-section p {
    font-size: 1.25rem;
  }

  .work-section h2,
  .content-section h2 {
    font-size: 2.5rem;
  }

  .section {
    padding: 2rem 0;
  }
}

/* Ensure all elements use theme colors */
.hero-section h1,
.hero-section p,
.work-section h2,
.work-section h3,
.work-section p,
.content-section h2,
.content-section h3,
.content-section p {
  color: var(--text-color) !important;
}

/* Override main container padding for full-height sections */
main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* Navigation positioning for scroll container */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Comprehensive scrollbar hiding */
html, body {
  padding-top: 0;
  margin: 0;
  overflow: hidden !important;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* Internet Explorer 10+ */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Ensure no element shows scrollbars */
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Content text styling */
.content-text {
  text-align: center;
}

.content-text h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  color: var(--text-color);
}

.content-text h2:first-child {
  margin-top: 0;
}

.content-text p {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  opacity: 0.9;
}

.content-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-text li {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  opacity: 0.8;
}

.content-text li:before {
  content: "•";
  margin-right: 0.75rem;
  opacity: 0.6;
}