/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* SMOOTH SCROLLING */
html {
  scroll-behavior: smooth;
}

/* BODY */
body {
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(135deg, #4F695B 0%, #7f9e8e 100%);
  min-height: 100vh;
  color: #2f4f4f;
  overflow-x: hidden;
}

/* HEADER + NAVBAR */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  padding: 10px 40px;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.logo img {
  height: 95px;
  width: auto;
  transition: all 0.3s ease;
}

nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
  margin-top: 8px;
}

nav a {
  text-decoration: none;
  color: #EDE8DA;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
}

header.scrolled nav a {
  color: #4f695B;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #EDE8DA;
  transition: width 0.3s ease;
}

header.scrolled nav a::after {
  background: #4f695B;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  opacity: 0.8;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #4F695B 0%, #7f9e8e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(237,232,218,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #EDE8DA;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: clamp(48px, 8vw, 78px);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  margin-bottom: 40px;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.2s both;
}


.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(237, 232, 218, 0.2);
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #EDE8DA;
}

.stat-label {
  font-size: 14px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #EDE8DA;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 3px solid #EDE8DA;
  border-bottom: 3px solid #EDE8DA;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.scroll-arrow:hover {
  border-color: rgba(237, 232, 218, 0.7);
}

/* MAIN CONTENT */
#events-main {
  background: #f8f9fa;
  position: relative;
  z-index: 1;
}

/* EVENTS SECTION */
.events-section {
  padding: 100px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 42px;
  color: #4f695B;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #4f695B 0%, #7f9e8e 100%);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 18px;
  color: #7f9e8e;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}





.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #4f695B 0%, #7f9e8e 100%);
  color: white;
  border-color: #4f695B;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(79, 105, 91, 0.3);
}

/* EVENTS LIST */
#events-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

/* EVENT CARDS */
.event-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  animation: slideInUp 0.6s ease-out;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 105, 91, 0.1), transparent);
  transition: left 0.8s ease;
  z-index: 1;
}

.event-card:hover::before {
  left: 100%;
}

.event-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(79, 105, 91, 0.2);
}

.event-header {
  background: linear-gradient(135deg, #4f695B 0%, #7f9e8e 100%);
  color: white;
  padding: 25px;
  position: relative;
  z-index: 2;
}

.event-date {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.event-date::before {
  content: '📅';
  font-size: 16px;
}

.event-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.event-location::before {
  content: '📍';
  font-size: 16px;
}

.event-body {
  padding: 25px;
  position: relative;
  z-index: 2;
}

.event-description {
  color: #7f9e8e;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 15px;
}

.event-map {
  height: 200px;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #e0e6ed;
}

.event-category {
  padding: 6px 12px;
  background: rgba(79, 105, 91, 0.1);
  color: #4f695B;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.register-btn {
  background: linear-gradient(135deg, #4f695B 0%, #7f9e8e 100%);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 105, 91, 0.4);
}

/* CTA SECTION */
.cta-section {
  background: #EDE8DA;
  padding: 80px 40px;
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 36px;
  color: #4f695B;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-section p {
  font-size: 18px;
  color: #7f9e8e;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-primary {
  background: linear-gradient(135deg, #4f695B 0%, #7f9e8e 100%);
  color: white;
  border: none;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(79, 105, 91, 0.3);
}

.cta-secondary {
  background: transparent;
  color: #4f695B;
  border: 2px solid #4f695B;
}

.cta-secondary:hover {
  background: #4f695B;
  color: white;
  transform: translateY(-3px);
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* LOADING STATE */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 20px;
  height: 400px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #7f9e8e;
  grid-column: 1 / -1;
}

.empty-state .icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.6;
  display: block;
}

.empty-state h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #4f695B;
  font-weight: 600;
}

.empty-state p {
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  header { 
    padding: 10px 20px; 
  }
  
  nav { 
    gap: 20px; 
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .stat-item {
    width: 200px;
  }
  
  .events-section {
    padding: 60px 20px 40px;
  }
  
  #events-list {
    padding: 0 20px 40px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .event-card {
    margin: 0 10px;
  }
  
  .events-filters {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  nav {
    gap: 15px;
  }
  
  nav a {
    font-size: 14px;
  }
}

/* SCROLL ANIMATIONS */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* STAGGER ANIMATIONS */
.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }
.event-card:nth-child(6) { animation-delay: 0.6s; }