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

body, html {
  font-family: 'Staatliches', sans-serif, "Bebas Neue", sans-serif;  /* or Inter/Open Sans */
  scroll-behavior: smooth;
  line-height: 1.6;
  background: #0a0a0a;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  letter-spacing: 3px;
}


body::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* ================= MAIN CONTAINER ================= */
.main-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ================= HEADER ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 2vw; 
  background: rgba(10, 10, 10, .35);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: #ffffff;
  font-size: clamp(1rem, 1.2vw, 1.5rem);
  font-weight: 700;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  height: clamp(60px, 10vh, 100px);
}

@media (max-width: 768px) {
  header {
    padding: 0.75em 6vw;
    font-size: 1.1rem;
    height: 60px;
  }
}

header.scrolled {
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-btn img {
  max-width: 200px;
  height: auto;
  display: block;
}

.logo-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.logo-btn img {
  display: block;
  width: 55%;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 45px;
  list-style: none;
  font-size: 1rem;
  font-weight: 500;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #0197F6, #0197F6);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Parent dropdown container */
.nav-links li {
  position: relative;
}



/* Dropdown menu styling */
.teams-dropdown {
  position: absolute;
  top: 100%;                /* start just below the header */
  left: 0;
  min-width: 100px;          /* width of dropdown */
  margin-top: 15px;           /* small gap for visual separation */
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.45) 0%,
    rgba(10, 10, 10, 0.6) 100%
  );                          /* subtle gradient for depth */
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 0 0 12px 12px; /* rounded bottom corners */
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  list-style: none;
  padding: 10px 0;
  
  opacity: 0;                 /* hidden initially */
  transform: translateY(-100px); /* start slightly above */
  pointer-events: none;       /* disable interactions when hidden */
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: -2;
}

/* Dropdown items */
.teams-dropdown li {
  padding: 0;
}

.teams-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  text-align: center;
}

.teams-dropdown a:hover {
  background: rgba(0, 212, 255, 0.15);
  color: #fff;
}

.nav-links li:hover > .teams-dropdown,
.nav-links li > .teams-dropdown:hover {
  opacity: 1;
  transform: translateY(-10px) translateX(-25px);
  pointer-events: auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* HERO */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 50vh;  /* takes half the viewport height */
  max-height: 80vh;  /* but not too tall */
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px; /* height of the fade */
  background: linear-gradient(to bottom, rgba(10,10,10,0) 0%, #0a0a0a 100%);
  pointer-events: none;
  z-index: 5; /* make sure it sits above the video but below text/buttons */
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(-100px);
}


.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
}

.hero-overlay h1 {
  font-family: 'Staatliches', sans-serif;
  font-size: 7rem;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  text-align: center;
}

/* Section */
.teams-section {
  padding: 60px 8%;
  background: #0f0f0f;
  color: white;
  text-align: center;
}

.section-title {
  font-family: 'Staatliches', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-subtitle {
  font-family: 'Staatliches', sans-serif;
  font-size: 2rem;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.teams-description {
  font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 40px;
}


/* Team Card Layout */
.team-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}
.team-card:hover {
  transform: translateY(-4px) scale(105%);
}

.team-left {
  flex: 0 0 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.team-logo {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 12px;
}

/* Right Content */
.team-right {
  flex: 1;
  text-align: left;
}

.team-name {
  font-size: 2rem;
  font-family: 'Staatliches', sans-serif;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: #f5f5f5;
}

.team-captain,
.team-members,
.team-accomplishments {
  font-size: 1.1rem;
  margin: 6px 0;
  line-height: 1.5;
  font-family: Roboto;
}

/* SCROLLING */

#top-card {
  scroll-margin-top: 425px; /* push it up 250px, adjust as needed */
}

#bottom-card {
  scroll-margin-top: -175px; /* push it up 250px, adjust as needed */
}

.scroll-arrow {
  position: fixed;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  transition: 0.3s;
  z-index: 999;
}

.sheet-container {
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 20px;
  overflow: visible;      /* allow iframe to extend outside if needed */
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);   /* extra space at the bottom */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sheet-container iframe {
  display: block;
  width: 100%;
  min-height: 600px;       /* make iframe taller than your content */
  border: none;
  border-radius: 20px;
}

.sheet-container.active {
  transform: scale(1.02);
  /* box-shadow simulates an outline without overflowing */
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 0 0 3px rgba(255,255,255,0.56);
}


.scroll-arrow:hover {
  background: rgba(0,0,0,0.9);
  transform: scale(1.1);
}

/* Positioning */
.scroll-arrow.down {
  bottom: 20px;
}

.scroll-arrow.up {
  bottom: 80px; /* stacked above the down arrow */
  display: none; /* hidden until scroll */
}
/* ================= RESPONSIVE FIXES ================= */
@media (max-width: 768px) {
  
  /* Header adjustments */
  header {
    font-size: 1rem;
    height: 60px;
    padding: 0.75em 4vw;
  }

  .logo-btn img {
    width: 55%;
    max-width: 140px;
    margin-left: -1vh;
  }

  /* Show mobile menu toggle, hide desktop nav */
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 0;
    right: 1vh;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding-top: 40px;
    
    /* Hidden by default */
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
  }

  .nav-links.mobile-open {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .nav-links a {
    text-decoration: none; /* remove underline */
    font-size: 1.2rem;
    padding: 15px 0;
    display: block;
    width: 100%;
    color: #fff;
  }

  /* Mobile dropdown - pure black, centered, full width links */
  .teams-dropdown {
    position: static;            /* stays in flow of menu */
    max-height: 0;               /* collapsed by default */
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;                   /* no extra spacing */
    padding: 0;
    background: #00000047;         /* pure black */
    border-radius: 0;            /* no rounding for full-width look */
    display: flex;
    flex-direction: column;      /* stack links vertically */
    align-items: center;         /* center links horizontally */
    justify-content: center;
    width: 100%;                 /* full width of nav */
    gap: 10px;
    transform: translateX(2px);                     /* space between links */
  }

  /* Expanded state */
  .nav-links li.dropdown-open > .teams-dropdown {
    max-height: 400px;
    transform: translateX(2px);           /* adjust for number of links */
  }

  /* Dropdown links */
  .teams-dropdown a {
    padding: 12px 0;
    text-align: center;
    width: 100%;                 /* full clickable width */
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none !important;
  }

  .teams-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05); /* subtle hover highlight */
    color: #00d4ff;
  }

  .nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #ffffff, #ffffff);
  transition: width 0.3s ease;
}

  /* Fix Instagram logo path */
  .team-socials img {
    width: 75px;
    margin-right: 0;
  }

  /* Hero Banner - Fix the overlay issues */
  .hero-banner {
    min-height: 40vh;
    max-height: 60vh;
  }

  .hero-banner img {
    transform: translateY(100px) scale(1.7); /* Less aggressive transform on mobile */
  }

  .hero-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px; /* height of the fade */
  background: linear-gradient(to bottom, rgba(10,10,10,0) 0%, #0a0a0a 100%);
  pointer-events: none;
  z-index: 5; /* make sure it sits above the video but below text/buttons */
  transform: scale(1.7); /* Match image transform */
}

  .hero-overlay {
    position: absolute; /* Keep absolute positioning */
    background: rgba(0,0,0,0.5); /* Darker overlay for better text contrast */
    z-index: 10; /* Ensure it's above the image */
  }

  .hero-overlay h1 {
    font-size: clamp(2rem, 12vw, 3rem); /* More responsive font sizing */
    line-height: 1.1;
    padding: 0 6%;
    text-align: center;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.9); /* Stronger shadow for mobile */
  }

  /* Sections */
  .teams-section {
    padding: 40px 6%;
  }

  .section-title {
    font-size: 1.8rem;
  }
  .section-subtitle {
    font-size: 1.3rem;
  }

  .teams-description {
    font-size: 1rem;
  }

  /* Team Cards */
  .team-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    padding: 20px;
  }

  .team-left {
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
  }

  .team-logo {
    max-width: 90px;
  }

  .team-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
  }

  .team-text {
    width: 100%;
  }

  /* Social icons */
  .team-socials {
    width: 100%;
    justify-content: center; /* center icons under text */
    margin-top: 10px;
  }

  .team-socials img {
    width: 75px; /* increase Instagram icon size */
    margin-right: 0;
  }

  .team-name {
    font-size: 1.5rem;
  }

  /* Sheet container */
  .sheet-container {
    margin: 20px auto;
    border-radius: 12px;
  }

  .sheet-container iframe {
    min-height: 450px;
    border-radius: 12px;
  }

  /* Scroll arrows */
  .scroll-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
    right: 15px;
  }
}

@media (orientation: landscape) and (max-height: 800px){
  .logo-btn {
    max-width: 150px !important;
  }
}