/* page base - allow normal vertical scrolling, only hide horizontal overflow */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;   /* keep horizontal scrollbar hidden */
  overflow-y: auto;     /* normal vertical scrolling if page content requires it */
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}


/* Background - deep royal navy aesthetic */
body {
 background: #050505;
  color: #e0e6f6;
}

/* Canvas (stars background) — fixed to viewport so it cannot force page height */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;      /* CSS width equals viewport width */
  height: 100vh;     /* CSS height equals viewport height */
  display: block;
  z-index: 0;
  pointer-events: none; /* lets clicks pass through to page */
  box-sizing: border-box;
}

/* Navbar */
nav {
  position: fixed;
  top: 20px;
  right: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  background: rgba(44, 41, 41, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

/* Left side: logo + title */
.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem; /* increased spacing between logo and title */
}

.nav-logo {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 8px;
}

.nav-title {
  font-size: 1.2rem;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  color: #8ea9db;
  text-shadow: none;
}

/* Nav links */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #a5b8e0;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  transition: color 0.3s, text-shadow 0.3s;
}

/* underline animation */
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #8ea9db;
  transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: #b8c6f0;
  text-shadow: 0 0 8px rgba(184, 198, 240, 0.5);
}

/* HAMBURGER BASE */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #8ea9db;
  transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE */
@media (max-width: 767px) {

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(15, 25, 40, 0.95);
    padding: 8px 10px;
    border-radius: 12px;
    
  }
.nav-links li {
  margin:  0px;
}
.nav-links {
  gap: 6px; /* reduce this for tighter spacing */
}
  .nav-links.show {
    display: flex;
  }
}


/* ========================= */
/* HASHIRA SECTION */
/* ========================= */

.hashira-section{
  position: relative;
  z-index: 5;
  padding: 170px 8% 120px;
  min-height: 100vh;
}

.hashira-header{
  text-align: center;
  margin-bottom: 70px;
}

.hashira-japanese{
  display: block;
  font-size: 5rem;
  font-family: 'Cinzel', serif;
  color: rgba(205,217,255,0.12);
  margin-bottom: -20px;
  letter-spacing: 10px;
}

.hashira-header h1{
  font-size: 4rem;
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  background: linear-gradient(
    90deg,
    #cdd9ff,
    #8ea9db,
    #ffffff,
    #8ea9db
  );
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s linear infinite;
}

.hashira-header p{
  color: #a5b8e0;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 12px;
}

.hashira-content{
  display: flex;
  justify-content: center;
  align-items: center;
}

.hashira-card{
  max-width: 950px;
  padding: 60px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(174,188,232,0.15);
  box-shadow:
    0 0 40px rgba(0,0,0,0.35),
    0 0 80px rgba(142,169,219,0.08);
  position: relative;
  overflow: hidden;
}

.hashira-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.03),
      transparent 40%
    );
  pointer-events: none;
}

.hashira-card p{
  font-size: 1.12rem;
  line-height: 2.1;
  color: #d9e4ff;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 28px;
}

.hashira-card span{
  color: #ffffff;
  font-weight: 700;
}

.intro-line{
  font-size: 1.7rem !important;
  line-height: 1.5 !important;
  text-align: center;
  font-family: 'Cinzel', serif !important;
  color: #ffffff !important;
  margin-bottom: 50px !important;
}

.quote-block{
  margin: 50px auto;
  padding: 30px;
  border-left: 3px solid #8ea9db;
  background: rgba(255,255,255,0.03);
  font-size: 1.4rem;
  line-height: 1.8;
  color: #ffffff;
  font-family: 'Cinzel', serif;
  text-align: center;
  border-radius: 14px;
}

.closing-line{
  text-align: center;
  font-size: 1.3rem !important;
  margin-top: 50px !important;
  font-weight: 700;
}

/* Floating glow */
.hashira-card::after{
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: rgba(142,169,219,0.12);
  border-radius: 50%;
  filter: blur(90px);
  top: -60px;
  right: -60px;
}

/* MOBILE */
@media(max-width:768px){

  .hashira-section{
    padding: 140px 6% 140px;
  }

  .hashira-header h1{
    font-size: 2.8rem;
  }

  .hashira-japanese{
    font-size: 3.5rem;
  }

  .hashira-card{
    padding: 35px 24px;
    border-radius: 24px;
  }

  .hashira-card p{
    font-size: 1rem;
    line-height: 1.9;
  }

  .intro-line{
    font-size: 1.3rem !important;
  }

  .quote-block{
    font-size: 1.1rem;
    padding: 22px;
  }

  .closing-line{
    font-size: 1.1rem !important;
  }
}
/* ========================= */
/* COMMITTEE SECTION */
/* ========================= */

.committee-section{
  position: relative;
  z-index: 5;
  padding: 40px 8% 140px;
}

.committee-header{
  text-align: center;
  margin-bottom: 80px;
}

.committee-header span{
  display: block;
  font-size: 4rem;
  color: rgba(205,217,255,0.08);
  margin-bottom: -10px;
  font-family: 'Cinzel', serif;
}

.committee-header h2{
  font-size: 3.5rem;
  margin: 0;
  font-family: 'Cinzel', serif;
  background: linear-gradient(
    90deg,
    #cdd9ff,
    #8ea9db,
    #ffffff,
    #8ea9db
  );
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s linear infinite;
}

.committee-header p{
  color: #a5b8e0;
  letter-spacing: 2px;
  margin-top: 14px;
  text-transform: uppercase;
  font-size: 0.95rem;
}

/* LEADERSHIP */

.leadership-tier{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 100px;
  max-width: 900px;
  margin: 0 auto 80px;
}

.committee-role{
  text-align: center;
  min-width: 260px;
}

.committee-role small{
  display: block;
  color: #8ea9db;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 0.8rem;
}

.committee-role h3{
  margin: 0;
  font-size: 2rem;
  color: #ffffff;
  font-family: 'Cinzel', serif;
  text-shadow: 0 0 20px rgba(174,188,232,0.2);
}

.committee-divider{
  width: 1px;
  height: 80px;
  background: linear-gradient(
    to bottom,
    transparent,
    #8ea9db,
    transparent
  );
}

/* SUBTITLE */

.committee-subtitle{
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.4rem;
  color: #dfe7ff;
  font-family: 'Cinzel', serif;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* GRID */

.committee-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 28px;
}

/* BOX */

.committee-box{
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(174,188,232,0.12);
  transition: all 0.4s ease;
}

.committee-box:hover{
  transform: translateY(-8px);
  border-color: rgba(205,217,255,0.3);
  box-shadow:
    0 0 30px rgba(142,169,219,0.12),
    0 0 80px rgba(142,169,219,0.08);
}

.committee-box small{
  display: block;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 0.78rem;
}

.committee-box h3{
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  font-family: 'Cinzel', serif;
  line-height: 1.5;
}

/* Glow */

.committee-box::after{
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(142,169,219,0.08);
  border-radius: 50%;
  filter: blur(70px);
  top: -80px;
  right: -80px;
}

/* Animated line */

.committee-box::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #cdd9ff,
    transparent
  );
  transition: left 0.7s ease;
}

.committee-box:hover::before{
  left: 100%;
}

/* MOBILE */

@media(max-width:768px){
   .leadership-tier{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .committee-section{
    padding: 20px 6% 120px;
  }

  .committee-header h2{
    font-size: 2.7rem;
  }

  .committee-header span{
    font-size: 3rem;
  }

  .committee-role h3{
    font-size: 1.6rem;
  }

  .committee-divider{
    display: none;
  }

  .committee-grid{
    gap: 20px;
  }

  .committee-box{
    padding: 28px 22px;
  }
}
/* ========================= */
/* TECH COMMITTEE */
/* ========================= */

.tech-title{
  margin-top: 100px;
}

/* WRAPPER */

.tech-committee-wrapper{
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* CATEGORY */

.tech-category{
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 26px;
  background: rgba(4, 9, 20, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(174,188,232,0.12);
  transition: all 0.4s ease;
}

.tech-category:hover{
  transform: translateY(-5px);
  border-color: rgba(205,217,255,0.25);
  box-shadow:
    0 0 30px rgba(142,169,219,0.12),
    0 0 80px rgba(142,169,219,0.06);
}

/* CATEGORY TITLE */

.tech-category h4{
  margin: 0 0 24px;
  font-size: 1.45rem;
  color: #ffffff;
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.tech-category h4::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 70%;
  height: 1px;
  background: linear-gradient(
    90deg,
    #8ea9db,
    transparent
  );
}

/* MEMBERS */

.tech-members{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tech-members span{
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(174,188,232,0.08);
  color: #dfe7ff;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.tech-members span:hover{
  transform: translateY(-3px);
  background: rgba(142,169,219,0.12);
  border-color: rgba(205,217,255,0.2);
  box-shadow: 0 0 20px rgba(142,169,219,0.12);
  color: #ffffff;
}

/* GLOW */

.tech-category::before{
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  background: rgba(142,169,219,0.08);
  border-radius: 50%;
  filter: blur(90px);
  top: -100px;
  right: -100px;
}

/* TOP LINE */

.tech-category::after{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #cdd9ff,
    transparent
  );
  transition: left 0.7s ease;
}

.tech-category:hover::after{
  left: 100%;
}

/* MOBILE */

@media(max-width:768px){

  .tech-title{
    margin-top: 70px;
  }

  .tech-category{
    padding: 26px 22px;
  }

  .tech-category h4{
    font-size: 1.2rem;
  }

  .tech-members{
    gap: 12px;
  }

  .tech-members span{
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}
/* ========================= */
/* CORE COMMITTEE PANEL */
/* ========================= */

.core-committee-panel{
  position: relative;
  overflow: hidden;
  padding: 50px 40px;
  border-radius: 30px;
  background: rgba(16,24,40,0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(174,188,232,0.12);
  margin-bottom: 90px;
}

.core-members{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.core-members span{
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(174,188,232,0.08);
  color: #dfe7ff;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.35s ease;
}

.core-members span:hover{
  transform: translateY(-4px);
  background: rgba(142,169,219,0.12);
  border-color: rgba(205,217,255,0.25);
  box-shadow: 0 0 20px rgba(142,169,219,0.12);
  color: #ffffff;
}

/* Glow */

.core-glow{
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(142,169,219,0.08);
  filter: blur(110px);
  top: -120px;
  right: -100px;
}

/* Animated line */

.core-committee-panel::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #cdd9ff,
    transparent
  );
  transition: left 0.8s ease;
}

.core-committee-panel:hover::before{
  left: 100%;
}

/* MOBILE */

@media(max-width:768px){

  .core-committee-panel{
    padding: 34px 22px;
    border-radius: 24px;
  }

  .core-members{
    gap: 14px;
  }

  .core-members span{
    width: 100%;
    text-align: center;
    padding: 13px 16px;
    font-size: 0.95rem;
  }
}

/* ========================= */
/* MOTTO STRIP */
/* ========================= */

.motto-strip{
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  margin: 80px 0;
  border-top: 1px solid rgba(174,188,232,0.1);
  border-bottom: 1px solid rgba(174,188,232,0.1);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
}

.motto-track{
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scrollMotto 25s linear infinite;
}

.motto-track span{
  color: #dfe7ff;
  font-size: 1.1rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: 'Cinzel', serif;
}

@keyframes scrollMotto{
  from{
    transform: translateX(0);
  }
  to{
    transform: translateX(-50%);
  }
}

/* ========================= */
/* LEGACY STATS */
/* ========================= */

.legacy-section{
  padding: 60px 8% 120px;
}

.legacy-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 30px;
}

.legacy-card{
  position: relative;
  overflow: hidden;
  padding: 55px 30px;
  text-align: center;
  border-radius: 30px;
  background: rgba(16,24,40,0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(174,188,232,0.12);
  transition: all 0.4s ease;
}

.legacy-card:hover{
  transform: translateY(-10px);
  box-shadow:
    0 0 30px rgba(142,169,219,0.12),
    0 0 80px rgba(142,169,219,0.08);
}

.legacy-card h3{
  margin: 0;
  font-size: 4rem;
  font-family: 'Cinzel', serif;
  background: linear-gradient(
    90deg,
    #ffffff,
    #8ea9db,
    #ffffff
  );
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s linear infinite;
}

.legacy-card small{
  display: block;
  margin-top: 14px;
  color: #a5b8e0;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.legacy-card::before{
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(142,169,219,0.08);
  filter: blur(90px);
  top: -100px;
  right: -100px;
}

/* ========================= */
/* QUOTE WALL */
/* ========================= */

.quote-wall{
  position: relative;
  padding: 140px 8%;
  text-align: center;
}

.quote-wall h2{
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 900px;
  font-size: 4rem;
  line-height: 1.4;
  color: #ffffff;
  font-family: 'Cinzel', serif;
  text-shadow:
    0 0 20px rgba(174,188,232,0.2),
    0 0 40px rgba(174,188,232,0.08);
}

.quote-glow{
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(142,169,219,0.08);
  filter: blur(140px);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

/* ========================= */
/* TIMELINE */
/* ========================= */

.timeline-section{
  position: relative;
  padding: 120px 8%;
}

.timeline{
  position: relative;
  max-width: 1100px;
  margin: auto;
}

.timeline::before{
  content: '';
  position: absolute;
  width: 2px;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    #8ea9db,
    transparent
  );
}

.timeline-item{
  position: relative;
  width: 50%;
  padding: 30px 50px;
  box-sizing: border-box;
}

.timeline-item.left{
  left: 0;
  text-align: right;
}

.timeline-item.right{
  left: 50%;
}

.timeline-content{
  position: relative;
  overflow: hidden;
  padding: 35px;
  border-radius: 28px;
  background: rgba(16,24,40,0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(174,188,232,0.12);
  transition: all 0.4s ease;
}

.timeline-content:hover{
  transform: translateY(-8px);
  box-shadow:
    0 0 30px rgba(142,169,219,0.12),
    0 0 80px rgba(142,169,219,0.08);
}

.timeline-content h3{
  margin: 0 0 16px;
  font-size: 2rem;
  color: #ffffff;
  font-family: 'Cinzel', serif;
}

.timeline-content p{
  margin: 0;
  color: #dfe7ff;
  line-height: 1.8;
}

.timeline-item::before{
  content: '';
  position: absolute;
  top: 50px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #cdd9ff;
  box-shadow: 0 0 20px rgba(205,217,255,0.8);
  z-index: 2;
}

.timeline-item.left::before{
  right: -8px;
}

.timeline-item.right::before{
  left: -8px;
}

/* MOBILE */

@media(max-width:768px){

  .legacy-section,
  .timeline-section,
  .quote-wall{
    padding-left: 6%;
    padding-right: 6%;
  }

  .quote-wall{
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .quote-wall h2{
    font-size: 2.2rem;
  }

  .timeline::before{
    left: 20px;
  }

  .timeline-item{
    width: 100%;
    left: 0 !important;
    padding-left: 60px;
    padding-right: 0;
    text-align: left !important;
  }

  .timeline-item::before{
    left: 12px !important;
  }

  .timeline-content{
    padding: 28px 24px;
  }

  .timeline-content h3{
    font-size: 1.5rem;
  }

  .legacy-card h3{
    font-size: 3rem;
  }
}
/* ========================= */
/* MEMORY CAROUSEL */
/* ========================= */

.memory-section{
  position: relative;
  padding: 40px 0 140px;
  overflow: hidden;
}

/* CAROUSEL */

.memory-carousel{
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 70px;
}

/* TRACK */

.memory-track{
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollMemory 40s linear infinite;
  padding-left: 40px;
}

/* CARD */

.memory-card{
  position: relative;
  width: 500px;
  height: 300px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(16,24,40,0.5);
  border: 1px solid rgba(174,188,232,0.12);
  transition: all 0.5s ease;
}

/* IMAGE */

.memory-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter:
    brightness(0.78)
    contrast(1.05)
    saturate(1.05);
  transition: all 0.6s ease;
}

/* OVERLAY */

.memory-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.45),
      transparent 40%
    );
  z-index: 1;
}

/* HOVER */

.memory-card:hover{
  transform: translateY(-10px);
  box-shadow:
    0 0 30px rgba(142,169,219,0.15),
    0 0 90px rgba(142,169,219,0.08);
}

.memory-card:hover img{
  transform: scale(1.06);
  filter:
    brightness(0.92)
    contrast(1.08)
    saturate(1.1);
}

/* GLOW */

.memory-card::after{
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(142,169,219,0.08);
  filter: blur(90px);
  top: -100px;
  right: -100px;
}

/* ANIMATION */

@keyframes scrollMemory{

  from{
    transform: translateX(0);
  }

  to{
    transform: translateX(-50%);
  }

}

/* PAUSE ON HOVER */

.memory-carousel:hover .memory-track{
  animation-play-state: paused;
}

/* EDGE FADES */

.memory-carousel::before,
.memory-carousel::after{
  content: '';
  position: absolute;
  top: 0;
  width: 140px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.memory-carousel::before{
  left: 0;
  background: linear-gradient(
    to right,
    #0d1b2a,
    transparent
  );
}

.memory-carousel::after{
  right: 0;
  background: linear-gradient(
    to left,
    #0d1b2a,
    transparent
  );
}

/* MOBILE */

@media(max-width:768px){

  .memory-section{
    padding-bottom: 110px;
  }

  .memory-track{
    gap: 18px;
    padding-left: 20px;
  }

  .memory-card{
    width: 300px;
    height: 190px;
    border-radius: 22px;
  }

  .memory-carousel::before,
  .memory-carousel::after{
    width: 50px;
  }
}
/* ============================= */
/* Elegant Royal Animated Footer */
/* ============================= */
.footer {
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.75); /* translucent royal tone */
  backdrop-filter: blur(12px);
  color: #d6def8;
  padding: 70px 20px 30px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
  border-top: 1px solid rgba(174, 188, 232, 0.3);
  margin-top: 80px;
}

/* Animated gradient line at top */
/* Base diagonal line styles */
.footer::before,
.footer::after {
  content: '';
  position: absolute;
  height: 3px;
  width: 150%; /* extended to cover diagonal */
  opacity: 0.8;
  filter: drop-shadow(0 0 12px rgba(252, 228, 152, 0.521));
  background: linear-gradient(90deg, transparent, #e7d28d, #8ea9db, #cdd9ff, transparent);
  background-size: 200% 100%;
}

/* Line 1 – slightly above */
.footer::before {
  content: ''; 
  position: absolute;
  height: 1.5px;
  width: 120%; /* wider than footer */
  top: 1%;    /* slightly top */
  left: -10%;  /* start slightly outside left */
  transform: rotate(3deg);
  transform-origin: left top;
  background: linear-gradient(90deg, transparent, #d4af37, #8ea9db, #cdd9ff, transparent);
  background-size: 200% 100%;
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.6));
  animation: glow-flow 4s linear infinite;
}

/* Line 2 – from top-right to bottom-left at ~25deg */
.footer::after {
  content: '';
  position: absolute;
  height: 3px;
  width: 200%;      /* long enough to cross diagonally */
  top: 0;
  right: -50%;      /* shift to start inside the footer */
  transform: rotate(-25deg); /* slant from top-right to bottom-left */
  transform-origin: top right;
  background: linear-gradient(90deg, transparent, #d4af37, #8ea9db, #cdd9ff, transparent);
  background-size: 200% 100%;
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.6));
  animation: glow-flow-reverse 5s linear infinite;
}

/* Glow animation – left to right */
@keyframes glow-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Glow animation – right to left */
@keyframes glow-flow-reverse {
  0% { background-position: 200% 50%; }
  100% { background-position: 0% 50%; }
}


/*animated top 
/* Decorative floating particles */
.footer::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.07;
  animation: drift 40s linear infinite;
}
@keyframes drift {
  from { transform: translate(0,0); }
  to { transform: translate(-200px,-200px); }
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Logo & Title */
.footer-logo img {
  width: 80px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(174,188,232,0.8));
}

.footer-logo h2 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #b3c7ff, #8ea9db, #cdd9ff, #b3c7ff);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 10s infinite linear;
}
@keyframes gradient-shift {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}
/* Footer Stats Container */
.footer-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: -30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  z-index: 2;
}

/* Divider between stats */
.footer-stats .stat-divider {
  width: 2px;
  height: 50px;
  background: linear-gradient(180deg, #8ea9db, #cdd9ff);
  opacity: 0.6;
  border-radius: 1px;
  box-shadow: 0 0 12px rgba(174,188,232,0.5);
}

/* Individual Stat */
.footer-stats .stat-item {
  text-align: center;
  cursor: default;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.footer-stats .stat-item:hover {
  transform: translateY(-5px);
  text-shadow: 0 0 15px rgba(174,188,232,0.9), 0 0 30px rgba(174,188,232,0.5);
}

/* Number Styling */
.footer-stats .stat-item span {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  font-family: 'Cinzel', serif;
  background: linear-gradient(90deg, #b3c7ff, #8ea9db, #cdd9ff, #b3c7ff);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s infinite linear;
  text-shadow: 0 0 10px rgba(174,188,232,0.7);
}

/* Label Styling */
.footer-stats .stat-item small {
  display: block;
  font-size: 0.85rem;
  color: #cdd9ff;
  letter-spacing: 1px;
  margin-top: 5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Gradient Animation */
@keyframes gradient-shift {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .footer-stats {
    gap: 20px;
  }
  .footer-stats .stat-divider {
    display: none;
  }
  .footer-stats .stat-item span {
    font-size: 2rem;
  }
  .footer-stats .stat-item small {
    font-size: 0.8rem;
  }
}


/* Navigation Links */
.footer-links {
  display: flex;
  gap: 40px;
  margin-top: -40px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #a5b8e0;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}
.footer-links a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #cdd9ff;
  transition: width 0.3s ease;
}
.footer-links a:hover::before {
  width: 100%;
}
.footer-links a:hover {
  color: #796dc8;
  text-shadow: 0 0 10px rgba(174,188,232,0.8);
}

/* Social Icons (royal glow, no circles) */
.footer-social {
  display: flex;
  gap: 30px;
  justify-content: center;
  text-decoration: none;
  align-items: center;
}
.footer-social a {
  color: #a5b8e0;
  font-size: 1.7rem;
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  text-decoration: none;
  align-items: center;
}
.footer-social a:hover {
  color: #4556aeb5;
  transform: scale(1.25);
}
.footer-logo-icon {
  width: 32px;       /* adjust size as needed */
  height: 32px;
  filter: brightness(100%);
}
.white-logo {
  filter: brightness(100%);
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 40px;
  font-size: 1rem;
  color: #8ea9db;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 15px;
  letter-spacing: 1px;
}

/* 📱 Responsive */
@media (max-width: 767px) {
  .footer{
    margin-top: -120px;
  }
  .footer-logo h2{
    font-size: 1.8rem;
  }
  .footer-links{
    margin-top: 1px;
    gap: 25px;
    font-size: 1rem;
  }
}


/* ==========================================
   UNIVERSAL NAVBAR + FOOTER TABLET FIXES
   iPad Mini / Air / Pro (768px–1024px)
   Does NOT affect mobile or laptop
========================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* ================= NAVBAR ================= */

    nav {
        top: 15px;
        left: 25px;
        right: 25px;
        padding: 0.8rem 1.5rem;
    }

    /* Keep desktop navigation */
    nav ul {
        display: flex !important;
        gap: 1.2rem;
        flex-wrap: nowrap;
    }

    nav ul li a {
        font-size: 0.95rem;
    }

    .nav-left {
        gap: 0.8rem;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
    }

    .nav-title {
        font-size: 1rem;
    }

    /* Never show hamburger on tablets */
    .hamburger {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
    }

    /* ================= FOOTER ================= */

    .footer {
        margin-top: 60px;
        padding: 60px 30px 25px;
    }

    .footer-content {
        gap: 30px;
    }

    /* Logo */
    .footer-logo img {
        width: 70px;
    }

    .footer-logo h2 {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    /* Stats */
    .footer-stats {
        gap: 25px;
        margin-top: -20px;
        margin-bottom: 30px;
    }

    .footer-stats .stat-divider {
        height: 40px;
    }

    .footer-stats .stat-item span {
        font-size: 2.2rem;
    }

    .footer-stats .stat-item small {
        font-size: 0.8rem;
    }

    /* Links */
    .footer-links {
        gap: 25px;
        margin-top: -20px;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    /* Social Icons */
    .footer-social {
        gap: 25px;
    }

    .footer-social a {
        font-size: 1.5rem;
    }

    .footer-logo-icon {
        width: 28px;
        height: 28px;
    }

    /* Bottom Text */
    .footer-bottom {
        margin-top: 30px;
        font-size: 0.9rem;
    }

}

/* ===================================
   BOSCOTSAV INFINITY ISLAND
=================================== */

.infinity-island{
    display:none;
}

@media (max-width:768px){

    .hamburger{
        display:none !important;
    }

    .nav-links{
        display:none !important;
    }

    body{
        padding-bottom:110px;
    }

    .infinity-island{

        position:fixed;

        left:50%;
        bottom:25px;

        transform:translateX(-50%);

        z-index:99999;

        display:flex;
        justify-content:center;
        align-items:center;
    }

    .island-trigger{

        width:68px;
        height:68px;

        border:none;
        outline:none;

        cursor:pointer;

        border-radius:999px;

        background:rgba(25,25,30,.85);

        backdrop-filter:blur(25px);

        border:1px solid rgba(255,255,255,.08);

        box-shadow:
            0 10px 40px rgba(0,0,0,.35),
            inset 0 1px 0 rgba(255,255,255,.08);

        color:#d4af37;

        font-size:2rem;

        transition:.5s cubic-bezier(.22,1,.36,1);
    }

    .infinity-symbol{
        display:block;
        transition:.4s ease;
    }

    .island-menu{

        position:absolute;

        left:50%;
        bottom:0;

        transform:
            translateX(-50%)
            scaleX(.3);

        width:320px;
        height:68px;

        border-radius:999px;

        background:rgba(25,25,30,.92);

        backdrop-filter:blur(25px);

        border:1px solid rgba(255,255,255,.08);

        display:flex;
        justify-content:space-evenly;
        align-items:center;

        opacity:0;
        pointer-events:none;

        transition:
            opacity .35s ease,
            transform .45s cubic-bezier(.22,1,.36,1);

        box-shadow:
            0 10px 40px rgba(0,0,0,.35);
    }

    .island-item{

        color:white;
        font-size:1.1rem;

        opacity:0;

        transform:translateY(12px);

        transition:.3s ease;

        text-decoration:none;
    }

    .island-item i{
        transition:.25s ease;
    }

    .island-item:active i{
        transform:scale(1.2);
    }

    .infinity-island.active .island-menu{

        opacity:1;

        pointer-events:auto;

        transform:
            translateX(-50%)
            scaleX(1);
    }

    .infinity-island.active .island-item{

        opacity:1;

        transform:translateY(0);
    }

    .infinity-island.active .island-trigger{

        transform:scale(.8);

        opacity:0;
    }

    .island-item.active{

        color:#d4af37;
    }

    @keyframes islandFloat{

        0%{
            transform:translateX(-50%) translateY(0);
        }

        50%{
            transform:translateX(-50%) translateY(-4px);
        }

        100%{
            transform:translateX(-50%) translateY(0);
        }
    }

    .infinity-island{
        animation:islandFloat 5s ease-in-out infinite;
    }
}

/* Desktop */

@media (min-width:769px){

    .infinity-island{
        display:none !important;
    }
}