:root {
  /* Color Variables */
  --primary-dark: #0d1117;
  --primary-black: #000000;
  --secondary-dark: #161b22;
  --tertiary-dark: #21262d;
  --accent-yellow: #ffd700;
  --accent-red: #DC2F3E;
  --accent-light-orange: #ff8c42;
  --accent-blue: #4fc3f7;
  --text-white: #ffffff;
  --text-gray: #b0b8c0;
  --text-muted: #7d8590;
  --error-red: #E63946;
  --success-green: #44ff44;
  --border-subtle: #30363d;
  --shadow-default: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.25);
  --gradient-primary: linear-gradient(135deg, #ffd700 0%, #ff8c42 100%);
  --gradient-dark: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--gradient-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 15px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: rgba(13, 17, 23, 0.95);
  box-shadow: var(--shadow-default);
  border-bottom: 1px solid var(--accent-yellow);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo {
  width: 90px;
  height: auto;
  transition: var(--transition);
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-yellow);
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-white);
  transition: var(--transition);
}

.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(5px, -5px);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.7) 0%, rgba(220, 47, 62, 0.4) 50%, rgba(255, 215, 0, 0.2) 100%), url('assets/images/hero/hero-background.jpg') center/cover no-repeat;
  position: relative;
  margin-top: 70px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

.hero-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto 40px auto;
  display: block;
  filter: drop-shadow(2px 2px 10px rgba(0, 0, 0, 0.8));
  animation: fadeInDown 1s ease;
}

/* Large displays (32-inch monitors and up) */
@media (min-width: 1920px) {
  .hero-logo {
    width: 300px;
    height: 300px;
    margin-bottom: 50px;
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-white);
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
  background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-yellow) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite alternate;
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--accent-yellow);
  margin-bottom: 30px;
  font-weight: 300;
  letter-spacing: 2px;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-black);
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-default);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff8c42 0%, #DC2F3E 100%);
  color: var(--text-white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--accent-yellow);
  font-size: 2rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* General Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-white);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent-yellow);
  margin: 20px auto;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
}

/* About Section */
.about {
  background: var(--secondary-dark);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.03) 50%, transparent 70%);
  pointer-events: none;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.about-mission {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-gray);
}

.about-mission h3 {
  color: var(--accent-yellow);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  margin-top: 30px;
}

.about-mission h3:first-child {
  margin-top: 0;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
}

.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stat-card {
  background: linear-gradient(135deg, var(--tertiary-dark) 0%, var(--secondary-dark) 100%);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-default);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-hover), 0 0 30px rgba(255, 215, 0, 0.3);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-yellow);
  margin-bottom: 10px;
}

.stat-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.stat-description {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* Events Section */
.events {
  background: var(--primary-dark);
  position: relative;
}

.events::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(220, 47, 62, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Events Carousel Container */
.events-carousel-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 500px;
  overflow: hidden;
  border-radius: 15px;
  margin: 0 auto;
}

.event-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.event-slide.active {
  opacity: 1;
  display: flex;
}

.event-card {
  background-color: var(--secondary-dark);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-default);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-yellow);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.event-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-white);
}

.difficulty-badge {
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.difficulty-badge.easy {
  background-color: rgba(144, 238, 144, 0.2);
  color: #90EE90;
}

.difficulty-badge.moderate {
  background-color: rgba(255, 215, 0, 0.2);
  color: var(--accent-yellow);
}

.difficulty-badge.challenging {
  background-color: rgba(220, 47, 62, 0.2);
  color: var(--accent-red);
}

.event-details {
  margin-bottom: 20px;
}

.event-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.event-info i {
  color: var(--accent-yellow);
  width: 20px;
}

.event-description {
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: var(--accent-yellow);
  border: 2px solid var(--accent-yellow);
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
  margin-top: auto;
  align-self: flex-start;
}

/* Loading and Error States */
.loading-message,
.no-rides,
.error-message {
  text-align: center;
  padding: 40px;
  grid-column: 1 / -1;
  color: var(--text-gray);
  font-size: 1.1rem;
}

.error-message {
  color: var(--error-red);
}

.loading-message {
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.btn-secondary:hover {
  background-color: var(--accent-yellow);
  color: var(--primary-black);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.map-container {
  margin-top: 40px;
}

.map-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.map-container iframe {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* CAROUSEL STYLES */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: none !important;
}

.carousel-slide.active {
  opacity: 1;
  display: block !important;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--accent-yellow);
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
}

.carousel-btn {
  background-color: var(--accent-yellow);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-black);
  font-size: 1.5rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.carousel-btn:hover {
  background-color: var(--accent-red);
  color: var(--text-white);
  transform: scale(1.1);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background-color: var(--accent-yellow);
  width: 30px;
  border-radius: 6px;
}

/* Gallery Section */
.gallery {
  background-color: var(--secondary-dark);
}

/* Members Section */
.members {
  background-color: var(--primary-dark);
}

/* Code of Conduct Section */
.code-of-conduct {
  background: var(--secondary-dark);
  position: relative;
}

.code-of-conduct::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.03) 50%, transparent 70%);
  pointer-events: none;
}

.coc-intro {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
}

.coc-intro p {
  font-size: 1.15rem;
  color: var(--text-gray);
  line-height: 1.8;
}

.coc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.coc-card {
  background: linear-gradient(135deg, var(--tertiary-dark) 0%, var(--secondary-dark) 100%);
  padding: 30px;
  border-radius: 20px;
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-default);
  position: relative;
  overflow: hidden;
}

.coc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.coc-card:hover::before {
  left: 100%;
}

.coc-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-hover), 0 0 30px rgba(255, 215, 0, 0.2);
}

.coc-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.coc-icon i {
  font-size: 1.5rem;
  color: var(--primary-black);
}

.coc-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 15px;
}

.coc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.coc-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.coc-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-yellow);
  font-size: 0.8rem;
}

.coc-list li:last-child {
  margin-bottom: 0;
}

.coc-pledge {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 66, 0.1) 100%);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
}

.coc-pledge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.05), transparent);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

.coc-pledge>.fa-quote-left {
  font-size: 2.5rem;
  color: var(--accent-yellow);
  opacity: 0.5;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.coc-pledge p {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-white);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.pledge-author {
  font-size: 1.1rem;
  color: var(--accent-yellow);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.coc-pledge:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.6);
}

/* Code of Conduct Responsive */
@media (max-width: 1024px) {
  .coc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .coc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .coc-card {
    padding: 25px;
  }

  .coc-pledge {
    padding: 30px 20px;
  }

  .coc-pledge p {
    font-size: 1.1rem;
  }

  .coc-intro p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .coc-card {
    padding: 20px;
  }

  .coc-card h3 {
    font-size: 1.2rem;
  }

  .coc-list li {
    font-size: 0.9rem;
  }

  .coc-pledge p {
    font-size: 1rem;
  }
}

.members-container {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 450px;
  overflow: visible;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-slide {
  position: relative;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: none !important;
  align-items: center;
  justify-content: center;
}

.member-slide.active {
  opacity: 1;
  display: flex !important;
}

.member-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  width: 100%;
  padding: 40px;
  background-color: var(--secondary-dark);
  border-radius: 15px;
  align-items: flex-start;
}

.member-photo {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
}

.member-info {
  display: block;
  padding: 0;
}

.member-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 5px;
}

.member-name::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 3px;
  background-color: var(--accent-yellow);
  margin-left: 10px;
  vertical-align: middle;
}

.member-title {
  font-size: 1.2rem;
  color: var(--accent-yellow);
  font-weight: 600;
  margin-bottom: 5px;
}

.member-riding-since {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.member-bio {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
}

.member-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-dark);
  color: var(--text-white);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.2rem;
}

.member-social:hover {
  background-color: var(--accent-yellow);
  color: var(--primary-black);
  transform: scale(1.15);
}

/* Instagram Feed Section */
.instagram-feed {
  background: var(--secondary-dark);
  position: relative;
}

.instagram-feed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.03) 50%, transparent 70%);
  pointer-events: none;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.instagram-post {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-default);
}

.instagram-post:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.instagram-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.instagram-post:hover .instagram-image {
  transform: scale(1.1);
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(220, 47, 62, 0.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.instagram-post:hover .instagram-overlay {
  opacity: 1;
}

.instagram-icon {
  color: var(--text-white);
  font-size: 2.5rem;
  margin-top: 20px;
}

.instagram-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.instagram-stats span {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.instagram-cta {
  text-align: center;
}

.btn-instagram {
  background: linear-gradient(135deg, #E4405F 0%, #C13584 100%);
  color: var(--text-white);
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-default);
}

.btn-instagram:hover {
  background: linear-gradient(135deg, #C13584 0%, #833AB4 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-instagram i {
  font-size: 1.3rem;
}

/* CONTACT SECTION */
.contact {
  background-color: var(--secondary-dark);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.contact-card {
  background-color: var(--primary-dark);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.contact-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-yellow);
  box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}

.contact-icon {
  font-size: 3rem;
  color: var(--accent-yellow);
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-white);
}

.contact-card p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-card a {
  color: var(--accent-yellow);
  text-decoration: none;
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

/* Gratitude Section */
.gratitude-section {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 66, 0.1) 100%);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  padding: 40px 30px;
  margin-top: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
}

.gratitude-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.05), transparent);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.gratitude-section h3 {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.gratitude-section p {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-gray);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.gratitude-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.6);
}

/* Social Section */
.social-section {
  text-align: center;
  margin-top: 40px;
}

.social-section h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--accent-yellow);
}

.social-links-large {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.social-links-large a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 30px;
  background-color: var(--primary-dark);
  color: var(--text-white);
  text-decoration: none;
  border-radius: 15px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.social-links-large a:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.social-links-large i {
  font-size: 2rem;
  color: var(--accent-yellow);
}

.social-links-large span {
  font-weight: 600;
  font-size: 1rem;
}

/* Remove underline from social media icons */
.social-links a,
.social-links-large a,
.social-links a:hover,
.social-links-large a:hover {
  text-decoration: none;
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  padding: 60px 0 20px;
  border-top: 3px solid var(--accent-yellow);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--accent-yellow);
}

.footer-section p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 10px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: var(--accent-yellow);
  width: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-yellow);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background-color: var(--secondary-dark);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-links a:hover {
  background-color: var(--accent-yellow);
  color: var(--primary-black);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-content {
    gap: 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--secondary-dark);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    gap: 0;
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero {
    height: 70vh;
    margin-top: 70px;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .instagram-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-container {
    height: 300px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .members-container {
    min-height: auto;
  }

  .member-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .member-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .social-links-large {
    gap: 15px;
  }

  .social-links-large a {
    padding: 15px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Event Card Mobile Fixes - Apply to all mobile and tablet devices */
@media (max-width: 1024px) {
  .event-card {
    padding: 25px;
  }

  .event-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
  }

  .event-name {
    font-size: 1.3rem;
    width: 100%;
  }

  .difficulty-badge {
    align-self: flex-start;
  }

  .event-info {
    font-size: 0.9rem;
  }

  .event-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .social-links-large {
    flex-direction: column;
  }

  .social-links-large a {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .carousel-container {
    height: 250px;
  }

  .members-container {
    min-height: 300px;
  }

  .member-card {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .member-photo {
    width: 150px;
    height: 150px;
  }

  /* Event Card Mobile Fixes for Small Screens */
  .event-card {
    padding: 20px;
  }

  .event-name {
    font-size: 1.2rem;
  }

  .event-info {
    font-size: 0.85rem;
  }

  .event-description {
    font-size: 0.9rem;
  }

  .difficulty-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid var(--accent-yellow);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent-yellow);
  font-size: 1.2rem;
  transition: var(--transition);
  margin-left: 20px;
}

.theme-toggle:hover {
  background-color: var(--accent-yellow);
  color: var(--primary-black);
  transform: rotate(20deg);
}

/* Light Mode Colors */
body.light-mode {
  --primary-dark: #ffffff;
  --secondary-dark: #f5f5f5;
  --text-white: #000000;
  --text-gray: #333333;
}

body.light-mode .navbar {
  background-color: rgba(255, 255, 255, 0.9);
}

body.light-mode .carousel-caption {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
}

/* Members Section - Mobile Optimization */
.members-container {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 450px;
  overflow: visible;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  /* Add bottom margin */
}

.member-slide {
  position: relative;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
  /* Add padding */
}

.member-slide.active {
  opacity: 1;
  display: flex !important;
  z-index: 10;
  /* Add z-index */
}

/* Mobile Responsive - Tablet and Below */
@media (max-width: 1024px) {
  .members-container {
    min-height: 500px;
    margin-bottom: 40px;
  }

  .member-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px;
  }

  .member-photo {
    width: 220px;
    height: 220px;
    margin: 0 auto;
  }
}

/* Mobile Responsive - Phones */
@media (max-width: 768px) {
  .members-container {
    min-height: auto;
    max-height: none;
    margin-bottom: 50px;
    padding: 0;
  }

  .member-slide {
    position: relative;
    padding-bottom: 30px;
  }

  .member-card {
    display: block;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 20px;
    background-color: var(--secondary-dark);
    border-radius: 15px;
  }

  .member-photo {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 15px;
    margin: 0 auto 20px;
    display: block;
  }

  .member-info {
    display: block;
    padding: 0;
    text-align: center;
  }

  .member-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .member-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .member-riding-since {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .member-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
  }
}

/* Extra Small Phones */
@media (max-width: 480px) {
  .members-container {
    min-height: auto;
    margin-bottom: 60px;
  }

  .member-slide {
    padding-bottom: 40px;
  }

  .member-card {
    padding: 15px;
    gap: 0;
  }

  .member-photo {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 15px;
  }

  .member-name {
    font-size: 1.3rem;
  }

  .member-title {
    font-size: 0.95rem;
  }

  .member-bio {
    font-size: 0.9rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Wing Squad Section */
.wing-squad {
  background: var(--secondary-dark);
  padding-top: 40px;
}

.wing-squad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.wing-member-card {
  background: linear-gradient(135deg, var(--tertiary-dark) 0%, var(--secondary-dark) 100%);
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-default);
}

.wing-member-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-hover), 0 0 30px rgba(255, 215, 0, 0.2);
}

.wing-member-card .member-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
  border: 3px solid var(--accent-yellow);
}

.wing-member-card .member-info {
  text-align: center;
}

.wing-member-card .member-name {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.wing-member-card .member-name::after {
  display: none;
}

/* Wing Squad Responsive */
@media (max-width: 1024px) {
  .wing-squad-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .wing-squad-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .wing-member-card {
    padding: 20px 15px;
  }

  .wing-member-card .member-photo {
    width: 100px;
    height: 100px;
  }

  .wing-member-card .member-name {
    font-size: 1rem;
  }
}