/* ====================================================================
   THE LIQUID HOTPLATES - WEBSITE STYLES
   ==================================================================== */

/* ===== FONTS ===== */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');


/* ============== LOGO ========== */
.logo-img {
  height: 40px; /* CHANGE: Adjust logo size */
  width: auto;
  object-fit: contain;
}

/* ===== COLOR VARIABLES ===== */
:root {
  --royal-blue: #0953EA;
  --off-white: #FFF7EF;
  --black: #000000;
  --gray: #1a1a1a;
  --light-gray: #2a2a2a;
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'General Sans', sans-serif;
  background-color: var(--black);
  color: var(--off-white);
  line-height: 1.6;
}


/* ====================================================================
   NAVIGATION BAR
   ==================================================================== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo {
  font-size: 2rem;
}

.site-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--off-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s;
  letter-spacing: 0.3px;
}

/* Underline animation on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--royal-blue);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--royal-blue);
}

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


/* ====================================================================
   TYPOGRAPHY
   ==================================================================== */

h1, h2, h3 {
  font-family: 'General Sans', sans-serif;
}

h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--off-white);
  letter-spacing: -0.3px;
}


/* ====================================================================
   LAYOUT & SECTIONS
   ==================================================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 6rem 0;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.5;
}


/* ====================================================================
   HERO SECTIONS (Homepage & Members Page)
   ==================================================================== */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5% 4rem;
  background: linear-gradient(135deg, var(--black) 0%, var(--gray) 100%);
  position: relative;
  overflow: hidden;
}

/* Homepage hero with background image */
.hero-home {
  background-image: url('images/ICCA-2025.jpg');
  background-size: cover;
  background-position: center; /* CHANGE: center top, center bottom, 50% 30%, etc. */
  background-repeat: no-repeat;
}

/* Members page hero with background image */
.hero-members {
  background-image: url('images/current-members.jpeg');
  background-size: cover;
  background-position: center center; /* CHANGE: same options as above */
  background-repeat: no-repeat;
}

/* Dark overlay so text is readable over images */
.hero-overlay,
.hero-members::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65); /* CHANGE: 0.65 = 65% dark, adjust 0-1 */
  z-index: 1;
}

.hero-content,
.hero-members h1,
.hero-members p {
  position: relative;
  z-index: 2; /* Keeps text above overlay */
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 4.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.7;
}

.hero .social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Page hero (for members, events, etc.) */
.page-hero {
  padding: 10rem 5% 5rem;
  text-align: center;
  background:var(--black); /*should remove gradient*/
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--off-white), var(--royal-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: 1.3rem;
  opacity: 0.8;
}


/* ====================================================================
   BUTTONS
   ==================================================================== */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
  color: var(--off-white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Ripple effect on hover */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(9, 83, 234, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background-color: var(--royal-blue);
  border-color: var(--royal-blue);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(9, 83, 234, 0.5);
}

/* Outline button variant */
.btn-outline {
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--off-white);
}

.btn-outline:hover {
  background-color: var(--royal-blue);
  color: var(--off-white);
  border-color: var(--royal-blue);
}

/* Small button (for flip cards) */
.btn-small {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background-color: var(--royal-blue);
  color: var(--off-white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.btn-small:hover {
  background-color: #0742c4;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(9, 83, 234, 0.4);
}


/* ====================================================================
   MEMBER FLIP CARDS (members.html)
   ==================================================================== */

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 460px; /* CHANGE: Adjust card height */
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

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

.flip-card-front, 
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Front of card */
.flip-card-front {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  padding-bottom: 0.75rem; /* Half the normal padding at bottom */
  align-items: center;
  justify-content: flex-start;
}

/* Back of card */
.flip-card-back {
  background: rgba(9, 83, 234, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(9, 83, 234, 0.3);
  color: var(--off-white);
  transform: rotateY(180deg);
  padding: 2rem 1.5rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Member photo - TALL RECTANGLE with rounded corners */
.member-photo {
  width: 100%;
  max-width: 200px; /* CHANGE: Max width of photo */
  height: 280px; /* CHANGE: Height of photo (tall rectangle) */
  border-radius: 15px; /* CHANGE: Corner roundness */
  overflow: hidden;
  margin-bottom: 1.25rem; /* CHANGE: Space between photo and name */
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--royal-blue);
  border: 2px solid rgba(9, 83, 234, 0.3);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info section at bottom - NO wrapper div needed, just direct children */
.flip-card-front h3 {
  font-size: 1.3rem; /* CHANGE: Name size */
  margin-bottom: 0.2rem; /* CHANGE: Space after name */
  font-weight: 600;
  color: var(--off-white);
  line-height: 1.2;
}

/* Leadership title (President, Music Director, etc.) */
.flip-card-front .member-title {
  color: var(--royal-blue);
  font-weight: 600;
  font-size: 0.7rem; /* CHANGE: Title size */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.15rem; /* CHANGE: Space after title */
}

/* Orange award badge for members */
.member-award {
  color: #FF6B35; /* Orange color */
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.15rem;
  background: rgba(255, 107, 53, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  display: inline-block;
}

.flip-card-front .member-award {
  color: #FF6B35;
}

/* Voice part (Soprano, Alto, etc.) */
.flip-card-front .member-part {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem; /* CHANGE: Part size */
  margin-bottom: 0.1rem; /* CHANGE: Space after part */
  font-weight: 500;
}

/* Graduation year */
.flip-card-front .member-year {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem; /* CHANGE: Year size */
  font-weight: 400;
  margin-bottom: 0; /* No space after year */
}

.flip-card-back .member-award {
  color: #FF6B35;
  background: rgba(255, 107, 53, 0.2);
}

/* Back of card styles */
.flip-card-back h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--off-white);
}

.flip-card-back .member-title {
  color: var(--royal-blue);
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.flip-card-back .member-part {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.member-bio {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 0.5rem; /* CHANGE: Tighter spacing between bio lines */
  max-width: 90%;
}

.flip-hint {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: auto;
  font-style: italic;
}

/* ====================================================================
   INFO FLIP CARDS (Homepage "What We Do" section)
   ==================================================================== */

.info-flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.info-flip-card {
  background-color: transparent;
  height: 280px;
  perspective: 1000px;
}

.info-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

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

.info-flip-front,
.info-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.info-flip-front {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-flip-back {
  background: linear-gradient(135deg, rgba(9, 83, 234, 0.2), rgba(9, 83, 234, 0.1));
  border: 1px solid rgba(9, 83, 234, 0.3);
  transform: rotateY(180deg);
}

.info-flip-front .feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.info-flip-front h3,
.info-flip-back h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--off-white);
}

.info-flip-front p,
.info-flip-back p {
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}


/* ====================================================================
   ALUMNI SECTION
   ==================================================================== */

.alumni-section {
  background: var(--gray);
}


/*====================================================================
========================================================================
===========================================================================
==========================================================================
                  EVENTS PAGE      
                  ===============================================
                  ==============================================
                  ========================================================
                  ==================================================== */


/* ====================================================================
   HORIZONTAL TIMELINE - EVENTS PAGE
   ==================================================================== */

.timeline-horizontal-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible; /* Allow overflow */
  padding: 0 5%;
  padding-top: 280px; /* CHANGED: Add top padding for top cards */
  padding-bottom: 280px; /* CHANGED: Add bottom padding for bottom cards */
  scroll-behavior: smooth;
}

/* Styled scrollbar */
.timeline-horizontal-container::-webkit-scrollbar {
  height: 10px;
}

.timeline-horizontal-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.timeline-horizontal-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(9, 83, 234, 0.6), var(--royal-blue));
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-horizontal-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--royal-blue), rgba(9, 83, 234, 0.8));
}

.timeline-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: max-content;
  padding: 0; /* CHANGED: Remove padding, using container padding instead */
}

/* Horizontal line */
.timeline-horizontal::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(9, 83, 234, 0.2), var(--royal-blue), rgba(9, 83, 234, 0.2));
  transform: translateY(-50%);
}

/* Timeline items */
.timeline-h-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 0 5rem; /* Space between events */
}

/* Dots on timeline */
.timeline-h-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--royal-blue);
  border: 4px solid var(--black);
  box-shadow: 0 0 0 4px rgba(9, 83, 234, 0.3);
  z-index: 2;
  position: relative;
}

/* Present dot - JUST A GLOWING DOT */
.timeline-h-dot-present {
  width: 30px;
  height: 30px;
  background: var(--royal-blue);
  box-shadow: 0 0 0 6px rgba(9, 83, 234, 0.4), 0 0 25px rgba(9, 83, 234, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(9, 83, 234, 0.4), 0 0 25px rgba(9, 83, 234, 0.8);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(9, 83, 234, 0.2), 0 0 35px rgba(9, 83, 234, 1);
  }
}

/* Cards container */
.timeline-h-card {
  width: 350px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cards above timeline */
.timeline-h-top {
  position: absolute;
  bottom: 35px; /* Distance from dot */
}

/* Cards below timeline */
.timeline-h-bottom {
  position: absolute;
  top: 35px; /* Distance from dot */
}

/* Present marker - REMOVED the card, just the dot now */
.timeline-h-center {
  display: none; /* CHANGED: Hide the Present card */
}

.present-marker {
  display: none; /* CHANGED: Hide the Present text/logo */
}

/* Event flip cards */
.event-card-flip {
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.event-card-flip .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

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

.event-flip-front,
.event-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.event-flip-front {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-flip-back {
  background: rgba(9, 83, 234, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(9, 83, 234, 0.3);
  transform: rotateY(180deg);
}

.event-date-small {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--royal-blue);
  background: rgba(9, 83, 234, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-flip-front h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--off-white);
}

.event-location {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.event-snippet {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  font-size: 0.95rem;
}

.event-flip-back h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--off-white);
}

/*====================================================================
========================================================================
===========================================================================
==========================================================================
                  EVENTS PAGE ENDD    
                  ===============================================
                  ==============================================
                  ========================================================
                  ==================================================== */



/* ====================================================================
   EVENT SUBPAGE - PHOTO GALLERY
   ==================================================================== */

.event-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.event-photo-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.event-photo-gallery img:hover {
  transform: scale(1.03);
  border-color: var(--royal-blue);
  box-shadow: 0 10px 30px rgba(9, 83, 234, 0.4);
}

/* ====================================================================
   SCROLL ANIMATIONS
   ==================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


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

footer {
  background-color: var(--light-gray);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  opacity: 0.7;
  font-size: 0.9rem;
}


/* ====================================================================
   RESPONSIVE DESIGN (Mobile/Tablet)
   ==================================================================== */

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .members-grid,
  .info-flip-grid {
    grid-template-columns: 1fr;
  }
  
  .flip-card {
    height: 450px;
  }
}