/* === GLOBAL & SETUP === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, html {
    width: 100%;
    height: 100%;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden; /* Prevent all scrolling */
  }
  body.light-mode .landing-header {
    color: #222;
  }
  body.light-mode .login-link {
    color: #222;
  }
  
  .hero-card {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* === VIDEO BACKGROUND & OVERLAY === */
  .video-background {
    background-image: url('images/pic1.jpg'); /* Sets your image */
    background-size: cover; /* Ensures it covers the whole screen */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    position: fixed; /* Keeps it in place on scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Places it behind all other content */
  }

  .header-logo {
    width: 80px; 
    flex-shrink: 0; /* Prevent logo from shrinking */
  }
  
  .video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.26); /* Dark blueish overlay. Change opacity (0.6) as needed. */
    /* z-index is not needed here, as the pseudo-element is part of the background */
  }
  
  /* === HEADER === */
  .landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem; /* Adjusted vertical padding for better alignment */
    z-index: 5;
    color: #fff;
    gap: 1rem;
  }
  
  .header-signin-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    box-shadow: none;
    border-width: 2px;
    flex-shrink: 0;
    margin-top: 0.9rem; /* Pushes the button down slightly */
  }
  
  .header-signin-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
  }
  
  .login-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .login-link i {
    font-size: 1.1rem;
  }
  
  /* === MAIN CONTENT & HERO CARD === */
  .landing-content {
    min-height: 100vh;
    padding: 2rem;
    color: #fff;
  }
  .hero-title {
    position: absolute;
    bottom: 2rem; /* Increased space from the bottom */
    right: 5rem; /* Position from the right */
    transform: none; /* Remove the horizontal transform */
    width: auto; /* Let the width be determined by the content */
    max-width: 1200px; /* Prevent it from getting too wide on large screens */
    text-align: right;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  }

  .hero-subtitle {
    position: absolute;
    bottom: 23rem; /* Pushed down */
    left: 5rem;
    font-family: "Montserrat", sans-serif;
    max-width: 800px;
    line-height: 2;
    color: #ffffff;
    text-shadow: 0 2px 15px rgb(0, 0, 0);
    font-size: 1.25rem; /* Slightly reduced for better balance */
  }
  
.hero-buttons {
    display: flex;
    position: absolute;
    bottom: 19rem; /* Pushed down */
    left: 4.5rem;
    gap: 2rem;
}
  
  /* === NEW HEADER FEATURES === */
  .header-features {
    flex-grow: 1; /* Allow it to take up available space in the header */
    text-align: center;
    font-size: 0.9rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.5px;
  }
  
  .feature-dot {
    margin: 0 0.75rem;
  }

  /* === CTA BUTTON === */
  .cta-button {
    display: inline-flex; /* Use flex for alignment */
    align-items: center;
    justify-content: center;
    background: #015aff;
    width: 9rem;
    height: 3.1rem;
    color: #fff;
    padding: 1rem 1.5rem; /* Soft rounded edges */
    border-radius: 24px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: "Montserrat", sans-serif; /* Match subtitle font */
    letter-spacing: 0.6px; /* Adds a professional touch */
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 0 15px rgba(69, 134, 253, 0.547), 0 0 25px rgba(255, 255, 255, 0.607); /* Glow effect */
  }

  .cta-button2 {
    display: inline-flex; /* Use flex for alignment */
    align-items: center;
    justify-content: center;
    background: #015aff00;
    width: 9rem;
    height: 3.1rem;
    color: #fff;
    padding: 1rem 1.5rem; /* Soft rounded edges */
    border-radius: 24px;
    border-color: white;
    border: 2.3px solid white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: "Montserrat", sans-serif; /* Match subtitle font */
    letter-spacing: 0.6px; /* Adds a professional touch */
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.449), 0 0 1px rgb(57, 73, 252); /* Glow effect */
  }

  .cta-button.secondary {
    background: transparent;
    border: 2px solid #fff;
    box-shadow: none;
  }
  
  .cta-button:hover {
    background: linear-gradient(45deg, #015aff, #012a76);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(80, 136, 239, 0.6), 0 0 30px rgba(255, 255, 255, 0.5);
  }
  
  /* === THEME SWITCH (Copied from your original, slightly adjusted) === */
  .switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f4f4f5;
    transition: 0.4s;
    border-radius: 30px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    border-radius: 50%;
    left: 0.3em;
    bottom: 0.3em;
    background-color: #2c2c2c;
    transition: 0.4s;
  }
  
  .switch input:checked + .slider {
    background-color: #377dff;
  }
  
  .switch input:checked + .slider:before {
    transform: translateX(1.5em);
    background-color: #ffcf48;
  }
  
  /* === RESPONSIVENESS === */
  @media (max-width: 1024px) { /* Tablet and smaller */
    .header-logo {
      width: 70px; /* Smaller logo */
    }
    .header-features {
      display: none; /* Hide features on tablet */
    }
    /* --- Adjust Absolute Positioning for Tablet --- */
    .hero-subtitle {
      left: 50%;
      transform: translateX(-50%);
      bottom: 50vh; /* Position from the bottom */
      text-align: center;
      width: 90%;
      max-width: 500px;
      font-size: 1.2rem;
    }
    .hero-buttons {
      flex-direction: column; /* Stack buttons vertically */
      align-items: center;
      left: 50%;
      transform: translateX(-50%);
      bottom: calc(50vh - 130px); /* Position relative to the subtitle */
      justify-content: center;
      gap: 1rem;
    }
    .hero-title {
      font-size: 3.5rem;
      text-align: center;
      bottom: 8rem; /* Matched desktop value */
    }
  }

  @media (max-width: 768px) {
    .landing-header {
      justify-content: space-between; /* Logo left, button right */
    }
    .header-features {
      display: none; /* Hide features on mobile */
    }

    .header-logo {
      margin-top: 0; /* Remove top margin on mobile */
    }

    /* --- Further Adjustments for Mobile --- */
    .hero-title {
      font-size: 2.2rem; /* Smaller title to fit more words */
      bottom: 1rem; /* Pushed title lower */
      width: auto; /* Adjust width to content */
      max-width: 90%;
      left: auto; /* Unset left property */
      right: 1.5rem; /* Position block on the right */
      transform: none; /* Remove centering transform */
      text-align: right; /* Align text to the left */
    }
    .hero-subtitle {
      font-size: 0.9rem; /* Reduced subtitle size */
      text-align: center; /* Smaller subtitle on mobile */
      left: 50%;
      bottom: 45vh;
      transform: translateX(-50%); /* Keep transform for centering */
    }
    .hero-buttons {
      flex-direction: row; /* Ensure buttons are side-by-side */
      bottom: calc(46vh - 80px); /* Position below the subtitle */
      left: 50%;
      transform: translateX(-50%); /* Keep transform for centering */
      gap: 1rem; /* Reduce gap for mobile */
    }
    .cta-button, .cta-button2 {
      width: 7rem; /* Further reduced button width */
      height: 2.5rem; /* Further reduced button height */
      font-size: 0.7rem; /* Further reduced button text */
      padding: 0.6rem 1rem;
      border-radius: 20px;
    }
  }