:root {
  --gap: 16px;
  --font-main: 'Outfit', sans-serif;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text-color: #333;
  --primary: #230cd9;
  --accent: #88d70a;
}

/* Reset default spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Styles */
body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  background: linear-gradient(45deg, var(--accent), var(--primary));
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Gallery Section */
#gallery {
  padding: 2rem;
}
#gallery h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Card Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  transform: translateY(-6px);
}
.card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}
.card figcaption {
  padding: 1rem;
}
.card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.card p {
  font-size: 0.95rem;
  line-height: 1.5;
}
.card .long-desc {
  display: none;
}

/* View Image Button */
.view-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, #4c36e0, #2a13a8);
  color: #fff;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(76, 54, 224, 0.2);
  transition: all 0.25s ease;
}
.view-image:hover {
  background: linear-gradient(135deg, #5b47f3, #3a20c4);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 54, 224, 0.3);
}
.view-image:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(76, 54, 224, 0.3);
}
.view-image:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 54, 224, 0.3);
}
.view-image::after {
  content: "🔍";
  font-size: 1rem;
  opacity: 0.9;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
  width: 92%;
  position: relative;
  animation: pop 0.25s ease;
  max-height: 90vh;
  overflow: auto;
}
#close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  cursor: pointer;
}
@keyframes pop {
  from { transform: scale(0.98); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ensure modal img fits nicely */
#modal-body img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  max-height: 80vh;
  object-fit: contain;
}

#modal-body h3 {
  margin-bottom: 1rem;
}

/* Center the final "Check Out Our Bios" card content */
.card:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.card:last-child figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}
.card:last-child h3 {
  margin-bottom: 0.5rem;
}
.card:last-child p {
  max-width: 85%;
}
.card:last-child .view-image {
  margin-top: 1.2rem;
  justify-content: center;
  text-align: center;
}

/* ========== ABOUT PAGE STYLING ========== */
.about-section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-section p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

.about-section .team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
}

.team-member {
  background: var(--bg);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.team-member img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.team-member h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.team-member p {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}