@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;600&display=swap');

:root {
  --calgary-red: #C8102E; 
  --stampede-black: #231F20;
  --bow-blue: #005C8A;
  --white: #FFFFFF;
  --dark: #1a1a1a;
  --light-gray: #f5f5f5;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
  position: relative;
  overflow-x: hidden;
}

/* Updated to subtle Calgary Red watermark */
body::before {
  content: '1875-2026';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15vw;
  font-weight: 700;
  color: rgba(200, 16, 46, 0.03); 
  z-index: -1;
  pointer-events: none;
  white-space: nowrap;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 1rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo-badge {
  background: var(--calgary-red);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-left: 0.75rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--calgary-red);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.4rem;
  z-index: 1002;
  position: relative;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  .nav-container {
    justify-content: space-between;
  }
  
  .logo-text {
    font-size: 0.75rem;
  }
  
  .hamburger {
    display: flex;
    margin-left: auto;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-links.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    z-index: 1001;
    animation: slideIn 0.3s ease;
    overflow-y: auto;
    gap: 1rem;
  }
  
  .nav-links.active a {
    font-size: 1.3rem;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* Hero Section - Updated to a sleek Black to Red gradient */
.hero {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--stampede-black), var(--calgary-red));
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--white);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--calgary-red);
  color: var(--white);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Content Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
  color: var(--stampede-black);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.bento-card {
  background: var(--white);
  border: 2px solid var(--calgary-red);
  border-radius: 10px;
  padding: 2rem;
  text-decoration: none;
  color: var(--dark);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: 'YYC';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(200, 16, 46, 0.05);
  font-family: 'Playfair Display', serif;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(200, 16, 46, 0.2);
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--stampede-black);
}

.bento-card p {
  color: #666;
}

/* Countdown Timer */
.countdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}

.countdown-item {
  background: var(--calgary-red);
  color: var(--white);
  padding: 1.5rem 1rem;
  border-radius: 10px;
  text-align: center;
}

.countdown-value {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  font-family: 'Playfair Display', serif;
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--calgary-red);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
}

.timeline-content {
  background: var(--white);
  border: 2px solid var(--bow-blue);
  border-radius: 10px;
  padding: 2rem;
  width: calc(50% - 2rem);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-year {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: var(--calgary-red);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

/* Interactive Slider */
.time-slider-container {
  margin: 3rem 0;
  text-align: center;
}

.slider-display {
  width: 100%;
  height: 400px;
  background: var(--light-gray);
  border-radius: 10px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.map-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
}

.map-1826 {
  background: linear-gradient(135deg, #8B7355, #A0826D);
  color: var(--white);
}

.map-2026 {
  background: linear-gradient(135deg, var(--bow-blue), var(--calgary-red));
  color: var(--white);
}

input[type="range"] {
  width: 100%;
  max-width: 600px;
  height: 8px;
  border-radius: 5px;
  background: var(--light-gray);
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--calgary-red);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--calgary-red);
  cursor: pointer;
  border: none;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.3s;
}

.card:hover {
  border-color: var(--calgary-red);
}

.card h3 {
  color: var(--stampede-black);
  margin-bottom: 1rem;
}

/* Interactive Map */
.vibe-map {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 2rem;
  min-height: 400px;
  position: relative;
}

.map-pins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.map-pin {
  background: var(--white);
  border: 2px solid var(--bow-blue);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.map-pin:hover {
  background: var(--bow-blue);
  color: var(--white);
  transform: scale(1.05);
}

/* Quiz */
.quiz-container {
  max-width: 700px;
  margin: 0 auto;
}

.question {
  background: var(--white);
  border: 2px solid var(--calgary-red);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.question h3 {
  color: var(--stampede-black);
  margin-bottom: 1.5rem;
}

.options {
  display: grid;
  gap: 1rem;
}

.option {
  background: var(--light-gray);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.option:hover {
  border-color: var(--calgary-red);
  background: var(--white);
}

.option.correct {
  background: #d4edda;
  border-color: #28a745;
}

.option.incorrect {
  background: #f8d7da;
  border-color: #dc3545;
}

/* Footer - Updated to a sleek dark slate */
footer {
  background: linear-gradient(135deg, #1A1A1A 0%, #000000 100%);
  color: var(--white);
  padding: 3rem 1rem 1rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: 'YYC YYC YYC YYC YYC YYC YYC YYC YYC YYC';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 8rem;
  font-weight: 700;
  color: rgba(200, 16, 46, 0.05);
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  word-spacing: 3rem;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: 
    radial-gradient(ellipse 3px 30px at 50% 0%, rgba(200, 16, 46, 0.2) 0%, transparent 100%),
    radial-gradient(ellipse 3px 20px at 35% 30%, rgba(200, 16, 46, 0.2) 0%, transparent 100%),
    radial-gradient(ellipse 3px 20px at 65% 30%, rgba(200, 16, 46, 0.2) 0%, transparent 100%),
    radial-gradient(ellipse 3px 15px at 25% 35%, rgba(200, 16, 46, 0.2) 0%, transparent 100%),
    radial-gradient(ellipse 3px 15px at 75% 35%, rgba(200, 16, 46, 0.2) 0%, transparent 100%),
    radial-gradient(ellipse 5px 15px at 15% 40%, rgba(200, 16, 46, 0.2) 0%, transparent 100%),
    radial-gradient(ellipse 5px 15px at 85% 40%, rgba(200, 16, 46, 0.2) 0%, transparent 100%);
  background-repeat: no-repeat;
  background-position: center bottom;
  z-index: 0;
  opacity: 0.4;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--calgary-red);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Balloons Animation */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.balloon {
  position: fixed;
  font-size: 3rem;
  animation: float 2s ease-in-out;
  pointer-events: none;
  z-index: 9999;
}

/* Scroll To Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--calgary-red);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--stampede-black);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
  
  .timeline-year {
    left: 20px;
    transform: none;
  }
  
  .hero {
    height: 60vh;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Guestbook Form */
.guestbook-form {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--white);
  border: 2px solid var(--calgary-red);
  border-radius: 10px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--stampede-black);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--light-gray);
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  background: var(--calgary-red);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

/* Status Indicators */
.status-indicator {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  margin: 0.5rem;
}

.status-open {
  background: #d4edda;
  color: #155724;
}

.status-closed {
  background: #f8d7da;
  color: #721c24;
}

.status-maintenance {
  background: #fff3cd;
  color: #856404;
}