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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: #000000;
  padding-top: 80px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid #e1e1e1;
  padding: 0.8rem 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center; /* ensures vertical center */
  padding: 0; /* remove extra padding */
  margin: 0;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 2;
  gap: 2rem;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.nav-icon:hover {
  transform: scale(1.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: #000;
  margin: 4px 0;
  border-radius: 2px;
}

/* Icons in dropdown (mobile only) */
.nav-icons-mobile {
  display: none;
  justify-content: center;
  gap: 1rem;
}

/* Desktop Icons */
.nav-icons-desktop {
  display: flex;
}

.nav-logo-image {
  height: 50px; /* or any size you want */
  width: auto;
  object-fit: contain;
  display: block; /* removes inline spacing */
  margin: 0;
  padding: 0;
}

.nav-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #ccc;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: #8a2be2;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-left: 2rem;
}

.nav-links a {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.3rem;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #1b9aaa;
  border-color: #1b9aaa;
}

.follow-btn {
  padding: 0.4rem 1rem;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

/* Banner */
.logo-banner {
  width: 100%;
  background-image: url("./header.jpg");
  min-height: 300px;
  background-size: cover;
  background-position: center;
}

.logo-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: contain;
  background-image: url("../images/mirthfeed-logo.jpg");
  border-radius: 12px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* Container */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Grid */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 750px);
  gap: 1.5rem;
  margin: 0 0.25rem 1.5rem;
}

.bottom-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0 0.25rem;
}

.full-width {
  grid-column: span 2;
}

.passion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Cards */
.card {
  background: #f8f8f8;
  color: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(138, 43, 226, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(138, 43, 226, 0.6);
  box-shadow: 0 10px 25px rgba(138, 43, 226, 0.2);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(40, 26, 77, 0.5),
    rgba(40, 26, 77, 0.7)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 0;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.card:hover .card-overlay {
  background: linear-gradient(transparent, rgba(40, 26, 77, 0.3));
}

.flex-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 5rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  margin: 0;
  word-break: break-word;
  max-width: 90%;
}

.card-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #dddddd;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  margin-top: 0.5rem;
  max-width: 90%;
  word-break: break-word;
}

.card-description {
  margin-top: 10px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2em;
  text-align: center;
  color: #333;
  background: transparent;
  padding: 0 10px;
  grid-column: span 2;
  justify-self: start;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1rem;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.photo-card {
  aspect-ratio: 3 / 4; /* taller rectangle for vertical items */
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background-color: #f8f8f8;
  transition: transform 0.3s ease;
  max-width: 100%;
}

html, body {
  overflow-x: hidden;
}

.container {
  padding: 1rem;
  overflow: hidden;
}

.wide-photo-card {
  aspect-ratio: 4 / 3 !important; /* more horizontal */
  background-position: top center; /* shift focus upwards */
}

@media (max-width: 470px) {
  .photo-card {
    aspect-ratio: 3 / 4;
  }
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(40, 26, 77, 0),
    rgba(40, 26, 77, 0.4)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover::before {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 400px);
  }

  .passion-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: #000;
    margin: 4px 0;
    border-radius: 2px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; /* show dropdown just below navbar */
    right: 0;
    background: #ffffff;
    flex-direction: column;
    width: 200px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

    .nav-icons-desktop {
    display: none; /* hide icons in right corner for mobile */
  }

  .nav-icons-mobile {
    display: flex;
    margin-top: 1rem;
  }

  .nav-links li {
    margin-bottom: 1rem;
  }

  .container {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.8rem;
  }

  .card-subtitle {
    font-size: 0.85rem;
  }

  .experience-card {
    height: 200px;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: span 1; /* Full width in single column layout */
  }

  .experience-card .card-title {
    font-size: 1.8rem;
  }

  .passion-title {
    font-size: 2rem;
  }

  .nav-container {
    position: relative; /* Ensures dropdown is relative to this */
  }
}