/* ==========================================================================
   Default Styles (Mobile-First)
   These styles are applied by default, for mobile devices
   ========================================================================== */

html {
  font-size: 55%; /* Default base font size for mobile */
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #444;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* --- Reusable Styles (Apply to all screen sizes) --- */

/* Headings */
h1,
h2,
h3,
h4 {
  font-weight: 500;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.6rem;
}

/* Paragraphs and Lists */
p {
  font-size: 1.4rem;
  line-height: 1.6;
}

ul,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit; /* Inherit color from parent */
}

img {
  max-width: 100%; /* Responsive images */
  height: auto;
  display: block; /* Remove extra space below image */
}

button {
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-size: 1.6rem;
  background-color: #0c025d;
  color: #7ffd00;
  cursor: pointer;
  border: 1px solid #f57c00;
  box-shadow: 0.5rem 0.5rem 1rem rgba(0, 0, 0, 0.2); /* Reduced shadow */
}

button:hover {
  background-color: #000000;
  transform: scale(1.05); /* Subtle scale on hover */
  transition: all 0.2s;
}

@media (max-width: 50em) {
  /* --- Page 1 Styles --- */

  .intro-section {
    background-image: url(img/hero_img.png);
    background-size: cover;
    height: auto;
    padding-bottom: 2rem;
  }

  /* Navigation */
  .intro-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: #b6c1cc;
  }

  .logo {
    max-width: 80%; /* Scale logo */
    height: auto;
    margin-bottom: 1rem;
  }

  .intro-heading {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
  }

  .explore {
    position: relative;
    width: 100%; /* Full width for button */
  }

  #dropdownButton {
    width: 100%;
  }

  /* Dropdown Menu */
  .dropdown-menu {
    display: none; /* Initially hidden */
    width: 100%;
    background-color: rgba(51, 51, 51, 0.9); /* Darker background */
    padding: 0.5rem;
    text-align: center;
  }

  .dropdown-menu a {
    color: #f57c00;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    font-size: 1.4rem;
  }

  .dropdown-menu a:hover {
    background-color: rgba(119, 119, 119, 0.5); /* Slightly lighter on hover */
  }

  /* Header */
  .intro-header {
    padding: 2rem;
    text-align: center;
  }

  .tagline {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
  }

  .cta {
    display: block; /* Full width button */
    width: 100%;
    margin-top: 1rem;
  }

  /* Features */
  .features {
    display: flex;
    flex-direction: column; /* Stack features */
    padding: 1rem;
  }

  .feature-1,
  .feature-2 {
    width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
    box-shadow: 0.2rem 0.2rem 1rem rgba(0, 0, 0, 0.1); /* Subtle shadow */
    background-color: #fdfcf9;
  }

  .feature-heading {
    font-size: 2rem;
    font-weight: 500;
    color: #e2edfc;
  }

  .features-list {
    color: #d5c694;
    padding-left: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
  }

  .icons {
    height: 1.8rem;
    width: 1.8rem;
    color: #f57c00;
    margin-right: 0.5rem;
  }

  li {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  /* --- Page 2 Styles --- */

  .features-page {
    background-color: #eadba7;
    padding: 1rem;
  }

  .details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .features-1,
  .AI,
  .features-3 {
    width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
    box-shadow: 0.2rem 0.2rem 1rem rgba(0, 0, 0, 0.1);
    background-color: #fdfcf9;
  }

  .AI {
    order: 2;
  }

  .chatBox {
    height: 200px;
  }

  .features-heading {
    font-size: 2rem;
    font-weight: 500;
    color: #0c025d;
  }

  .features-content {
    cursor: pointer;
  }

  .features-link:link,
  .features-link:visited {
    text-decoration: none;
    color: #000;
    font-size: 1.6rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
  }

  .features-link:hover,
  .features-link:active {
    color: #0c025d;
    font-size: 1.6rem;
    font-weight: 400;
  }

  /* --- Page 3 Styles --- */

  .page-3 {
    background-color: #f3f3f3;
    padding: 1rem;
  }

  .transaction-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .welcome {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }

  .logo {
    height: 6rem;
    margin-bottom: 1rem;
  }

  .login {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .login__input {
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.4rem;
    font-family: inherit;
    text-align: center;
    width: 80%;
    border-radius: 10rem;
    margin-bottom: 0.5rem;
    color: inherit;
    border: 1px solid #fff;
    transition: all 0.3s;
  }

  .login__input:focus {
    outline: none;
    border: 1px solid #ccc;
  }

  .login__input::placeholder {
    color: #bbb;
  }

  .login__btn {
    border: none;
    background: none;
    font-size: 2rem;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s;
  }

  .login__btn:hover,
  .login__btn:focus,
  .btn--sort:hover,
  .btn--sort:focus {
    outline: none;
    color: #777;
  }

  /* MAIN */
  .app {
    position: relative;
    max-width: 100rem;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transition: all 1s;
  }

  .balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
  }

  .balance__label {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
  }

  .balance__date {
    font-size: 1.2rem;
    color: #888;
  }

  .balance__value {
    font-size: 3rem;
    font-weight: 400;
  }

  /* MOVEMENTS */
  .movements {
    background-color: #fff;
    border-radius: 1rem;
    overflow-x: auto;
    max-height: 300px;
  }

  .movements__row {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #eee;
  }

  .movements__type {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
    color: #fff;
    padding: 0.1rem 0.5rem;
    border-radius: 10rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
  }

  .movements__date {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.5rem;
  }

  .movements__value {
    font-size: 1.4rem;
    margin-left: auto;
    margin-bottom: 0.5rem;
  }

  .movements__type--deposit {
    background-image: linear-gradient(to top left, #39b385, #9be15d);
  }

  .movements__type--withdrawal {
    background-image: linear-gradient(to top left, #e52a5a, #ff585f);
  }

  /* SUMMARY */
  .summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    margin-top: 1rem;
  }

  .summary__label {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-right: 0;
    margin-bottom: 0.3rem;
  }

  .summary__value {
    font-size: 1.8rem;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .summary__value--in,
  .summary__value--interest {
    color: #66c873;
  }

  .summary__value--out {
    color: #f5465d;
  }

  .btn--sort {
    margin-left: 0;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
  }

  /* OPERATIONS */
  .operation {
    border-radius: 1rem;
    padding: 1.5rem;
    color: #333;
  }

  .operation--transfer {
    background-image: linear-gradient(to top left, #ffb003, #ffcb03);
  }

  .operation--loan {
    background-image: linear-gradient(to top left, #39b385, #9be15d);
  }

  .operation--close {
    background-image: linear-gradient(to top left, #e52a5a, #ff585f);
  }

  h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
  }

  .form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form__input {
    width: 80%;
    border: none;
    background-color: rgba(255, 255, 255, 0.4);
    font-family: inherit;
    font-size: 1.4rem;
    text-align: center;
    color: #333;
    padding: 0.3rem 1rem;
    border-radius: 0.7rem;
    transition: all 0.3s;
    margin: 0 auto;
  }

  .form__input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.6);
  }

  .form__label {
    font-size: 1.2rem;
    text-align: center;
  }

  .form__btn {
    border: none;
    border-radius: 0.7rem;
    font-size: 1.6rem;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 auto;
    display: block;
    width: 80%;
  }

  .form__btn:focus {
    outline: none;
    background-color: rgba(255, 255, 2);
  }
}
