/* Fullpage scroll experience styles */
.footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    margin: 0 !important;
  }
  
  .footer.show-on-last {
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
  }
  
  main.container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
  }
  
  body {
    overflow: hidden !important;
  }
  
  /* Adjust last section to account for footer */
  .fullpage-section[data-section="3"] {
    padding-bottom: 4rem !important;
  }
  
  /* Ensure gradient text works properly */
  .gradient-text {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
  }
  
  @keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
  
  /* Float animation enhancement */
  .float-enhanced {
    animation: float-enhanced 4s ease-in-out infinite;
  }
  
  @keyframes float-enhanced {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
  }
  
  /* Tooltip styles */
  .tooltip {
    position: relative;
    display: inline-block;
  }
  
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
  }
  
  .tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
  }
  
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }
  
  .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #6b7280;
    color: white;
    font-size: 10px;
    font-weight: bold;
    margin-left: 6px;
    cursor: help;
    line-height: 1;
    vertical-align: middle;
  }
  
  /* Tab Styles */
  .tab-button {
    color: #64748b;
    background: transparent;
    white-space: nowrap;
  }
  
  .tab-button.active {
    color: #1e293b;
    background: white;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  }
  
  .tab-button:hover:not(.active) {
    color: #475569;
    background: rgba(255, 255, 255, 0.5);
  }
  
  .tab-content {
    display: none;
  }
  
  .tab-content.active {
    display: block;
  }
  
  /* Photo Sets Container */
  .photo-sets-container {
    overflow: hidden;
    position: relative;
    border-radius: 1rem;
    width: 100%;
  }
  
  .photo-sets-scroll {
    display: flex;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
  }
  
  /* Photo Sets Wrapper for set-level arrows */
  .photo-sets-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px; /* Add padding to make room for arrows */
  }
  
  .photo-set {
    flex-shrink: 0;
    width: 100%;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    box-sizing: border-box;
  }
  
  .source-photos-label,
  .generated-photos-label {
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  /* Photo Row Container with Arrows */
  .photo-row-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .photo-row-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem;
    justify-content: center;
  }
  
  .photo-row-scroll.scrollable {
    justify-content: flex-start;
  }
  
  /* Constrain width to show only desired number of photos */
  .photo-row-scroll:has(.source-photos) {
    max-width: calc(5 * 120px + 4 * 0.75rem + 2rem); /* 5 source photos + gaps + padding */
  }
  
  .photo-row-scroll:has(.generated-photos) {
    max-width: calc(4 * 280px + 3 * 1rem + 2rem); /* 4 generated photos + gaps + padding */
  }
  
  /* Fallback for browsers that don't support :has() */
  .photo-row-scroll.source-photos-container {
    max-width: calc(5 * 120px + 4 * 0.75rem + 2rem); /* 648px + 32px = 680px */
  }
  
  .photo-row-scroll.generated-photos-container {
    max-width: calc(4 * 280px + 3 * 1rem + 2rem); /* 1120px + 48px + 32px = 1200px */
  }
  
  .photo-row-scroll::-webkit-scrollbar {
    display: none;
  }
  
  .scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
  }
  
  .scroll-arrow:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }
  
  .scroll-arrow.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .scroll-arrow.hidden {
    display: none !important;
  }
  
  .scroll-arrow.left {
    left: -24px;
  }
  
  .scroll-arrow.right {
    right: -24px;
  }
  
  .scroll-arrow svg {
    width: 20px;
    height: 20px;
    color: #64748b;
  }
  
  .photo-row-container:hover .scroll-arrow.visible {
    opacity: 1;
    visibility: visible;
  }
  
  /* Source Photos Row */
  .source-photos {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    min-width: max-content;
  }
  
  .source-photo-item {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px -1px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
  }
  
  .source-photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 10px -2px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.1);
  }
  
  .source-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .source-photo-item:hover img {
    transform: scale(1.1);
  }
  
  /* Generated Photos Row */
  .generated-photos {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    min-width: max-content;
  }
  
  .generated-photo-item {
    flex-shrink: 0;
    width: 280px;
    height: 380px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
  }
  
  .generated-photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  }
  
  .generated-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .generated-photo-item:hover img {
    transform: scale(1.1);
  }
  
  /* Responsive adjustments */
  @media (max-width: 1024px) {
    .photo-set {
      max-width: 900px;
      padding: 0 1.5rem;
    }
    
    .generated-photo-item {
      width: 220px;
      height: 300px;
    }
    
    .photo-sets-wrapper {
      padding: 0 50px; /* Slightly less padding on tablets */
    }
    
    .set-scroll-arrow {
      width: 48px;
      height: 48px;
    }
    
    .set-scroll-arrow svg {
      width: 20px;
      height: 20px;
    }
  }
  
  @media (max-width: 768px) {
    .photo-set {
      max-width: 100%;
      padding: 0 1rem;
    }
    
    .source-photos {
      flex-wrap: wrap;
      gap: 0.5rem;
      justify-content: center;
    }
    
    .source-photo-item {
      width: 100px;
      height: 100px;
    }
    
    .generated-photos {
      flex-wrap: wrap;
      gap: 0.75rem;
      justify-content: center;
    }
    
    .generated-photo-item {
      width: calc(50% - 0.375rem);
      height: 250px;
      max-width: 280px;
    }
    
    .photo-sets-wrapper {
      padding: 0 40px; /* Less padding on mobile */
    }
    
    .set-scroll-arrow {
      width: 44px;
      height: 44px;
    }
    
    .set-scroll-arrow svg {
      width: 18px;
      height: 18px;
    }
  }
  
  @media (max-width: 640px) {
    .photo-set {
      padding: 0 0.5rem;
    }
    
    .generated-photo-item {
      width: 100%;
      height: 300px;
      max-width: 350px;
    }
    
    .source-photo-item {
      width: 80px;
      height: 80px;
    }
    
    .photo-sets-wrapper {
      padding: 0 35px; /* Minimal padding on small screens */
    }
    
    .set-scroll-arrow {
      width: 40px;
      height: 40px;
    }
    
    .set-scroll-arrow svg {
      width: 16px;
      height: 16px;
    }
  }
  
  /* Full Page Scroll Styles */
  .fullpage-container {
    height: 100vh;
    overflow: hidden;
    position: relative;
    width: 100%;
  }
  
  .fullpage-section {
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    justify-content: center;
    overflow-y: auto;
  }
  
  .fullpage-section.py-20 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  /* Hero section specific adjustments */
  .fullpage-section[data-section="0"] {
    padding-top: 5rem;
    padding-bottom: 1rem;
  }
  
  .fullpage-section[data-section="0"] .container {
    padding-top: 2rem;
  }
  
  /* Scroll indicator */
  .scroll-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .scroll-dot.active {
    background: white;
    transform: scale(1.2);
  }
  
  .scroll-dot:hover {
    background: rgba(255, 255, 255, 0.7);
  }
  
  /* Scroll arrows */
  .scroll-nav {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .scroll-nav.hide-on-last {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .scroll-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .scroll-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
  }
  
  .scroll-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
  
  .scroll-nav-btn:disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
  }
  
  /* Mobile adjustments */
  @media (max-width: 768px) {
    .scroll-indicator {
      right: 1rem;
    }
    
    .scroll-nav {
      right: 1rem;
      bottom: 1rem;
    }
    
    .scroll-nav-btn {
      width: 40px;
      height: 40px;
    }
    
    .scroll-dot {
      width: 10px;
      height: 10px;
    }
    
    .fullpage-section.py-20 {
      padding-top: 1rem;
      padding-bottom: 1rem;
    }
    
    .fullpage-section[data-section="0"] {
      padding-top: 4rem;
      padding-bottom: 1rem;
    }
    
    /* Ensure content doesn't overflow on mobile */
    .fullpage-section {
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
  }
  
  /* Set-level scroll arrows */
  .set-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
  }
  
  .set-scroll-arrow:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  
  .set-scroll-arrow.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .set-scroll-arrow.left {
    left: 0;
  }
  
  .set-scroll-arrow.right {
    right: 0;
  }
  
  .set-scroll-arrow svg {
    width: 24px;
    height: 24px;
    color: #64748b;
  }
  
  .photo-sets-wrapper:hover .set-scroll-arrow {
    opacity: 1;
    visibility: visible;
  }
  
  /* Spinner CSS for authenticated users */
  .spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  } 