/* IBM Quantum Fall Fest 2025 - Custom Styles */

:root {
  /* IBM-inspired Color Palette */
  --primary-blue: #0f62fe;
  --primary-blue-hover: #0353e9;
  --secondary-blue: #4589ff;
  --accent-teal: #08bdba;
  --accent-purple: #8a3ffc;
  /* Added BME red as accent color from the university logo */
  --bme-red: #a53e3e;
  --bme-red-hover: #8b3333;
  --bme-red-light: rgba(165, 62, 62, 0.1);
  /* Updated to soft beige background */
  --cream-bg: #f5f3f0;
  --warm-white: #ffffff;
  --text-primary: #161616;
  --text-secondary: #525252;
  --text-muted: #6f6f6f;
  --border-light: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
}
/* Make navbar toggler (hamburger) white */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.6); /* optional white border */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Typography */
body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--cream-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
}

.display-3,
.display-4,
.display-5 {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
}

/* Custom Bootstrap Overrides */
.btn-primary {
  background-color: var(--bme-red);
  border-color: var(--bme-red);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--bme-red-hover);
  border-color: var(--bme-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(165, 62, 62, 0.3);
}

.btn-outline-primary {
  color: var(--bme-red);
  border-color: var(--bme-red);
  font-weight: 500;
}

.btn-outline-primary:hover {
  background-color: var(--bme-red);
  border-color: var(--bme-red);
  transform: translateY(-2px);
}

.text-primary {
  color: var(--bme-red) !important;
}

.bg-primary {
  background-color: var(--bme-red) !important;
}

/* BME red accents */
.text-bme-red {
  color: var(--bme-red) !important;
}

.bg-bme-red {
  background-color: var(--bme-red) !important;
}

/* Navigation */
.navbar {
  background-color:  #8b3333;;
  backdrop-filter: blur(10px);               /* blur effect */
  -webkit-backdrop-filter: blur(10px);       /* Safari support */
  padding: 1rem 0;

}

/* Brand */
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff !important;
}

/* Nav links */
.navbar .nav-link {
  font-weight: 500;
  color: #fff !important;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link:active {
  color: #f8d7da !important; /* soft pinkish hover */
}
.navbar-custom {
  background-color: rgba(139, 51, 51, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}


/* Register button (inverse style) */
.navbar .btn-register {
  background-color: #fff !important;
  color: var(--bme-red) !important;
  border: 2px solid #fff;
  font-weight: 600;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.navbar .btn-register:hover {
  background-color: var(--bme-red) !important;
  color: #fff !important;
  border-color: #fff;
}



/* Hero Sections */
.hero-section {
  background: linear-gradient(135deg, var(--cream-bg) 0%, rgba(255, 255, 255, 0.8) 100%);
  padding-top: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section-small {
  background: linear-gradient(135deg, var(--cream-bg) 0%, rgba(255, 255, 255, 0.8) 100%);
  padding: 120px 0 80px;
}

.hero-content h1,
.hero-content h2 {
  background: linear-gradient(135deg, var(--bme-red) 0%, var(--primary-blue) 50%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero image */
.hero-image img {
  transition: none;
  transform: none !important;
  position: static !important;
  will-change: auto;
}

.hero-image {
  transform: none !important;
  position: relative;
  padding-left: 2rem;
}
/* Global BME Red Button */
.btn-bme-red {
  background-color: var(--bme-red);
  border-color: var(--bme-red);
  color: #fff !important;
  font-weight: 500;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-bme-red:hover {
  background-color: var(--bme-red-hover);
  border-color: var(--bme-red-hover);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(165, 62, 62, 0.3);
}

/* Floating subtle animation for hero image */
.floating-image {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Cards */
.card {
  border-radius: 16px;
  transition: all 0.3s ease;
  background-color: var(--warm-white);
  
}

/* Speaker cards in index.html */
#speakers .card {
  max-width: 350px;
  margin: 0 auto 20px;
  text-align: center;
}
/* Speaker section images */
#speakers .card img {
  border-radius: 50%;
  width: 140px;
  height: 140px;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
}




.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

.card-body {
  padding: 2rem;
}

/* ============================
   Timeline Styling
   ============================ */

.timeline {
  position: relative;
  padding-left: 2.5rem; /* extra room for larger markers */
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top:1.4rem;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    rgba(165, 62, 62, 0.9),   /* BME red */
    rgba(15, 98, 254, 0.7),   /* IBM blue */
    rgba(8, 189, 186, 0.5)    /* teal */
  );
  border-radius: 2px;
}

/* Each timeline item */
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

/* Timeline markers (the circles) */
.timeline-marker {
  position: absolute;
  left: -2.2rem;
  top: 0.6rem;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at center, var(--primary-blue) 0%, var(--bme-red) 100%);
  border-radius: 50%;
  border: 2px solid var(--warm-white);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

/* Marker hover effect */
.timeline-marker:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

/* Pulse animation for markers */
.timeline-marker::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(165, 62, 62, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.6;
  }
}

/* Timeline content cards */
.timeline-content {
  margin-left: 1.5rem;
}

.timeline-content .card {
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--warm-white);
}

.timeline-content .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

/* Date badge */
.timeline-content .badge {
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


/* Icon Boxes */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--bme-red), var(--secondary-blue));
  border-radius: 20px;
  color: white;
  margin-bottom: 1rem;
}

.icon-box.bme-accent {
  background: linear-gradient(135deg, var(--bme-red), var(--primary-blue));
}

/* About Section Refinements */
.about-section p {
  text-align: left;
  text-justify: inter-word;   /* improves spacing */
  line-height: 1.8;
  hyphens: auto;              /* allow breaks */
  -webkit-hyphens: auto;      /* iOS Safari */
  -moz-hyphens: auto;         /* Firefox */
  word-spacing: 0.05em;       /* reduces stretched gaps */
}

.about-section .lead {
  max-width: 700px;  
  margin-left: auto;
  white-space: normal;
  margin-right: auto; 
  text-align: center; 
}

.about-section img {
  max-width: 45%;
  height: auto;
}

.about-section ul li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.about-section ul li i {
  font-size: 1.2rem;
  margin-right: 0.6rem;
  color: var(--bme-red);
}

/* Mobile/tablet refinements */
/* Improve readability of About section on mobile */
/* About Section - Mobile readability */
@media (max-width: 768px) {
  .about-section p {
    font-size: 0.9rem;        /* smaller font for phones */
    line-height: 1.5;         /* tighter line height */
    font-weight: 400;         /* normal weight */
    letter-spacing: 0.2px;    /* subtle spacing */
    margin-bottom: 1rem;
    max-width: 95%;           /* prevent text from stretching edge-to-edge */
    margin-left: auto;
    margin-right: auto;
  }

  .about-section .lead {
    font-size: 1rem;          /* slightly larger than body */
    line-height: 1.6;
    text-align: justify;
  }
}



  .about-section ul {
    text-align: left;
    margin: 0 auto;
    max-width: 95%;
    padding-left: 1rem;    /* prevents text hitting edge */
  }

  .about-section ul li {
    font-size: 1rem;       /* balanced with mobile font size */
    line-height: 1.5;
  }




/* Partner Logos */
.partners-section {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 3rem 0;
}

.partner-logo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem;
  height: 200px; 
  text-align: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.partner-logo img {
  max-height: 120px;
  max-width: 90%;    
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: grayscale(20%);
}



.partner-logo:hover img {
  filter: grayscale(0%);
  transform: scale(1.08);
}

.partner-logo p {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Forms */
.form-control,
.form-select {
  border-radius: 8px;
  border: 2px solid var(--border-light);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--bme-red);
  box-shadow: 0 0 0 0.2rem rgba(165, 62, 62, 0.25);
}

.form-check-input:checked {
  background-color: var(--bme-red);
  border-color: var(--bme-red);
}

/* Sections */
section {
  scroll-margin-top: 80px;
}

.bg-light {
  background-color: rgba(255, 255, 255, 0.7) !important;
}

.bg-bme-light {
  background-color: var(--bme-red-light) !important;
}

.bg-partners {
  background-color: var(--cream-bg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* Footer */
footer {
  background-color: var(--text-primary) !important;
}


/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes sectionSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-animate {
  animation: sectionSlideIn 0.8s ease-out;
}


html {
  scroll-behavior: auto;
}

/* Loading States */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success States */
.alert-success {
  background-color: rgba(8, 189, 186, 0.1);
  border-color: var(--accent-teal);
  color: var(--text-primary);
}

/* Custom Utilities */
.text-balance {
  text-wrap: balance;
}

.shadow-lg {
  box-shadow: 0 10px 25px var(--shadow-medium) !important;
}

.rounded-4 {
  border-radius: 1rem !important;
}

/* Venue Details */
.venue-details .bi {
  color: var(--bme-red);
}

.venue-details .bi.bme-accent {
  color: var(--primary-blue);
}

/* Contact cards refined */
.contact-card {
  border-radius: 12px;
  padding: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;      
  margin: 0 auto;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-card i {
  font-size: 2rem;
}

.contact-card h5 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.contact-card p {
  font-size: 0.9rem;
  margin: 0;
  white-space: nowrap;  
}





/* Contact section */
.bg-contact-red {
  background-color: var(--bme-red) !important;
}

.bg-contact-red h2,
.bg-contact-red p,
.bg-contact-red .lead {
  color: white !important;
}
/* Contact Section Refined */
#contact {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

#contact h2 {
  font-size: 3rem;
}

#contact p {
  font-size: 1rem;
}

.contact-item {
  max-width: 280px;
  margin: 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.contact-item i {
  font-size: 1.8rem;
}

.contact-item h6 {
  font-size: 1rem;
}
.contact-info a {
  transition: color 0.3s ease, transform 0.2s ease;
}

.contact-info a:hover {
  color: var(--primary-blue); 
  transform: scale(1.2);
}


/* Team member cards inside #team */
#team .card {
  max-width: 350px;
  margin: 0 auto 20px;
}

/* Center card content */
#team .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers image + text */
  text-align: center;
}

/* Team member photos */
#team .card-body > img {
  display: block;
  margin: 0 auto 1rem;   /* fixed gap above the name */
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}



/* Compact Hero */
.hero-section-small {
  padding: 120px 0 20px;
  min-height: auto;
  text-align: center;
}

.hero-section-small h1 {
  font-size: 2rem;
}

.hero-section-small p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.team-hero-badge {
  max-width: 150px;
  opacity: 0.95;
  transition: transform 0.3s ease;
}
.team-hero-badge:hover {
  transform: scale(1.05);
}
/* Hero CTA buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* center horizontally */
  gap: 1rem;
}

.hero-buttons .btn {
  flex: 1 1 auto;
  min-width: 140px;
  text-align: center;
}

/* Mission Card more compact */
.mission-card {
  padding: 2rem 2.5rem;  
  margin-top: 20px;      /* pull it closer to hero */
}
.mission-card h3 {
  margin-bottom: 1rem;
}
.mission-card p {
  font-size: 1rem;
  line-height: 1.5; 
}



/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 80px;
    text-align: center;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline::before {
    left: 0.5rem;
  }

  .timeline-marker {
    left: -1.5rem;
  }

  .timeline-content {
    margin-left: 0.5rem;
  }
}

/* Team Page Hero Badge */
.team-hero-badge {
  max-width: 250px;
  transition: transform 0.3s ease;
}
.team-hero-badge:hover {
  transform: scale(1.05);
}

/* Mission Atom */
.mission-atom {
  max-width: 280px;
  animation: slowFloat 6s ease-in-out infinite alternate;
}

/* Simple floating animation */
@keyframes slowFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
@media (max-width: 768px) {
  .hero-image {
    margin-top: 2rem;
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .partner-logo {
    height: auto;
  }

  .partner-logo img {
    max-height: 80px;
    max-width: 80%;  
  }

  .card {
    max-width: 90%;   
  }
}

/* Prevent horizontal overflow */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Make sure images scale inside container */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
