/* For wide screens up to 1201px */
@media screen and (max-width: 1201px) {
  h1 {
    font-size: 5rem; /* Larger font size for heading */
    line-height: 1.6; /* Increased line height for better readability */
  }
}

/* For medium screens up to 1025px */
@media screen and (max-width: 1025px) {
  .nav {
    padding: 1rem; /* Uniform padding around navigation */
  }

  .nav__link--btn {
    font-size: 1.3rem; /* Larger font size for nav buttons */
  }

  .features {
    margin: 0 6rem; /* Horizontal margin to center features */
  }

  nav {
    flex-direction: column; /* Stack nav items vertically */
    gap: 3rem; /* Space between nav items */
    margin-top: 2rem; /* Top margin for nav */
  }

  .login__input {
    width: 40rem; /* Set width for login input */
    padding: 3rem; /* Padding inside login input */
  }

  .login__input::placeholder {
    font-size: 2rem; /* Font size for placeholder in login input */
  }

  .login__btn {
    font-size: 4rem; /* Larger font size for login button */
  }

  .app {
    grid-template-columns: 50% 1fr; /* Two-column layout for app */
    width: 95%; /* Full width minus some margin */
  }

  .movements__row {
    justify-content: space-between; /* Space out elements in row */
  }
}

/* For small screens up to 750px */
@media screen and (max-width: 750px) {
  header {
    position: relative; /* Relative positioning for header */
  }

  .header__title {
    grid-template-columns: 1fr; /* Single column for title */
  }

  .features {
    margin: 0 1rem; /* Reduced margin for features */
    gap: 1rem; /* Smaller gap in features */
    align-items: center; /* Center items vertically */
  }

  .features__feature {
    width: 100%; /* Full width for each feature */
  }

  .feature-one,
  .feature-two,
  .feature-three {
    gap: 2rem; /* Consistent gap for these feature items */
    align-items: center; /* Center items vertically */
  }

  .operations__content {
    padding: 2rem 4rem; /* Padding around operations content */
  }

  .testimonial {
    width: 75%; /* Width for testimonials */
  }

  .cookie-message button {
    font-size: 1.2rem; /* Font size for cookie message button */
  }

  .nav__links {
    display: none; /* Hide navigation links */
  }

  .hamburger {
    display: inline-block; /* Show hamburger icon */
    width: 5rem; /* Set width for hamburger icon */
    cursor: pointer; /* Pointer cursor for clickability */
  }

  .nav__links.active,
  .nav__links.active-sticky {
    position: absolute; /* Absolute positioning for mobile menu */
    display: flex; /* Display flex for layout */
    flex-direction: column; /* Stack items vertically */
    top: 10%; /* Top position */
    left: 0;
    right: 0;
    background-color: #f3f3f3; /* Light grey background */
    padding: 2rem; /* Padding around content */
    z-index: 997; /* High z-index to be on top */
  }

  .nav__links.active-sticky {
    top: 80%; /* Adjust top position for sticky variant */
    background-color: rgba(
      255,
      255,
      255,
      0.95
    ); /* Slightly transparent white */
  }

  .app {
    grid-template-columns: 1fr; /* Single column layout for app */
    grid-template-rows: 1fr; /* Single row layout */
  }

  .balance {
    grid-column: 1 / span 1; /* Full width */
  }
}

/* For extra small screens up to 600px */
@media screen and (max-width: 600px) {
  .features {
    grid-template-columns: 1fr; /* Full width single column for features */
  }

  .feature-one,
  .feature-two,
  .feature-three {
    display: flex; /* Enable flex for layout */
  }

  .feature-one,
  .feature-three {
    flex-direction: column; /* Stack children vertically */
  }

  .feature-two {
    flex-direction: column-reverse; /* Stack children but in reverse order */
  }

  .operations__tab-container {
    flex-direction: column; /* Stack tabs vertically */
    gap: 1.5rem; /* Gap between tabs */
  }

  .operations__tab {
    margin: initial; /* Reset any specific margin */
  }

  .operations__tab--active {
    box-shadow: -2px 10px 24px -11px rgba(0, 0, 0, 0.62); /* Shadow for active tab */
  }

  .slider {
    display: none; /* Hide slider at this breakpoint */
  }

  .cookie-message button,
  .cookie-message {
    font-size: 0.8rem; /* Smaller font size for cookie message */
  }

  .login__input {
    width: 30rem; /* Narrower input field */
    padding: 3rem; /* Padding remains the same */
  }

  .app {
    justify-content: center; /* Center content horizontally */
    justify-items: center; /* Center items */
    grid-template-columns: 90%; /* Narrower grid columns */
    margin: 0 auto; /* Center grid horizontally */
  }

  .balance {
    flex-direction: column; /* Stack balance info vertically */
    align-items: center; /* Center align balance items */
  }

  .summary {
    flex-direction: column; /* Stack summary info vertically */
    align-items: center; /* Center align summary items */
    gap: 2rem; /* Gap between summary items */
  }

  .summary__label {
    font-size: 2rem; /* Larger font size for summary labels */
  }

  .btn--sort {
    margin-left: initial; /* Reset left margin */
    font-size: 2rem; /* Larger font size for sort button */
  }

  .movements__row {
    padding: 2rem; /* Padding around each movement row */
  }
}
