/********** common setting **********/
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.2rem !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto; /* Ensure images maintain aspect ratio */
}

a, button {
  cursor: pointer;
}

.jumbotron {
  margin-bottom: 0 !important;
  padding: 2rem 1rem; /* Better padding for mobile */
}

.atlas-cta {
  border-radius: 22px !important;
  padding: 12px 30px !important;
  font-weight: 700;
  transition: .3s ease-in-out !important;
  display: inline-block; /* Better button behavior */
}

.atlas-cta:hover {
  text-decoration: none;
  transform: translateY(-5px);
}

.atlas-cta-wide {
  width: 100%;
}

.cta-green {
  background: #00FFAD;
  color: #192440;
}

.cta-green:hover {
  color: #ffffff;
  background: #00e69c;
}

.cta-blue {
  background: #192440;
  color: #ffffff;
}

.cta-blue:hover {
  color: #ffffff;
  background: #121a2e;
}

.cta-ghost {
  border: 2px solid #192440 !important;
  color: #192440;
}

.cta-ghost:hover {
  color: #ffffff;
  background: #121a2e;
}

#banner {
  background-size: cover;
  background-position: center; /* Better background positioning */
}

/********** banner **********/
#banner header {
  overflow: hidden;
}

#banner header img {
  max-width: 80px;
}

#banner .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/********** feature (skew background) **********/
.feature img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto; /* Center images */
}

#feature-first {
  background: linear-gradient(168deg, #ffffff 55%, #00FFAD 0);
}

#feature-last {
  background: #00FFAD;
}

/********** price table **********/
#price-table {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

#price-table__premium {
  background: #192440;
  color: #ffffff;
}

#price-table ul li {
  padding: 5px 0;
}

/********** contact **********/
#contact {
  background-size: cover;
  background-position: center;
}

#contact ul li {
  padding: 3px 0;
}

#contact form {
  color: #00FFAD;
}

#contact form input,
#contact form textarea {
  background: transparent;
  border: 1px solid #00FFAD;
  color: #ffffff;
}

/********** copyright **********/
#copyright {
  background: #192440;
  padding: 1.5rem;
}

#copyright #social-media a {
  width: 40px;
  height: 40px;
  border-radius: 99%;
  background: #ffffff;
  transition: .4s ease;
  margin: 0 5px;
}

#copyright #social-media a i {
  color: #192440;
  font-size: 1.2rem;
  line-height: 40px;
}

#copyright #social-media a:hover {
  background: #00FFAD;
}

#copyright #social-media a:hover i {
  color: #ffffff;
}

/********** RWD Improvements **********/
@media (max-width: 1199.98px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 991.98px) {
  /* Adjust banner layout for tablets */
  #banner .row {
    flex-direction: column;
  }
  #banner .col-md-4 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem !important;
  }
  
  /* Banner adjustments */
  #banner {
    min-height: auto;
    padding: 3rem 0;
  }
  
  /* Feature sections stack on mobile */
  .feature .row {
    flex-direction: column-reverse;
  }
  .feature .col-md-6 {
    margin-bottom: 2rem;
  }
  
  /* Contact section stacks on mobile */
  #contact .row {
    flex-direction: column;
  }
  #contact .col-md-6:first-child {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.4rem !important;
  }
  
  /* Adjust padding for small devices */
  .jumbotron {
    padding: 1.5rem 0;
  }
  
  /* Smaller buttons on mobile */
  .atlas-cta {
    padding: 8px 20px !important;
  }
  
  /* Center align text on mobile */
  .text-center-mobile {
    text-align: center !important;
  }
  
  /* Hide large logo on mobile */
  #banner .col-md-4.d-none.d-md-block {
    display: none !important;
  }
}

/* Utility classes for responsive spacing */
.mobile-mt-3 {
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .mobile-mt-3 {
    margin-top: 0;
  }
}