/* ========================================
   HOMEPAGE STYLES
   e-AGE26 Conference - Bibliotheca Alexandrina
   ======================================== */

/* Body background for homepage */
body.page-home {
  background: linear-gradient(to bottom, #fffbeb, #ffffff, #eff6ff);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fadeIn 1.5s ease;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.5),
    transparent,
    transparent
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 3rem;
  padding-top: 5rem;
  padding-right: 3rem;
  z-index: 10;
  color: white;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: slideInLeft 1s ease 0.2s both;
  text-shadow:
    0 4px 15px rgba(0, 0, 0, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content .hero-subtitle {
  font-size: 1.875rem;
  margin-bottom: 2rem;
  animation: slideInLeft 1s ease 0.3s both;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);

  text-shadow:
    0 4px 15px rgba(0, 0, 0, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content .hero-desc {
  max-width: 35rem;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: slideInLeft 1s ease 0.4s both;

  text-shadow:
    0 4px 15px rgba(0, 0, 0, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: slideInLeft 1s ease 0.5s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content .hero-subtitle {
    font-size: 1.25rem;
  }
  .hero-content .hero-desc {
    font-size: 1rem;
  }
  .hero-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin: 1rem;
  }
}

/* ========================================
   SECTION HEADER (reusable)
   ======================================== */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-header-bar {
  width: 4px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 3.75rem;
  color: #111827;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.section-header p {
  font-size: 1.25rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
}

/* ========================================
   OVERVIEW SECTION
   ======================================== */
.overview {
  padding: 7rem 2rem;
  position: relative;
  background-image: url("https://d2xsxph8kpxj0f.cloudfront.net/310419663031559805/FvEGZCidzwqk9xmjctVubF/hieroglyphic-bg_af24cf98.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.overview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
}

.overview-inner {
  max-width: 80rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.overview-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
}

.overview-text h2 {
  font-size: 3.25rem;
  color: #111827;
  margin-bottom: 1.5rem;
}
.overview-text h2 span {
  color: #d97706;
}

.overview-text .lead {
  font-size: 1.2rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.overview-text p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
}
.overview-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.overview-stat {
  text-align: center;
}

.overview-stat .number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
  color: #d97706;
}

.overview-stat .label {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.overview-image {
  position: relative;
}

.overview-image img {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
}

.overview-image::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(212, 160, 23, 0.2);
  border-radius: calc(1.5rem + 10px);
  z-index: -1;
}

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
   VENUE SECTION
   ======================================== */
.venue {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.venue-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.venue-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.6)
  );
}

.venue-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 5rem 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.venue-header h2 {
  font-size: 4.5rem;
  color: white;
  margin-bottom: 0.5rem;
}

.venue-header p {
  color: #fcd34d;
  font-size: 1.5rem;
}

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.venue-video-wrapper {
  position: relative;
}

.venue-video-container {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.venue-video-container .aspect-video {
  position: relative;
  padding-bottom: 56.25%;
  background: black;
}

.venue-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.venue-video-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.2),
    rgba(59, 130, 246, 0.2)
  );
  border-radius: 1.5rem;
  filter: blur(1rem);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.venue-video-wrapper:hover .venue-video-glow {
  opacity: 1;
}

.venue-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.venue-about-card {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 2rem;
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
  transition: border-color 0.3s ease;
}

.venue-about-card:hover {
  border-color: rgba(251, 191, 36, 0.5);
}

.venue-about-card p {
  color: #f3f4f6;
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-weight: 400;
}

/* .venue-about-card p.amber {
  color: #2563eb;
  font-size: 1rem;
  font-weight: bolder;
} */

.venue-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.venue-stat {
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid;
  transition: border-color 0.3s ease;
}

.venue-stat-amber {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.2),
    rgba(245, 158, 11, 0.1)
  );
  border-color: rgba(251, 191, 36, 0.3);
}
.venue-stat-amber:hover {
  border-color: rgba(251, 191, 36, 0.6);
}
.venue-stat-amber .label {
  color: #fde68a;
}
.venue-stat-amber .sub {
  color: #fef3c7;
}

.venue-stat-blue {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(59, 130, 246, 0.1)
  );
  border-color: rgba(96, 165, 250, 0.3);
}
.venue-stat-blue:hover {
  border-color: rgba(96, 165, 250, 0.6);
}
.venue-stat-blue .label {
  color: #bfdbfe;
}
.venue-stat-blue .sub {
  color: #dbeafe;
}

.venue-stat-green {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.2),
    rgba(16, 185, 129, 0.1)
  );
  border-color: rgba(52, 211, 153, 0.3);
}
.venue-stat-green:hover {
  border-color: rgba(52, 211, 153, 0.6);
}
.venue-stat-green .label {
  color: #a7f3d0;
}
.venue-stat-green .sub {
  color: #d1fae5;
}

.venue-stat-rose {
  background: linear-gradient(
    135deg,
    rgba(244, 63, 94, 0.2),
    rgba(244, 63, 94, 0.1)
  );
  border-color: rgba(251, 113, 133, 0.3);
}
.venue-stat-rose:hover {
  border-color: rgba(251, 113, 133, 0.6);
}
.venue-stat-rose .label {
  color: #fecdd3;
}
.venue-stat-rose .sub {
  color: #ffe4e6;
}

.venue-stat .label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.venue-stat .value {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  font-family: "Crimson Text", serif;
}

.venue-stat .value.sm {
  font-size: 1.5rem;
}

.venue-stat .sub {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.venue-buttons {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
}

@media (max-width: 1024px) {
  .venue-grid {
    grid-template-columns: 1fr;
  }
  .venue-header h2 {
    font-size: 3rem;
  }
}

/* ========================================
   HIGHLIGHTS SECTION
   ======================================== */
.highlights {
  font-family: "Inter", sans-serif;
  padding: 6rem 0;
  background: linear-gradient(
    to bottom,
    #ffffff,
    rgba(219, 234, 254, 0.3),
    rgba(255, 251, 235, 0.3)
  );
  overflow: hidden;
}

.highlights-wrapper {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.highlights-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 440px;
  perspective: 1200px;
  margin-left: 220px;
}

/* Card base */
.highlight-card {
  position: absolute;
  display: block;
  cursor: pointer;
  left: 50%;
  transition:
    width 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.7s cubic-bezier(0.23, 1, 0.32, 1),
    z-index 0s;
  transform-style: preserve-3d;
}

.highlight-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  transition: box-shadow 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.highlight-card-bg {
  position: absolute;
  inset: 0;
}

.highlight-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.7s ease,
    filter 0.7s ease;
  transform: scale(1.05);
  filter: brightness(0.65);
}

.highlight-card.hovered .highlight-card-bg img {
  transform: scale(1.1);
  filter: brightness(0.85);
}

.highlight-card-overlay {
  position: absolute;
  inset: 0;
  transition: background 0.5s ease;
}

/* .highlight-card-number {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: white;
  font-weight: 700;
  font-family: "Crimson Text", serif;
  user-select: none;
  pointer-events: none;
  transition:
    font-size 0.6s ease,
    opacity 0.6s ease;
  font-size: 3.5rem;
  opacity: 0.12;
  line-height: 1;
}

.highlight-card.hovered .highlight-card-number {
  font-size: 5rem;
  opacity: 0.2;
} */

.highlight-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 10;
  text-align: justify;
}

.highlight-card-title {
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
  transition:
    font-size 0.5s ease,
    transform 0.5s ease;
  font-size: 1.1rem;
  transform: translateY(0);
  text-align: center;
}

.highlight-card.hovered .highlight-card-title {
  font-size: 1.5rem;
  transform: translateY(-6px);
}

.highlight-card-description {
  overflow: hidden;
  transition:
    max-height 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
}

.highlight-card.hovered .highlight-card-description {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}

.highlight-card-description p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.highlight-card-explore {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.highlight-card-explore span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.highlight-card-explore svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .highlights-container {
    height: auto;
    min-height: 380px;
  }
}

/* mobile scroller for highlight cards */
@media (max-width: 768px) {
  .highlights {
    overflow: visible; /* allow horizontal scroll inside container */
  }
  .highlights-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 1rem 1rem 1rem;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
  }
  .highlight-card {
    position: relative;
    left: auto;
    transform: none !important;
    margin-right: 1rem;
    min-width: 220px;
    scroll-snap-align: center;
  }
}

/* card scroll animation and accessibility */
.card-hidden {
  opacity: 0;
  transform: translateY(40px);
}

.visible-card {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

.highlight-card:focus {
  outline: 3px solid #60a5fa;
  outline-offset: 4px;
}

/* mobile fallback: disable 3d rotation to avoid cramped layout */
@media (max-width: 768px) {
  .highlights-container {
    perspective: none;
    height: 500px;
    margin: 0;
  }
  .highlight-card {
    /* remove rotation on small screens */
    transform: translateX(calc(-50% + 0px)) rotateY(0deg) !important;
    width: 280px !important;
    height: 360px !important;
  }
  .highlight-card-content {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }
  .highlight-card.hovered .highlight-card-description {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
  padding: 5rem 2rem;
  background: linear-gradient(to bottom, #fffbeb, #eff6ff);
  text-align: center;
}

.cta-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.cta h2 {
  font-size: 3.25rem;
  color: #111827;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.25rem;
  color: #374151;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
