/* assets/css/global.css */

/* 1. Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Prompt', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  scroll-behavior: smooth;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 2. Dark Mode */
.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}
.dark-mode .hero-section .overlay {
  background: rgba(0,0,0,0.6);
}
.dark-mode .card,
.dark-mode footer,
.dark-mode .navbar {
  background-color: #1e1e1e !important;
}
.dark-mode .card-body,
.dark-mode .card-header,
.dark-mode .navbar,
.dark-mode footer {
  color: #e0e0e0;
}
.dark-mode .btn-login {
  background-color: #ffc30f;
  color: #1a1a1a;
}
.dark-mode .btn-login:hover {
  background-color: #ffdd57;
}

/* Dark mode: footer text */
.dark-mode footer .text-muted {
  color: #e0e0e0 !important;
}

/* 3. Navbar */
.navbar {
  background-color: #ffffff !important;
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
}

/* 4. Hero Section */
.hero-section {
  position: relative;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  background-color: #6c63ff;
  background-blend-mode: overlay;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-section .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}

/* 5. Typing Effect */
#typed-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: .15em solid #ffc30f;
  vertical-align: bottom;
}
.hero-section h1 {
  min-height: 1.2em;
  line-height: 1.2em;
}
@keyframes blinkCursor {
  0%, 100% { border-color: transparent; }
  50%      { border-color: #ffc30f; }
}
#typed-text.typing {
  animation: blinkCursor 0.7s steps(1) infinite;
}

/* 6. Buttons */
.btn-login {
  background-color: #ffc30f;
  color: #4834d4;
  font-weight: 600;
  padding: .75rem 2rem;
  transition: background-color .3s ease;
}
.btn-login:hover,
.btn-login:focus {
  background-color: #ffdd57;
  color: #4834d4;
  text-decoration: none;
}

/* 7. Features Icons */
.features-icons {
  margin-top: 2rem;
}
.features-icons i {
  font-size: 2rem;
  color: #ffc30f;
}
.features-icons p {
  margin: .5rem 0 0;
  font-weight: 500;
}

/* 8. Package Cards */
.package-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.package-card .card-header {
  border-bottom: none;
}
.package-card .card-header h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* 9. Main Layout */
main.container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* 10. Back-to-Top Button */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #6c63ff;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1040;
  transition: background-color .3s ease;
}
#backToTop:hover {
  background-color: #574bc3;
}

/* 11. Footer */
footer {
  background-color: #ffffff;
  border-top: 1px solid #e9ecef;
  padding: 1.5rem 0;
}
footer .text-muted {
  font-size: .875rem;
}

/* 12. Responsive Tweaks */
@media (max-width: 767.98px) {
  .hero-section {
    height: auto;
    padding: 4rem 1rem;
  }
  #typed-text {
    font-size: 1.75rem;
  }
}

/* 13. Fluid / Responsive Typography */
/* Hero typed headline */
#typed-text {
  font-size: clamp(2rem, 6vw, 4rem);
}
.hero-section .lead {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
}
/* Package card titles and prices */
.package-card .card-header h5 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}
.package-card .card-body h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
.package-card .list-unstyled li {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}
/* Features icons */
.features-icons i {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
.features-icons p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* 14. Extra Mobile Button Sizing */
@media (max-width: 575.98px) {
  .btn-login {
    padding: .5rem 1.5rem;
    font-size: .9rem;
  }
}
