/* 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);
}

/* MOBILE MENU TOGGLE FIX */
.nav-links.show {
  display: flex !important;
}

/* 
@media (max-width: 600px) {
.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);
}
} */

/* ========================= */
/* HAMBURGER (BASE) */
/* ========================= */
/* 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;
  }
}
/* ============================= */
/* NEW MODERN SCHEDULE UI */
/* ============================= */

.schedule-wrapper {
  max-width: 1000px;
  margin: 120px auto 80px;
  padding: 0 20px;
}

.schedule-title {
  text-align: center;
  font-size: 3rem;
  color: #8ea9db;
  font-family: 'Cinzel', serif;
  margin-bottom: 40px;
  letter-spacing: 2px;
}
.card.compact {
  padding: 10px 14px;
  gap: 10px;
  transform: scale(0.98);
}

.card.compact .desc {
  display: none;
}

.card.compact .location {
  font-size: 0.8rem;
}

/* Day sections */
.day-block {
  margin-bottom: 60px;
}

.day-title {
  font-size: 1.6rem;
  color: #cdd9ff;
  margin-bottom: 20px;
  border-left: 4px solid #8ea9db;
  padding-left: 12px;
}

/* Timeline layout */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Event card */
.card {
  display: flex;
  gap: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(142,169,219,0.15);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  transform: translateZ(0);
}

/* glowing edge accent */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(142,169,219,0.25), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* hover = tech glow + lift */
.card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(142,169,219,0.5);
  box-shadow: 0 10px 40px rgba(17, 6, 48, 0.659);
}

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

/* time pill */
.time-badge {
  min-width: 90px;
  height: fit-content;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(142,169,219,0.15);
  color: #8ea9db;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
}

/* text area */
.card-content h3 {
  margin: 0;
  color: #e0e6f6;
  font-size: 1.1rem;
}

.location {
  font-size: 0.9rem;
  color: #8ea9db;
  margin: 4px 0;
}

.desc {
  font-size: 0.85rem;
  color: #b8c6f0;
}

/* mobile */
@media (max-width: 600px) {
  .card {
    flex-direction: column;
    gap: 10px;
  }

  .time-badge {
    width: fit-content;
  }
}
/* ========================= */
/* CONTROLS BAR */
/* ========================= */

.schedule-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 35px;
  align-items: center;
}

#eventSearch {
  width: 100%;
  max-width: 520px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(142,169,219,0.2);
  background: rgba(10,15,25,0.4);
  color: #e0e6f6;
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
}

#eventSearch:focus {
  border-color: rgba(142,169,219,0.6);
  box-shadow: 0 0 25px rgba(142,169,219,0.2);
  transform: scale(1.01);
}

#eventSearch::placeholder {
  color: rgba(224,230,246,0.5);
}

.card.live {
  border-color: #8ea9db;
  box-shadow: 0 0 20px rgba(142,169,219,0.4);
}

.card.live::after {
  content: "LIVE";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 12px;
  background: #8ea9db;
  color: #0d1b2a;
  font-weight: 700;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.6; transform: scale(1); }
}
/* Tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(142,169,219,0.3);
  background: transparent;
  color: #a5b8e0;
  cursor: pointer;
  transition: 0.3s ease;
}

.tab:hover {
  background: rgba(142,169,219,0.15);
}

.tab.active {
  background: rgba(142,169,219,0.25);
  color: #fff;
  box-shadow: 0 0 12px rgba(142,169,219,0.4);
}

/* ========================= */
/* TIMELINE ANIMATION LINE */
/* ========================= */

.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  width: 3px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(142,169,219,0.8),
    transparent
  );
  box-shadow: 0 0 10px rgba(142,169,219,0.4);
}

@keyframes pulseLine {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

/* ========================= */
/* HIDE FILTER ANIMATION */
/* ========================= */
.main-content {
  padding-bottom: 120px; /* adjust if footer is tall */
}
.card.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}
.schedule-container {
  padding-bottom: 120px;
}
.card:last-child {
  margin-bottom: 80px;
}
@media (max-width: 767px) {
  .schedule-container,
  .events-container,
  .main-content {
    padding-bottom: 160px;
  }
}
/* ============================= */
/* 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;
    }
}