/* ==============================================
   NYU CONCRETE CANOE - Liquid Glassmorphism Theme
   ============================================== */

:root {
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-light: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.85);
  --blur-amount: 30px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background-color: #000;
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Rotating background slideshow */
.bg-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.bg-slideshow img.active {
  opacity: 1;
}

/* Prevent links from turning purple */
a,
a:visited {
  color: #fff;
  text-decoration: none;
}

/* Global Font Bolding */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  color: #fff;
}

p,
span,
li,
a {
  font-weight: 500;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.8rem 2rem;
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

nav.navbar {
  min-height: auto;
}

nav .container {
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

nav .navbar-brand img {
  height: 36px !important;
  max-height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

/* Bootstrap nav-link overrides for glassmorphic style */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Glossy Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(var(--blur-amount));
  -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s;
  animation: reveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards, float 6s ease-in-out infinite 0.8s;
}

.card:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.4);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

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

/* Main Content Layout */
main {
  max-width: 100%;
  /* Spans full width for background */
  margin: 0;
  padding: 0;
}

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  margin-bottom: 8rem;
}

.hero {
  height: 80vh;
  /* Taller hero */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  /* Changed for parallax layout */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.parallax-section {
  position: relative;
  background: rgba(10, 10, 10, 0.8);
  /* Opaque dark wall, very slightly transparent */
  padding-top: 5vh;
  padding-bottom: 10vh;
  margin-top: 0;
  min-height: 100vh;
  z-index: 1;
}

/* Specific heights for different pages */
.page-home .hero {
  height: 100vh;
}

.page-other .hero {
  height: 66vh;
}

/* Start at bottom third */

.hero h1 {
  font-size: clamp(3.5rem, 10vw, 6rem);
}

.hero p {
  font-size: 1.6rem;
}

/* Sponsor Flip Cards */
.flip-card {
  width: 100%;
  height: 280px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(var(--blur-amount));
  -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.card-front img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.card-back {
  background: rgba(0, 0, 0, 0.6);
  transform: rotateY(180deg);
  text-align: center;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  text-align: center;
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

p {
  font-size: 1.2rem;
  color: white;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
}

ol, li {
  font-size: 1.1rem;
  color: white;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.media-window {
    width: 100%;
    max-width: 820px;
    height: 420px;
    margin-top: 1rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: #000;
}

.media-window video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}



/* Features Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Buttons */
.btn {
  color: white;
  display: inline-block;
  padding: 1rem 2.5rem;
  background: rgba(30, 30, 30, 0.67);
  border: 1px solid rgba(255, 255, 255);
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  text-align: center;
}

.btn:hover {
  background: white;
  color: black;
  transform: scale(1.05);
}

/* Timeline Components */
.timeline-year {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.tag {
  padding: 0.3rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==============================================
   SIMPLE CAROUSEL STYLES
   ============================================== */

.simple-carousel {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.2);
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
}

.carousel-track::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.carousel-btn i {
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-btn.prev {
    left: 10px;
  }
  
  .carousel-btn.next {
    right: 10px;
  }
  
  .carousel-slide img {
    max-height: 300px;
  }

  .navbar-brand img {
    height: 28px;
  }

  .navbar-collapse {
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 16px 16px;
    margin: 0.5rem -2rem 0;
    padding: 0.75rem 1.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.7rem 1rem;
    border-radius: 10px;
  }

}

footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
}