/* Mobile Responsive CSS for SkillAI Path Website */

/* Fix for viewport issues and horizontal scrolling */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
}

/* Mobile Responsive CSS for SkillAI Path Website */

/* Fix for viewport issues and horizontal scrolling */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
}

/* ===============================================
   MOBILE BOTTOM TAB NAVIGATION
   =============================================== */

/* Mobile Bottom Navigation - HIDDEN by default */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--section);
  border-top: 2px solid var(--border);
  display: none; /* Hidden by default - only show on mobile */
  box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
  z-index: 1000;
}

.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  max-width: 500px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 12px;
  min-width: 60px;
  position: relative;
}

.nav-item.active {
  color: var(--accent);
  background: rgba(50, 221, 184, 0.1);
}

.nav-item:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.nav-icon {
  margin-bottom: 0.2rem;
  color: inherit;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 500;
}

/* CTA Button in Navigation - "Free Gift" */
.nav-cta {
  background: var(--accent) !important;
  color: var(--section) !important;
  font-weight: 700;
  padding: 0.8rem 0.5rem !important;
  box-shadow: 0 4px 12px rgba(50, 221, 184, 0.3);
  animation: gentle-pulse 3s infinite;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(50, 221, 184, 0.4);
}

.nav-cta .nav-label {
  color: var(--section);
  font-weight: 700;
}

/* Gentle pulse animation for Free Gift button */
@keyframes gentle-pulse {
  0%, 100% { 
    box-shadow: 0 4px 12px rgba(50, 221, 184, 0.3);
  }
  50% { 
    box-shadow: 0 4px 12px rgba(50, 221, 184, 0.5), 0 0 0 4px rgba(50, 221, 184, 0.1);
  }
}

/* Active Page Indicator */
.nav-item.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===============================================
   UNIVERSAL GIFT POPUP STYLES
   =============================================== */

/* Popup Overlay - Available on all devices */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 1rem;
  box-sizing: border-box;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Popup Modal - Responsive for both mobile and desktop */
.gift-popup {
  background: var(--section);
  border-radius: 20px;
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--accent);
  position: relative;
  transform: scale(0.9) translateY(30px);
  transition: all 0.4s ease;
  z-index: 100000;
}

.popup-overlay.active .gift-popup {
  transform: scale(1) translateY(0);
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--card);
  border: none;
  color: var(--light);
  font-size: 1.8rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 100001;
}

.popup-close:hover {
  background: var(--accent);
  color: var(--section);
  transform: scale(1.1);
}

/* Popup Header */
.popup-header {
  text-align: center;
  padding: 3rem 2.5rem 1.5rem 2.5rem;
  background: linear-gradient(135deg, rgba(50, 221, 184, 0.15) 0%, rgba(50, 221, 184, 0.05) 100%);
  border-radius: 20px 20px 0 0;
  position: relative;
}

.gift-icon {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  animation: desktop-entrance 3s ease-in-out infinite;
}

@keyframes desktop-entrance {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

.popup-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.popup-subtitle {
  font-size: 1.2rem;
  color: var(--light);
  font-weight: 600;
  opacity: 0.9;
}

/* Welcome message for desktop */
.welcome-message {
  background: rgba(50, 221, 184, 0.1);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}

.welcome-message p {
  color: var(--light);
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

/* Popup Body */
.popup-body {
  padding: 2rem 2.5rem;
}

.gift-reveal {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gift-reveal h3 {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.gift-value {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--section);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1rem;
  display: inline-block;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px rgba(50, 221, 184, 0.3);
}

.gift-reveal p {
  color: var(--light);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
}

/* Benefits Section */
.gift-benefits {
  text-align: left;
  margin-bottom: 2rem;
}

.gift-benefits h4 {
  color: var(--light);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-align: center;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.8rem;
}

.benefit-list li {
  color: var(--muted);
  padding: 0.6rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.benefit-list li::before {
  content: '🎯';
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Social Proof */
.social-proof {
  background: rgba(50, 221, 184, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--accent);
  position: relative;
}

.social-proof::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

.social-proof-text {
  font-style: italic;
  color: var(--light);
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.social-proof-author {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Action Buttons */
.popup-actions {
  padding: 0 2.5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.claim-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--section);
  padding: 1.5rem 3rem;
  border-radius: 15px;
  font-weight: 800;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(50, 221, 184, 0.4);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.claim-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.claim-button:hover::before {
  left: 100%;
}

.claim-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(50, 221, 184, 0.5);
  color: var(--section);
}

.urgency-text {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.urgency-highlight {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Timer for urgency */
.timer-display {
  background: var(--primary);
  color: var(--accent);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  margin-top: 0.5rem;
  border: 1px solid var(--accent);
}

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

/* Ensure content doesn't get hidden behind bottom nav on mobile */
@media (max-width: 768px) {
  body {
    padding-bottom: 80px !important;
  }
}

/* Only show bottom nav on mobile devices */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: block; /* Show ONLY on mobile */
  }
  
  /* Hide desktop hamburger menu when bottom nav is active */
  .mobile-menu-toggle {
    display: none !important;
  }
  
  /* Hide desktop navigation on mobile */
  .main-nav {
    display: none !important;
  }
  
  /* Adjust header for mobile with bottom nav */
  .header-main {
    justify-content: center !important;
  }

  /* Mobile popup adjustments */
  .gift-popup {
    max-width: 450px;
    margin: 1rem;
  }

  .popup-header {
    padding: 2.5rem 2rem 1rem 2rem;
  }

  .popup-body {
    padding: 1.5rem 2rem;
  }

  .popup-actions {
    padding: 0 2rem 2rem 2rem;
  }

  .popup-title {
    font-size: 1.6rem;
  }

  .gift-icon {
    font-size: 3.5rem;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }

  .claim-button {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
  }
}

/* Ensure bottom nav NEVER shows on desktop */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important; /* Force hide on desktop */
  }
  
  body {
    padding-bottom: 0 !important; /* No bottom padding needed on desktop */
  }

  /* Desktop popup styling */
  .gift-popup {
    max-width: 600px;
  }
  
  .popup-header {
    padding: 3.5rem 3rem 2rem 3rem;
  }
  
  .popup-body {
    padding: 2rem 3rem;
  }
  
  .popup-actions {
    padding: 0 3rem 3rem 3rem;
  }
}

/* Fine-tune for smaller mobile screens */
@media (max-width: 480px) {
  .nav-label {
    font-size: 0.7rem;
  }
  
  .nav-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .bottom-nav-container {
    padding: 0.3rem 0;
  }
  
  .nav-item {
    min-width: 50px;
    padding: 0.4rem;
  }

  /* Mobile popup fine-tuning */
  .popup-title {
    font-size: 1.4rem;
  }

  .gift-icon {
    font-size: 3rem;
  }

  .claim-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .nav-label {
    font-size: 0.65rem;
  }
  
  .nav-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .mobile-bottom-nav {
    padding: 0.2rem 0;
  }
  
  .bottom-nav-container {
    padding: 0.2rem 0;
  }
  
  .nav-item {
    padding: 0.3rem;
  }
  
  body {
    padding-bottom: 60px !important;
  }
}

/* ===============================================
   ACCESSIBILITY IMPROVEMENTS
   =============================================== */

/* Larger touch targets for accessibility */
@media (max-width: 768px) {
  .nav-item {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Better focus indicators */
  .nav-item:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  
  /* High contrast mode support */
  @media (prefers-contrast: high) {
    .mobile-bottom-nav {
      border-top-width: 3px;
    }
    
    .nav-item.active {
      background: var(--accent);
      color: var(--section);
    }
  }
  
  /* Reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    .nav-item,
    .nav-cta,
    .gift-icon {
      transition: none;
      animation: none;
    }
  }
}

/* ===============================================
   EXISTING MOBILE RESPONSIVE STYLES
   =============================================== */

/* Mobile Navigation Styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--lavender);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced Social Links for Header */
.social-links {
  display: flex;
  gap: 0.8em;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.social-links img {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.social-links a:hover img {
  transform: scale(1.1);
}

/* Footer Brand Styles */
.footer-brand {
  grid-column: 1 / -1;
  margin-bottom: 1em;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 1em;
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: translateY(-2px);
}

.footer-logo img {
  height: 36px;
  width: auto;
  border-radius: 6px;
}

.footer-brand-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--lavender);
}

.footer-logo:hover .footer-brand-text {
  color: var(--accent);
}

.footer-description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  max-width: 300px;
}

/* Button Fixes for Mobile */
.btn-primary, .btn-secondary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
  min-height: 48px;
  box-sizing: border-box;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: center;
  justify-content: center;
}

/* CTA Button Fixes */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  align-items: center;
}

.cta-btn-primary, .cta-btn-secondary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
  min-height: 48px;
  box-sizing: border-box;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  align-items: center;
}

/* Questions Bar Button Fix */
.questions-bar-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
  min-height: 48px;
  box-sizing: border-box;
}

/* Print Styles */
@media print {
  .mobile-bottom-nav,
  .popup-overlay,
  #whatsapp-button {
    display: none !important;
  }
  
  body {
    padding-bottom: 0 !important;
  }
}
