/* =================================Mobile Responsive Styles========================= */

/* Ensure mobile menu is properly styled and functional */
.nav-open-btn {
  display: block !important;
}

.nav-close-btn {
  display: block !important;
}

.overlay {
  display: none !important; /* hidden by default; shown only when .active is added */
}

/* Hide the hamburger icon on desktop */
@media (min-width: 992px) {
  .nav-open-btn {
    display: none !important;
  }
}

/* Mobile First Approach - Base styles for mobile */
@media (max-width: 768px) {
  
  /* Header Mobile Styles */
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    transition: all 0.3s ease !important;
  }

  .header-top {
    position: relative !important;
    background: transparent !important;
  }

  .header-top .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px !important;
    grid-template-columns: none !important;
  }

  .header-top .logo {
    margin: 0 !important;
  }

  .header-top .logo img {
    max-width: 50px !important;
    height: auto !important;
  }

  .header-btn-group {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .nav-open-btn {
    font-size: 24px !important;
    padding: 10px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .nav-open-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05) !important;
  }

  /* Mobile Navigation Menu */
  .navbar {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 300px !important;
    height: 100vh !important;
    background: white !important;
    padding: 20px !important;
    transition: right 0.3s ease !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3) !important;
    z-index: 1001 !important;
    overflow-y: auto !important;
  }

  .navbar.active {
    right: 0 !important;
  }

  .navbar-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #eee !important;
  }

  .navbar-top .logo img {
    width: 80px !important;
  }

  .nav-close-btn {
    font-size: 24px !important;
    color: #333 !important;
    background: none !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .nav-close-btn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
  }

  .navbar-list {
    margin-top: 0 !important;
    list-style: none !important;
    padding: 0 !important;
  }

  .navbar-list li {
    margin-bottom: 5px !important;
  }

  .navbar-link {
    font-size: 16px !important;
    padding: 15px 0 !important;
    color: #333 !important;
    text-decoration: none !important;
    display: block !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
  }

  .navbar-link:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #007bff !important;
    padding-left: 10px !important;
  }

  .overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 999 !important;
  }

  .overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Hero Section Mobile Styles */
  .hero-section {
    padding-top: 80px !important; /* reduced padding since header is transparent */
    min-height: 100vh !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    z-index: 1 !important;
  }

  /* Remove dark decorative overlays on mobile */
  .cosmos-background-pattern {
    display: none !important;
  }

  .background::before,
  .background::after {
    content: none !important;
    background: transparent !important;
  }

  .Container-fluid {
    padding: 20px 15px !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    z-index: 2 !important;
    background: transparent !important;
  }

  .allow-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 30px !important;
    flex: 1 !important;
    margin-top: 40px !important;
  }

  .phoenix-left-section {
    flex: 1 !important;
    max-width: 100% !important;
    color: white !important;
    position: relative !important;
    z-index: 3 !important;
    background: transparent !important;
  }

  .phoenix-right-section {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: 100% !important;
  }

  .storm-main-title {
    font-size: 28px !important;
    font-weight: 500 !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
  }

  .thunder-sub-title {
    font-size: 32px !important;
    font-weight: bold !important;
    color: #F5DEB3 !important;
    margin-bottom: 15px !important;
    line-height: 1.1 !important;
  }

  .lightning-tagline {
    font-size: 28px !important;
    font-weight: 550 !important;
    margin-bottom: 25px !important;
    line-height: 1.2 !important;
  }

  .breeze-description {
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 35px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 100% !important;
  }

  .river-button-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .stream-primary-btn,
  .stream-secondary-btn {
    padding: 14px 28px !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: 2px solid transparent !important;
    width: 100% !important;
    max-width: 280px !important;
    justify-content: center !important;
  }

  .stream-primary-btn {
    background: rgba(139, 69, 19, 0.9) !important;
    color: white !important;
    border-color: rgba(139, 69, 19, 0.9) !important;
  }

  .stream-secondary-btn {
    background: transparent !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
  }

  .galaxy-book-container {
    position: relative !important;
    transform: none !important;
    transition: transform 0.3s ease !important;
    max-width: 280px !important;
  }

  .galaxy-book-container img {
    width: 280px !important;
    height: 420px !important;
    border-radius: 10px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    filter: brightness(1.1) contrast(1.1) !important;
  }

  /* Adjust main content for fixed header */
  main {
    margin-top: 80px !important;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .navbar {
    width: 100% !important;
    right: -100% !important;
  }

  .header-top .container {
    padding: 12px 15px !important;
  }

  .header-top .logo img {
    max-width: 45px !important;
  }

  .nav-open-btn {
    font-size: 20px !important;
    padding: 8px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .navbar-top .logo img {
    width: 70px !important;
  }

  .navbar-link {
    font-size: 15px !important;
    padding: 12px 0 !important;
  }

  .hero-section {
    padding-top: 90px !important;
  }

  .Container-fluid {
    padding: 15px 10px !important;
  }

  .allow-content-wrapper {
    margin-top: 30px !important;
    gap: 25px !important;
  }

  .storm-main-title {
    font-size: 24px !important;
  }

  .thunder-sub-title {
    font-size: 26px !important;
  }

  .lightning-tagline {
    font-size: 22px !important;
  }

  .breeze-description {
    font-size: 14px !important;
    margin-bottom: 30px !important;
  }

  .stream-primary-btn,
  .stream-secondary-btn {
    padding: 12px 24px !important;
    font-size: 14px !important;
    max-width: 260px !important;
  }

  .galaxy-book-container img {
    width: 240px !important;
    height: 360px !important;
  }

  main {
    margin-top: 70px !important;
  }
}

/* Extra Small Devices */
@media (max-width: 320px) {
  .header-top .container {
    padding: 10px 12px !important;
  }

  .header-top .logo img {
    max-width: 40px !important;
  }

  .nav-open-btn {
    font-size: 18px !important;
    padding: 6px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .navbar {
    padding: 15px !important;
  }

  .navbar-top .logo img {
    width: 60px !important;
  }

  .navbar-link {
    font-size: 14px !important;
    padding: 10px 0 !important;
  }

  .hero-section {
    padding-top: 80px !important;
  }

  .Container-fluid {
    padding: 10px 8px !important;
  }

  .storm-main-title {
    font-size: 20px !important;
  }

  .thunder-sub-title {
    font-size: 22px !important;
  }

  .lightning-tagline {
    font-size: 18px !important;
  }

  .breeze-description {
    font-size: 13px !important;
  }

  .stream-primary-btn,
  .stream-secondary-btn {
    padding: 10px 20px !important;
    font-size: 13px !important;
    max-width: 240px !important;
  }

  .galaxy-book-container img {
    width: 200px !important;
    height: 300px !important;
  }

  main {
    margin-top: 60px !important;
  }
}

/* Landscape Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    padding-top: 80px !important;
  }

  .Container-fluid {
    padding: 15px 20px !important;
  }

  .allow-content-wrapper {
    flex-direction: row !important;
    gap: 20px !important;
    margin-top: 20px !important;
  }

  .phoenix-left-section {
    flex: 1.2 !important;
  }

  .phoenix-right-section {
    flex: 0.8 !important;
  }

  .storm-main-title {
    font-size: 24px !important;
  }

  .thunder-sub-title {
    font-size: 26px !important;
  }

  .lightning-tagline {
    font-size: 22px !important;
  }

  .breeze-description {
    font-size: 14px !important;
    margin-bottom: 20px !important;
  }

  .river-button-group {
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  .stream-primary-btn,
  .stream-secondary-btn {
    width: auto !important;
    max-width: none !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
  }

  .galaxy-book-container img {
    width: 180px !important;
    height: 270px !important;
  }
}
