:root {
  --maroon: #800000;
  --blue: #003366;
  --light-blue: #e0f0ff;
  --black: #000000;
  --white: #ffffff;
}

header {
  background-color: var(--maroon);
  color: var(--white);
}

button {
  background-color: var(--maroon);
}

nav a {
  color: var(--white);
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: var(--blue);
}

main {
  padding: 2rem;
}

h1, h2 {
  color: var(--maroon);
}

button {
  background-color: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #3B82F6; /* Lighter blue */
}

footer {
  background-color: var(--black);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  position: fixed;
  bottom: 0;
  width: 100%;
}
.chat-box {
  border: 1px solid var(--maroon);
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  max-width: 600px;
  margin: auto;
}
.message-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
}
.chat-form input[type="text"] {
  width: 60%;
  padding: 0.5rem;
  margin-right: 5px;
}
.chat-form input[type="file"] {
  margin-right: 5px;
}
.chat-form button {
  background-color: var(--blue);
}
.match-card {
  border: 1px solid var(--maroon);
  padding: 1rem;
  border-radius: 10px;
  width: 300px;
  margin: 1rem auto;
  text-align: center;
  background-color: #fff;
}
.match-card img {
  border-radius: 50%;
}
.match-card button {
  margin: 0.5rem;
}
.plan {
  border: 2px solid var(--blue);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 400px;
  background-color: #f1f1f1;
  text-align: center;
}
.plan h3 {
  color: var(--maroon);
}
.profile-card {
  text-decoration: none;
  color: var(--black);
  transition: transform 0.2s;
}
.profile-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.success-stories {
  background-color: var(--blue);
  color: var(--white);
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
}

.stories-row {
  display: flex;
  gap: 20px;
  align-items: start;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.story {
  min-width: 250px;
  flex: 0 0 auto;
  background-color: var(--blue);
}

.divider-light {
  width: 4px;
  background-color: #7ab8ff; /* light blue */
  border-radius: 10px;
}
/* ========== Mobile Responsive Layout ========== */
@media (max-width: 768px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }
  
  .browse-container,
  .chat-container {
    flex-direction: column !important;
    align-items: center;
  }
  
  .match-card {
    width: 90%;
    max-width: 350px;
  }
  
  .auth-container {
    width: 90%;
    margin: 2rem auto;
  }
  
  .chat-input {
    flex-direction: column;
    gap: 10px;
    padding: 1rem;
  }
  
  .chat-input input,
  .chat-input button {
    width: 100%;
  }
  
  main {
    padding: 1rem;
  }
}
header img {
  height: 50px;
  max-width: 100%;
}
#loginModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#loginModal.show {
  display: flex;
  opacity: 1;
}

#loginModal .modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 300px;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.find-match-btn {
  background-color: #800000;
  color: white;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin: 1rem auto;
  display: block;
  box-shadow: 0 0 10px rgba(128, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  animation: pulse 2.5s infinite;
}

.find-match-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(128, 0, 0, 0.5);
}

.find-match-btn {
  background-color: #800000;
  color: white;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin: 1rem auto;
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn 1s ease-out forwards, pulse 2.5s infinite 2s;
  box-shadow: 0 0 10px rgba(128, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.find-match-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(128, 0, 0, 0.5);
}

/* Glowing pulse animation */
@keyframes pulse {
  0% { box-shadow: 0 0 8px rgba(128, 0, 0, 0.3); }
  50% { box-shadow: 0 0 20px rgba(128, 0, 0, 0.6); }
  100% { box-shadow: 0 0 8px rgba(128, 0, 0, 0.3); }
}

/* Fade and slide-in animation */
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}.profile-card {
  background: #fff;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 1rem;
  width: 220px;
  min-height: 320px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}
.profile-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.card-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.logo-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-bar img {
  height: 50px;
}
.logo-bar h1 {
  font-size: 2rem;
  margin: 0;
  color: white;
  font-weight: bold;
}
header {
  background: #800000;
  color: white;
  padding: 1rem;
}
header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
nav {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}
nav a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}
@media (max-width: 768px) {
  .logo-bar h1 {
    font-size: 1.5rem;
  }
  nav {
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
    flex-wrap: wrap;
  }
  header > div {
    flex-direction: column;
    align-items: flex-start;
  }
}