/* Light mode styles (default) */
body {
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace; /* Apply Roboto Mono font */
    scroll-behavior: smooth; /* Smooth scrolling */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transitions */
  }
  
  h1, h2, h3, h4, h5, h6, p, a {
    font-family: 'Roboto Mono', monospace; /* Apply to all text */
    transition: color 0.3s ease; /* Smooth transitions for text color */
  }
  
  /* Full-screen landing page */
  .financial-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 0;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards; /* Fade in normally for section */
  }
  
  /* Thinner header */
  .header {
    position: relative;
    width: 100%;
    height: 35vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards; /* Header fades in with no movement */
  }
  
  /* Header image */
  .header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1; /* Behind content */
    animation: fadeIn 1.2s ease-out forwards; /* Image fades in with no movement */
  }
  
  /* UFinance logo with Roboto font */
  .logo-container h1 {
    color: #d80027; /* Vanguard red */
    font-size: 70px;
    margin-left: 20px;
    margin-bottom: 0;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards; /* Fade in from bottom */
    animation-delay: 0.5s; /* Slight delay for smooth transition */
    transition: color 0.3s ease;
  }
  
  /* Night mode button */
  .night-mode-toggle {
    position: absolute;
    top: 40vh; /* Positioned right under the picture */
    right: 20px;
    background-color: #d80027;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    z-index: 2; /* Ensure it's on top of the image */
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
    animation-delay: 0.7s;
  }
  
  /* Tagline styling */
  .tagline {
    color: #333; /* Default dark gray color */
    font-size: 22px;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
    animation-delay: 0.9s; /* Tagline appears after night mode button */
    transition: color 0.3s ease; /* Transition the color smoothly */
  }
  
  /* Button group for navigation */
  .button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards; /* Buttons fade in and slide up */
    animation-delay: 1.1s; /* Buttons appear last */
  }
  
  .button-inner {
    border-radius: 16px;
    background-color: #d80027; /* Vanguard red */
    color: white;
    padding: 17px 47px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  }
  
  /* On hover, increase shadow and slightly lift the button */
  .button-inner:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); 
    transform: translateY(-5px);
    background-color: #b3001b; /* Darker red on hover */
  }
  
  /* Dark mode styles */
  body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }
  
  body.dark-mode .logo-container h1 {
    color: #e0e0e0;
  }
  
  body.dark-mode .night-mode-toggle {
    background-color: #e0e0e0;
    color: #1a1a1a;
  }
  
  body.dark-mode .button-inner {
    background-color: #333;
    color: #e0e0e0;
  }
  
  body.dark-mode .tagline {
    color: #e0e0e0; /* Update slogan text to light color in dark mode */
  }
  
  /* Fade-in animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  /* Fade-in and slide-up animation */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px); /* Start from 20px below */
    }
    to {
      opacity: 1;
      transform: translateY(0); /* End at normal position */
    }
  }
  
  /* Responsive design for mobile devices */
  @media (max-width: 991px) {
    .header {
      font-size: 40px;
    }
  
    .logo-container h1 {
      font-size: 50px;
      margin-left: 15px;
    }
  
    .content-wrapper {
      max-width: 100%;
    }
  
    .tagline {
      max-width: 100%;
    }
  
    .button-group {
      margin-top: 40px;
    }
  
    .button-inner {
      padding: 10px 20px;
    }
  
    .night-mode-toggle {
      top: auto;
      bottom: 10px; /* Move the button to the bottom on small screens */
      right: 10px;
    }
  }
  