:root {
  --midnight: #0b2c47;
  --forest: #1f4d2e;
  --wheat: #d4a017;
  --charcoal: #333333;
  --offwhite: #f7f7f5;
  --beige: #f3eee6;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--charcoal);
  background-color: var(--offwhite);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Styles */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px var(--shadow);
}

/* Initial states for animated elements */
.hero h1, 
.hero-subtitle {
  opacity: 0;
  transform: translateY(50px);
}

.event-details,
.filter-buttons .filter-btn {
  opacity: 0;
  transform: translateY(30px);
  top: 5;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--forest);
  font-weight: 700;
  font-size: 1.25rem;
}
.brand img {
  border-radius: 8px; 
}

.brand-icon {
  width: 32px;
  height: 32px;
  color: var(--forest);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
}

.nav-links a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.nav-links .active {
  color: var(--forest);
  font-weight: 700;
}

.cta-btn {
  background-color: var(--forest);
  color: var(--white);
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background-color: #1a3c26;
  transform: translateY(-2px);
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--forest);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

#mobileDrawer {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background-color: var(--white);
  padding: 1rem 0;
  box-shadow: 0 4px 6px var(--shadow);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  z-index: 40;
}

#mobileDrawer.is-open {
  transform: translateX(0);
}

#mobileDrawer a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

#mobileDrawer a:hover {
  background-color: var(--offwhite);
}

#mobileDrawer .cta-btn {
  margin: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Hero Section */
.hero {
  background-color: var(--beige);
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 1rem;
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInDown 1s ease-out 0.2s forwards;
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 1.5rem;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Agenda Header */
.agenda-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: var(--beige);
  padding: 1.25rem 1.75rem;
  border-radius: 8px;
  border-left: 4px solid var(--forest);
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-top: 1rem;
}

.event-detail {
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  line-height: 1.6;
}

.event-detail strong {
  color: var(--forest);
  margin-right: 0.75rem;
  min-width: 55px;
  font-weight: 600;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  width: 100%;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--charcoal);
  background-color: var(--white);
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover {
  background-color: var(--offwhite);
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

/* Improved accessibility - focus styles */
.filter-btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(31, 77, 46, 0.3);
}

/* Remove default focus outline when using mouse */
.filter-btn:focus:not(:focus-visible),
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 6px;
  border: 2px solid var(--forest);
  color: var(--forest);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.download-btn:hover {
  background-color: var(--forest);
  color: var(--white);
  transform: translateY(-2px);
}

@media (min-width: 640px) {
  .event-details {
    text-align: left;
    max-width: 100%;
  }
}

/* Agenda Timeline */
.agenda-timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline-line {
  position: absolute;
  left: 1.5rem;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: #e5e5e5;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}
.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1.0s; }
.timeline-item:nth-child(6) { animation-delay: 1.2s; }
.timeline-item:nth-child(7) { animation-delay: 1.4s; }
.timeline-item:nth-child(8) { animation-delay: 1.6s; }


.timeline-dot {
  position: absolute;
  left: 1.05rem;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--beige);
  border-radius: 50%;
  border: 2px solid var(--forest);
  transform: scale(1);
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  background-color: var(--forest);
}

.card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card.highlight {
  background-color: var(--beige);
  border-left: 4px solid var(--forest);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-time {
  font-weight: 600;
  color: var(--charcoal);
}

.event-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.event-type.keynote {
  background-color: #ffebeb;
  color: #e53e3e;
}
.event-type.workshop {
  background-color: #e8e8ff;
  color: #4343d6;
}
.event-type.panel {
  background-color: #f7e6ff;
  color: #a045d6;
}
.event-type.special {
  background-color: #e6fff1;
  color: #2e7d32;
}
.event-type.competition {
  background-color: #fff8e1;
  color: #ff8f00;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.card p {
  margin-top: 0.5rem;
  color: #6b7280;
}

.card a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card a:hover {
  color: var(--wheat);
}

/* Footer */
.footer {
  background-color: var(--white);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.copyright {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

@media (min-width: 576px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-links {
    gap: 1.5rem;
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Footer */
  footer {
    background: var(--midnight);
    color: rgba(255,255,255,0.9);
    padding: 40px 0;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  @media (min-width: 768px) {
    .footer-grid {
      grid-template-columns: 1fr auto;
    }
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
  }
  .social-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
  }
  .social-link {
    width: 24px;
    height: 24px;
    color: rgba(255,255,255,0.6);
    transition: transform 0.2s ease, color 0.2s ease;
  }
  .social-link:hover {
    color: var(--white);
    transform: translateY(-2px);
  }
  
  .copyright-text {
    margin-bottom: 8px;
  }
  
  .footer-address {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
  }

  /* Utilities */
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Progress Bar */
.scroll-progress-bar {
position: fixed;
top: 0;
left: 0;
height: 3px;
background: linear-gradient(90deg, #2E7D32, #4CAF50);
transform: scaleX(0);
transform-origin: left;
z-index: 1000;
width: 100%;
transition: transform 0.1s ease;
}

/* Initial states for animated elements */
.hero h1 {
opacity: 0;
transform: translateY(50px);
}

.filter-buttons .filter-btn,
.download-btn {
opacity: 0;
transform: translateY(30px);
}

.timeline-item {
opacity: 0;
transform: translateX(-50px);
}

.timeline-item:nth-child(even) {
transform: translateX(50px);
}

/* Performance optimization - will-change for animated elements */
.timeline-item,
.hero h1,
.filter-btn,
.download-btn {
will-change: opacity, transform;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
.hero h1,
.filter-buttons .filter-btn,
.download-btn,
.timeline-item {
  opacity: 1;
  transform: none;
  transition: none;
}

.scroll-progress-bar {
  display: none;
}
}
