/* 
 * index.css - Main styling for the homepage
 * Combines all component styles with enhanced homepage-specific styling
 */

/* Homepage-specific styling */

/* Enhanced section spacing */
.section {
    padding: 70px 0;
    position: relative;
    overflow: hidden;
  }
  
  /* Subtle section separators */
  .section:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  body.light-theme .section:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  /* Enhanced loading overlay */
  #loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #121212 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
  }
  
  .loading-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #f8f9fa;
    margin-top: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    animation: pulse 1.5s infinite;
  }
  
  @keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
  }
  
  .spinner {
    width: 3.5rem;
    height: 3.5rem;
    border: 0.25rem solid rgba(255, 255, 255, 0.1);
    border-top: 0.25rem solid var(--accent-gold, #f8b400);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(248, 180, 0, 0.3);
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  #loading-progress-bar {
    background: linear-gradient(90deg, var(--primary-color, #2193b0), var(--accent-gold, #f8b400));
    border-radius: 5px;
    transition: width 0.3s ease;
    height: 5px;
  }
  
  /* Enhanced section animation */
  .section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .section.section-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Enhanced WhatsApp button */
  .whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 15px rgba(37, 211, 102, 0.5);
  }
  
  .whatsapp-btn:active {
    transform: scale(0.95);
  }
  
  .whatsapp-btn img {
    height: 60px;
    width: auto;
  }
  
  /* Error message styling */
  #error-message {
    z-index: 9999;
    background-color: rgba(220, 53, 69, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
  }
  
  #error-message button {
    transition: all 0.3s ease;
  }
  
  #error-message button:hover {
    background-color: white;
    color: var(--danger, #dc3545);
    transform: translateY(-2px);
  }
  
  /* Smooth section transitions for smoother scrolling */
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Compensate for fixed header */
  }
  
  /* Enhanced accessibility */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: var(--accent-gold, #f8b400);
    color: var(--dark-color, #121212);
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 10000;
    transition: top 0.3s ease;
    font-weight: 600;
  }
  
  .skip-link:focus {
    top: 10px;
    box-shadow: 0 0 0 3px rgba(var(--accent-gold-rgb, 248, 180, 0), 0.5);
  }
  
  /* Section background gradient */
  #main-content {
    background: linear-gradient(180deg, rgba(18, 18, 18, 1) 0%, rgba(22, 22, 30, 1) 50%, rgba(18, 18, 18, 1) 100%);
  }
  
  body.light-theme #main-content {
    background: linear-gradient(180deg, rgba(248, 249, 250, 1) 0%, rgba(240, 242, 245, 1) 50%, rgba(248, 249, 250, 1) 100%);
  }
  
  /* Enhanced container styling for better content flow */
  .container {
    position: relative;
    z-index: 2;
  }
  
  /* Responsive adjustments */
  @media (max-width: 991.98px) {
    .section {
      padding: 60px 0;
    }
    
    .spinner {
      width: 3rem;
      height: 3rem;
    }
    
    .loading-text {
      font-size: 0.85rem;
      letter-spacing: 1.2px;
    }
    
    .whatsapp-btn img {
      height: 55px;
    }
  }
  
  @media (max-width: 767.98px) {
    .section {
      padding: 50px 0;
    }
    
    .spinner {
      width: 2.8rem;
      height: 2.8rem;
      border-width: 0.2rem;
    }
    
    .loading-text {
      font-size: 0.8rem;
      letter-spacing: 1px;
    }
    
    .whatsapp-btn {
      bottom: 25px;
      right: 25px;
    }
    
    .whatsapp-btn img {
      height: 50px;
    }
  }
  
  @media (max-width: 575.98px) {
    .section {
      padding: 40px 0;
    }
    
    .loading-text {
      font-size: 0.75rem;
    }
    
    .whatsapp-btn {
      bottom: 20px;
      right: 20px;
    }
    
    .whatsapp-btn img {
      height: 45px;
    }
  }