/* Portfolio 3 - UX/UI Landing Page Style */

/* Base Layout for Landing Page */
.portfolio3-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

/* Scroll Snapping */
.portfolio3-scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  /* Hide scrollbar for cleaner UI */
  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.portfolio3-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Section Styling */
.portfolio3-section {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 60px 80px 20px; /* Increased right padding to 60px to clear dots */
  box-sizing: border-box;
}

/* Alternating backgrounds for visual separation */
.portfolio3-section:nth-child(odd) {
  background-color: var(--bg);
}

.portfolio3-section:nth-child(even) {
  background-color: var(--surface);
}

/* Section Content Layout */
.section-content {
  max-width: 1100px; /* Reduced max-width slightly to pull away from edges */
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; /* Increased gap for better separation */
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animate content when in view (triggered by JS intersection observer) */
.portfolio3-section.in-view .section-content {
  opacity: 1;
  transform: translateY(0);
}

/* Text Side */
.section-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-description {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 500px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 28px;
  background-color: var(--text);
  color: var(--bg);
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease, background-color 0.3s ease;
  width: fit-content;
}

.section-link:hover {
  transform: translateY(-2px);
  background-color: var(--brand);
  color: #000;
}

/* Visual Side */
.section-visual {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  /* Removed 3D transform */
}

.portfolio3-section:nth-child(even) .section-visual {
  /* Removed 3D transform */
}

/* Removed hover transform */

.visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

/* Removed hover scale on image */

/* Responsive Adjustments */
@media (max-width: 960px) {
  .section-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .section-text {
    align-items: center;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-visual {
    height: 300px;
    transform: none !important; /* Remove 3D effect on mobile for better usability */
  }
  
  .section-description {
    font-size: 1rem;
  }
}

/* Navigation Dots for Scroll Position */
.scroll-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--muted);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-dot.active {
  background-color: var(--brand);
  opacity: 1;
  transform: scale(1.5);
}

.scroll-dot:hover {
  opacity: 0.8;
}

/* Adjust header to be fixed and visible */
.site-header {
  position: fixed;
  width: 100%;
  background: rgba(var(--bg-rgb), 0.8); /* Need to ensure this works or fallback */
  backdrop-filter: blur(10px);
  z-index: 1000;
}

/* Scroll Down Button */
.scroll-down-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
  font-family: inherit;
}

.scroll-down-btn:hover {
  color: var(--brand);
  transform: translateX(-50%) translateY(5px);
}

.scroll-down-text {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-down-btn:hover .scroll-down-text {
  opacity: 1;
}

.scroll-down-arrow {
  width: 24px;
  height: 24px;
  animation: bounce 2s infinite;
  transition: transform 0.3s ease;
}

.scroll-down-btn:hover .scroll-down-arrow {
  transform: translateY(3px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Hide scroll down button on last section */
.portfolio3-section:last-child .scroll-down-btn {
  display: none;
}

/* Responsive adjustments for scroll down button */
@media (max-width: 960px) {
  .scroll-down-btn {
    bottom: 30px;
  }
  
  .scroll-down-text {
    font-size: 0.75rem;
  }
  
  .scroll-down-arrow {
    width: 20px;
    height: 20px;
  }
}

