/* Main CSS for Lendly - Your Campus Companion */
:root {
  --primary: #ff751f;
  --secondary: #001b3d;
  --accent-green: #27ae60;
  --dark: #2c3e50;
  --light: #f9fafb;
}

/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
body {
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
}

/* --- Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background: var(--secondary);
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-weight: 800;
  font-size: 2rem;
  color: white;
  display: flex;
  align-items: center;
  margin-left: 5px;
}

.logo a {
  text-decoration: none;
  color: white;
  display: flex;
  gap: 15px;
}

.logo a:hover {
  transition: 0.3s ease-in-out;
  color: var(--primary); /* Green accent on hover */
}

.main-logo {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  transition: 0.3s ease-in-out;
  color: var(--primary);
}

.btn-login {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn-login:hover {
  background-color: var(--secondary);
  border-radius: 8px;
  border: 1px solid var(--primary);
  transition: 0.5s ease-in-out;
}

span.highlight {
  color: var(--primary);
  font-weight: 800;
}

/* --- hero-description --- */
.hero-description {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #ecf0f1;
}

/* ---btn - primary---*/
.btn-primary {
  margin-top: 20px;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.btn-primary a {
  color: white;
  text-decoration: none;
}
.btn-primary:hover {
  border: 1px solid white;
  transition: 0.5s ease-in-out;
  background-color: transparent;
  color: white;
}
/* ---btn - secondary---*/
.btn-secondary {
  background-color: transparent;
  color: white;
  border: 1px solid var(--primary);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.btn-secondary a {
  color: white;
  text-decoration: none;
}
.btn-secondary:hover {
  background-color: var(--primary);
  color: white;
  transition: 0.5s ease-in-out;
}

/* --- Hero & Carousel (Fixed Stacking) --- */
.hero-carousel-container {
  position: relative;
  width: 100%;
  height: 70vh; /* Reduced height so users see the cards below */
  background: #000;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
}
.carousel-slide.active {
  opacity: 1;
  transition: opacity 1s;
}

#transitionCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 40, 80, 0.7) 0%,
    rgba(46, 204, 113, 0.3) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  color: white;
}

/* --- Service Cards (The Original Look) --- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 80px 10%;
  background: var(--light);
}

.card {
  border-top: 6px solid var(--primary);
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.srhr-highlight {
  border-top: 6px solid var(--secondary);
  cursor: pointer;
}
.basket-highlight {
  border-top: 6px solid var(--accent-green);
  cursor: pointer;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* --- Footer Styles --- */
.main-footer {
  background-color: var(--secondary);
  color: #ecf0f1;
  padding: 60px 10% 20px;
  margin-top: 50px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
}

.footer-logo a {
  text-decoration: none;
  color: white;
}

.footer-logo a:hover {
  color: var(--primary);
  transition: 0.3s ease-in-out;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #bdc3c7;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary); /* Blue on hover */
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #7f8c8d;
  cursor: pointer;
}
.footer-bottom:hover {
  color: var(--primary);
  transition: 0.3s ease-in-out;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
/* --- Team Section Styles --- */
.team-section {
  padding: 80px 10%;
  background-color: var(--light);
}

.team-header {
  text-align: center;
  margin-bottom: 60px;
}

.team-header h2 {
  font-size: 2.5rem;
  color: var(--secondary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

/* --- The Card --- */
.team-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- Image & Hover Overlay --- */
.member-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .member-image img {
  transform: scale(1.1);
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 27, 61, 0.7); /* Your Secondary Navy */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .member-overlay {
  opacity: 1;
}

.socials a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border: 1px solid white;
  border-radius: 20px;
  font-size: 0.8rem;
  transition: background 0.3s;
}

.socials a:hover {
  background: var(--primary); /* Lendly Orange */
  border-color: var(--primary);
}

/* --- Member Content --- */
.member-info {
  padding: 30px 20px;
  text-align: center;
}

.role-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 15px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.member-info h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

.member-info p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* --- Registration & Auth Styles --- */
.auth-page {
  background: linear-gradient(135deg, var(--secondary) 0%, #003366 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 30px;
}

.auth-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.reg-logo a {
  align-items: center;
  display: flex;
  justify-content: center;
}
.reg-logo img {
  display: flex;
  height: 80px;
  width: auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h2 {
  font-size: 1.8rem;
  color: var(--secondary);
}

.auth-form .form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.auth-form label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.auth-form input,
.auth-form select {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
  cursor: pointer;
}

.auth-form input:focus {
  border-color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.w-100 {
  width: 100%;
  margin-top: 10px;
}

.auth-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 0.9rem;
}

button[type="submit"] {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  transition: background-color 0.3s ease;
}
button[type="submit"]:hover {
  background-color: var(--secondary);
  transition: 0.5s ease-in-out;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}
.auth-footer a:hover {
  text-decoration: underline;
}

/* --- LENDLY FORM CARD CONNECTION --- */

/* --- Contact Header --- */
.contact-header {
  text-align: center;
  padding: 60px 10%;
  background-color: var(--secondary);
  color: white;
}

/* --- Interactive Cards --- */
.contact-grid {
  padding: 50px 10%;
  margin-top: -40px; /* Overlaps header slightly for modern look */
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.method-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    border 0.3s ease;
  border: 2px solid transparent;
}

.method-card:hover {
  transform: translateY(-10px);
  border: 2px solid var(--primary);
}

.method-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

/* --- Map & Form Section --- */
.map-form-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  min-height: 400px;
}

.map-div {
  border-radius: 20px;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
  .map-form-container {
    grid-template-columns: 1fr;
  }
  .map-div {
    height: 300px;
  }
}
.form-card {
  background: #ffffff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%; /* Optional: keeps the form from getting too wide */
  margin: 0 auto;
}

.form-card h3 {
  color: var(--secondary);
  margin-bottom: 20px;
  text-align: center;
}

/* Target the wrapper divs to create even vertical spacing */
.form-group {
  margin-bottom: 20px;
  width: 100%;
}

/* Style all inputs, selects, and textareas at once */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1.5px solid #e1e8ef;
  border-radius: 10px;
  background-color: #fcfcfc;
  color: var(--dark);
  transition: all 0.3s ease-in-out;
  outline: none;
  display: block; /* Ensures they take up full width of the form-group */
}

/* Fix for the generic browser 'Select' look */
.form-group select {
  cursor: pointer;
  appearance: none; /* Removes default arrow */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff751f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
}

/* Interactive Focus State */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary); /* Your Orange #ff751f */
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 117, 31, 0.1); /* Subtle orange glow */
}

/* Placeholder color styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aec0;
}

/* Ensure the textarea doesn't look squashed */
.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit; /* Prevents default monospace font */
}
