/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  background: linear-gradient(180deg, #fff8fa 0%, #fffdfd 100%);
  color: #3b1f2b;
  font-family: "Inter", sans-serif;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between; /* logo left, links right */
  align-items: center;
  background-color: #860038; /* main maroon background */
  padding: 15px 40px;
  border-bottom: 2px solid #6b002d; /* slightly darker border for depth */
}

/* Logo */
.logo {
  height: 80px; /* make the logo bigger */
  width: auto;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #fdf0f5; /* soft off-white text for contrast */
  text-decoration: none;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links li a:hover {
  background-color: #a0044f; /* lighter maroon on hover */
  color: #ffffff;
}

.nav-links li a.active {
  background-color: #b10a5f; /* slightly brighter maroon for active link */
  color: #ffffff;
}

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

.header h1 {
  font-size: 48px;
  font-family: "Playfair Display", serif;
  color: #860038;
  transition: font-size 0.4s ease;
}

.header h2 {
  margin-top: 10px;
  font-weight: normal;
  color: #a14d67;
  transition: opacity 0.3s ease;
}

/* Smooth shrink */
.header.shrink {
  padding: 50px 20px;
  transform: translateY(-10px);
}

.header.shrink h1 {
  font-size: 30px;
}

.header.shrink h2 {
  opacity: 0.7;
}

/* Demo Section */
.demo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 30px;
  margin-top: -20px;
}

/* Demo box */
.demo-box {
  width: 60%;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid #e6c8d2;
  box-shadow: 0 10px 25px rgba(134, 0, 56, 0.06);
  text-align: center;
}

/* Container keeps same aspect ratio as old video */
.video-container {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 10; /* GIF container default */
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden; /* prevents overflow from rounding */
}

/* GIF styling */
.demo-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-video-section {
  text-align: center;
  padding: 40px 20px;
}

.about-video-section h2 {
  font-family: "Playfair Display", serif;
  color: #860038;
  margin-bottom: 20px;
}

.about-video-section .video-container {
aspect-ratio: 16 / 9; /* YouTube video */
}

.about-video-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Row of 3 */
.row {
  display: flex;
  gap: 20px;
  padding: 40px;
}

/* Cards */
.card {
  flex: 1;
  background: linear-gradient(180deg, #fff8fa 0%, #ffffff 100%);
  border: 1px solid #efcdd8;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(134, 0, 56, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 22px rgba(134, 0, 56, 0.08);
}

.visual img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 10px;
  object-fit: cover;
}

/* Scroll animation */
.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    justify-content: center;
  }
}

/* TEAM SECTION */
.team-section {
  text-align: center;
  padding: 20px 40px 40px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.team-section h1 {
  font-family: "Playfair Display", serif;
  color: #860038;
}

.team-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.profile-card {
  background: linear-gradient(180deg, #fff8fa 0%, #ffffff 100%);
  border: 1px solid #efcdd8;
  padding: 25px;
  border-radius: 20px;
  width: 100%;
  min-height: 280px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  box-shadow: 0 8px 20px rgba(134, 0, 56, 0.06);
  transition: all 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 26px rgba(134, 0, 56, 0.1);]
  min-height: 320px;
}

/* Circular image */
.profile-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

/* TEXT */
.role {
  font-weight: 600;
  color: #860038;
  margin: 5px 0;
}

.fun-fact {
  font-size: 14px;
  color: #6c2e43;
  opacity: 0.85;
}

/* =========================
   CARD LAYOUT UPGRADE
   ========================= */

/* Top row: image + text */
.card-top {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Override existing image style */
.profile-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

/* Text next to image */
.info {
  text-align: left;
}

.info h3 {
  margin: 0;
}

/* Year */
.year {
  font-size: 13px;
  color: #a14a6a;
  margin: 2px 0;
}

/* Role (overrides your earlier one slightly) */
.role {
  font-weight: 600;
  color: #860038;
  margin: 2px 0;
}

/* Fun fact alignment */
.fun-fact {
  font-size: 14px;
  color: #6c2e43;
  opacity: 0.85;
  margin-top: 15px;
  text-align: left;
}
@media (max-width: 900px) {
  .team-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .team-row {
    grid-template-columns: 1fr;
  }

  .team-section {
    height: auto; /* prevents squishing */
  }
}

/* Login layout */
.login-container {
  min-height: calc(100vh - 120px); /* accounts for navbar + header */
  display: flex;
  justify-content: center;
  align-items: center;  /* THIS is what centers it vertically */
}

/* Login card */
.login-card {
  background: white;
  padding: 40px;
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
}

/* Inputs */
.login-card input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: 0.3s;
}

.login-card input:focus {
  border-color: #00bcd4;
  box-shadow: 0 0 5px rgba(0,188,212,0.3);
}

/* Center login section */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

/* Login card */
.login-card {
  background: white;
  padding: 40px;
  width: 320px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
}

/* Title */
.login-card h2 {
  margin-bottom: 5px;
}

.login-card p {
  margin-bottom: 20px;
  color: gray;
}

/* Inputs */
.login-card input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: 0.3s;
}

.login-card input:focus {
  border-color: #860038;
  box-shadow: 0 0 5px rgba(0,188,212,0.3);
}

/* Button */
.login-card button {
  width: 100%;
  padding: 12px;
  background: #860038;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
}

.login-card button:hover {
  background: #5a0026;
  box-shadow: 0 5px 15px rgba(117, 0, 49, 0.4);
}
