/* ========================================
   MAKEINIT - RESPONSIVE PUBLIC STYLES
   This file contains responsive improvements for the public-facing pages
   ======================================== */

/* CSS Variables for easy theming */
:root {
    --primary-color: #bd14a4;
    --secondary-color: #cb0c9f;
    --dark-color: #1f2937;
    --light-color: #ffffff;
    --gray-color: #6b7280;
    --transition: all 0.3s ease;
}

/* ========================================
   KEY IMPROVEMENTS - BODY & SCROLLING
   ======================================== */

/* FIXED: Allow natural scrolling instead of overflow hidden */
body {
    overflow-x: hidden;
    overflow-y: auto !important;  /* Override any hidden values */
}

/* ========================================
   FIXED BACKGROUND VIEWPORT
   ======================================== */

.hero-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    z-index: 0;
    pointer-events: none;
}

/* Background Layers with Lazy Loading */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1);
}

.hero-background.next {
    opacity: 0;
    z-index: 2;
}

/* ========================================
   ANIMATED VIEWPORT - MAIN CONTENT
   ======================================== */

.animated-viewport {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 40px;
    margin-top: 0;
    min-height: calc(100vh - 120px);
    overflow: visible;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    pointer-events: auto;
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */

.section-title {
    font-size: clamp(2rem, 5vw, 3rem) !important;
}

.home-message p {
    font-size: clamp(1rem, 2.5vw, 1.8rem) !important;
}

#slogan-text {
    font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
}

/* ========================================
   VIEWPORT SECTIONS
   ======================================== */

.viewport-section {
    display: block;
    opacity: 1;
    width: 100%;
    min-height: 100vh;
    padding: 2rem 0;
    scroll-margin-top: 100px;
}

#detailed-pricing {
    min-height: auto;
    padding: 1rem 0;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Mobile phones (576px and below) */
@media (max-width: 576px) {
    .animated-viewport {
        width: 98%;
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    body {
        font-size: 14px;
    }
}

/* Small tablets (576px to 768px) */
@media (min-width: 576px) and (max-width: 768px) {
    .animated-viewport {
        width: 95%;
        padding: 1.5rem;
    }
    
    body {
        font-size: 15px;
    }
}

/* Tablets (768px to 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    .animated-viewport {
        width: 90%;
    }
    
    body {
        font-size: 16px;
    }
}

/* Desktop (992px to 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
    .animated-viewport {
        max-width: 1200px;
    }
    
    body {
        font-size: 17px;
    }
}

/* Large Desktop (1200px to 1400px) */
@media (min-width: 1200px) and (max-width: 1400px) {
    body {
        font-size: 18px;
    }
}

/* Extra Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .animated-viewport {
        max-width: 1400px;
    }
    
    body {
        font-size: 19px;
    }
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

@media (max-width: 768px) {
    /* Ensure navbar doesn't cause horizontal scroll */
    .navbar {
        width: 98%;
        padding: 0.5rem;
    }
    
    /* Compact footer on mobile */
    .public-footer {
        padding: 0.5rem 1rem;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
    
    /* Adjust section padding */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* ========================================
   WAITING LIST & SIGNUP BUTTON STYLES
   ======================================== */

.mk-btn-waitlist,
.mk-btn-signup {
  background: #bd14a4 !important;
  background-color: #bd14a4 !important;
  border: 2px solid #bd14a4 !important;
  border-color: #bd14a4 !important;
  font-size: 1rem;
  color: #ffffff !important;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  margin-bottom: 0;
  box-shadow: 0 4px 15px rgba(189, 20, 164, 0.3);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-transform: none !important;
  font-weight: 400 !important;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  /* Override Bootstrap variables */
  --bs-btn-bg: #bd14a4 !important;
  --bs-btn-border-color: #bd14a4 !important;
  --bs-btn-color: #ffffff !important;
  --bs-btn-hover-bg: #ffffff !important;
  --bs-btn-hover-color: #000000 !important;
  --bs-btn-hover-border-color: #bd14a4 !important;
}

.mk-btn-waitlist:hover,
.mk-btn-signup:hover {
  background: #ffffff !important;
  border-color: #bd14a4 !important;
  color: #000000 !important;
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(189, 20, 164, 0.4);
}
