/* Ensure no horizontal overflow throughout the page */
* {
  box-sizing: border-box;
}

html {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  background: #000000;
  color: #fff;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* Global Neon Blue Scrollbar Styling for All Devices */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(1, 4, 10, 0.8);
}

::-webkit-scrollbar-thumb {
  background: #00f0ff;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8), 0 0 20px rgba(0, 240, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: #00ffff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 1), 0 0 30px rgba(0, 240, 255, 0.7);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #00f0ff rgba(1, 4, 10, 0.8);
}

.events-container {
  position: relative;
  min-height: 100vh;
  background: #000000;
  max-width: 100%;
  overflow-x: hidden;
}

.particles-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  max-width: 100vw;
  overflow: hidden;
}

.events-content {
  position: relative;
  z-index: 1;
  padding: 60px 40px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.events-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto 40px;
  max-width: 90%;
  animation: headerEntrance 1s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes headerEntrance {
  0% {
    opacity: 0;
    transform: translateY(-30px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Add floating animation to the glitch text */
.glitch-text {
  position: relative;
  display: inline-block;
  animation: 
    glitch-anim 5s infinite,
    float 3s ease-in-out infinite;
}

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

/* Add a subtle pulse to the entire header */
.events-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(0, 240, 255, 0.05), transparent);
  animation: headerGlow 4s infinite alternate;
  pointer-events: none;
  border-radius: 10px;
}

@keyframes headerGlow {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.7;
  }
}

/* Title pulsing animation */
@keyframes title-pulse {
  0% {
    text-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
  }
  100% {
    text-shadow: 0 0 20px #00f0ff, 0 0 40px #00f0ff, 0 0 60px #00f0ff;
  }
}

/* Responsive design for the main title */
/* Ultra-animated header with intense effects */
.events-main-title {
  font-size: 3.2rem;
  font-weight: bold;
  color: #00f0ff;
  text-shadow: 0 0 20px #00f0ff;
  margin-bottom: 15px;
  position: relative;
  text-align: center;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 20px;
  border: 2px solid transparent;
  border-image: linear-gradient(45deg, #00f0ff, #ff00c1, #00f0ff);
  border-image-slice: 1;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)) padding-box, 
              linear-gradient(45deg, #00f0ff, #ff00c1, #00f0ff) border-box;
  border-radius: 10px;
  margin: 20px auto;
  max-width: fit-content;
  opacity: 0;
  transform-style: preserve-3d;
  perspective: 1000px;
}

@keyframes titleEntrance {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.8) rotateX(30deg);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0);
  }
}

/* Ultra-enhanced glitch effect for the main title */
.glitch-effect {
  position: relative;
  color: #00f0ff;
  font-weight: 700;
  margin: 0 auto 15px;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 240, 255, 0.1),
    rgba(0, 240, 255, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  background-size: 100% 4px;
  padding: 20px 0;
  animation: 
    flicker 0.5s infinite alternate,
    hueShift 8s infinite linear,
    pulse 1.5s infinite alternate,
    shake 0.3s infinite alternate;
}

/* Intense flicker animation */
@keyframes flicker {
  0%, 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90% {
    opacity: 1;
    text-shadow: 
      0 0 10px rgba(0, 240, 255, 0.8), 
      0 0 20px rgba(0, 240, 255, 0.6),
      0 0 30px rgba(0, 240, 255, 0.4);
  }
  5%, 15%, 25%, 35%, 45%, 55%, 65%, 75%, 85%, 95% {
    opacity: 0.9;
    text-shadow: 
      0 0 5px rgba(255, 0, 193, 0.6), 
      0 0 15px rgba(255, 0, 193, 0.4),
      0 0 25px rgba(255, 0, 193, 0.2);
  }
}

/* Fast hue shifting for color variation */
@keyframes hueShift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

/* Rapid pulsing effect */
@keyframes pulse {
  0% {
    transform: scale(1) translateZ(0);
    text-shadow: 
      0 0 10px rgba(0, 240, 255, 0.8), 
      0 0 20px rgba(0, 240, 255, 0.6);
  }
  50% {
    transform: scale(1.03) translateZ(10px);
    text-shadow: 
      0 0 15px rgba(0, 240, 255, 1), 
      0 0 30px rgba(0, 240, 255, 0.8),
      0 0 45px rgba(0, 240, 255, 0.6);
  }
  100% {
    transform: scale(1) translateZ(0);
    text-shadow: 
      0 0 10px rgba(0, 240, 255, 0.8), 
      0 0 20px rgba(0, 240, 255, 0.6);
  }
}

/* Shake effect for glitch feel */
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(2px);
  }
  75% {
    transform: translateX(-1px);
  }
  100% {
    transform: translateX(0);
  }
}

.glitch-text {
  position: relative;
  display: inline-block;
  animation: 
    glitch-anim 3s infinite,
    float 2s ease-in-out infinite,
    colorShift 3s infinite alternate,
    rotate3d 10s infinite linear;
}

/* 3D rotation effect */
@keyframes rotate3d {
  0% {
    transform: rotateY(0deg) rotateX(0deg);
  }
  25% {
    transform: rotateY(5deg) rotateX(2deg);
  }
  50% {
    transform: rotateY(0deg) rotateX(0deg);
  }
  75% {
    transform: rotateY(-5deg) rotateX(-2deg);
  }
  100% {
    transform: rotateY(0deg) rotateX(0deg);
  }
}

/* Rapid color shifting */
@keyframes colorShift {
  0% {
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
  }
  14% {
    color: #ff00c1;
    text-shadow: 0 0 10px rgba(255, 0, 193, 0.8);
  }
  28% {
    color: #00fff9;
    text-shadow: 0 0 10px rgba(0, 255, 249, 0.8);
  }
  42% {
    color: #c100ff;
    text-shadow: 0 0 10px rgba(193, 0, 255, 0.8);
  }
  57% {
    color: #00ffc1;
    text-shadow: 0 0 10px rgba(0, 255, 193, 0.8);
  }
  71% {
    color: #ff0080;
    text-shadow: 0 0 10px rgba(255, 0, 128, 0.8);
  }
  85% {
    color: #8000ff;
    text-shadow: 0 0 10px rgba(128, 0, 255, 0.8);
  }
  100% {
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
  }
}

/* Floating effect */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  left: 2px;
  text-shadow: -2px 0 #ff00c1, -4px 0 rgba(255, 0, 193, 0.5);
  clip: rect(44px, 9999px, 9999px, 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1, 4px 4px rgba(0, 255, 249, 0.5);
  clip: rect(44px, 9999px, 9999px, 0);
  animation: glitch-anim2 1.5s infinite linear alternate-reverse;
}

/* Ultra-intense glitch animations */
@keyframes glitch-anim {
  0% {
    clip: rect(30px, 9999px, 9999px, 0);
    transform: skew(2deg);
  }
  5% {
    clip: rect(10px, 9999px, 9999px, 0);
    transform: skew(-3deg);
  }
  10% {
    clip: rect(50px, 9999px, 9999px, 0);
    transform: skew(4deg);
  }
  15% {
    clip: rect(20px, 9999px, 9999px, 0);
    transform: skew(-2deg);
  }
  20% {
    clip: rect(70px, 9999px, 9999px, 0);
    transform: skew(3deg);
  }
  25% {
    clip: rect(40px, 9999px, 9999px, 0);
    transform: skew(-4deg);
  }
  30% {
    clip: rect(90px, 9999px, 9999px, 0);
    transform: skew(2deg);
  }
  35% {
    clip: rect(15px, 9999px, 9999px, 0);
    transform: skew(-3deg);
  }
  40% {
    clip: rect(65px, 9999px, 9999px, 0);
    transform: skew(4deg);
  }
  45% {
    clip: rect(35px, 9999px, 9999px, 0);
    transform: skew(-2deg);
  }
  50% {
    clip: rect(85px, 9999px, 9999px, 0);
    transform: skew(3deg);
  }
  55% {
    clip: rect(25px, 9999px, 9999px, 0);
    transform: skew(-4deg);
  }
  60% {
    clip: rect(75px, 9999px, 9999px, 0);
    transform: skew(2deg);
  }
  65% {
    clip: rect(45px, 9999px, 9999px, 0);
    transform: skew(-3deg);
  }
  70% {
    clip: rect(95px, 9999px, 9999px, 0);
    transform: skew(4deg);
  }
  75% {
    clip: rect(55px, 9999px, 9999px, 0);
    transform: skew(-2deg);
  }
  80% {
    clip: rect(5px, 9999px, 9999px, 0);
    transform: skew(3deg);
  }
  85% {
    clip: rect(80px, 9999px, 9999px, 0);
    transform: skew(-4deg);
  }
  90% {
    clip: rect(10px, 9999px, 9999px, 0);
    transform: skew(2deg);
  }
  95% {
    clip: rect(60px, 9999px, 9999px, 0);
    transform: skew(-3deg);
  }
  100% {
    clip: rect(30px, 9999px, 9999px, 0);
    transform: skew(0deg);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(70px, 9999px, 9999px, 0);
    transform: skew(3deg);
  }
  5% {
    clip: rect(40px, 9999px, 9999px, 0);
    transform: skew(-4deg);
  }
  10% {
    clip: rect(90px, 9999px, 9999px, 0);
    transform: skew(2deg);
  }
  15% {
    clip: rect(20px, 9999px, 9999px, 0);
    transform: skew(-3deg);
  }
  20% {
    clip: rect(80px, 9999px, 9999px, 0);
    transform: skew(4deg);
  }
  25% {
    clip: rect(30px, 9999px, 9999px, 0);
    transform: skew(-2deg);
  }
  30% {
    clip: rect(10px, 9999px, 9999px, 0);
    transform: skew(3deg);
  }
  35% {
    clip: rect(60px, 9999px, 9999px, 0);
    transform: skew(-4deg);
  }
  40% {
    clip: rect(50px, 9999px, 50px, 0);
    transform: skew(2deg);
  }
  45% {
    clip: rect(95px, 9999px, 9999px, 0);
    transform: skew(-3deg);
  }
  50% {
    clip: rect(25px, 9999px, 75px, 0);
    transform: skew(4deg);
  }
  55% {
    clip: rect(75px, 9999px, 9999px, 0);
    transform: skew(-2deg);
  }
  60% {
    clip: rect(15px, 9999px, 9999px, 0);
    transform: skew(3deg);
  }
  65% {
    clip: rect(65px, 9999px, 9999px, 0);
    transform: skew(-4deg);
  }
  70% {
    clip: rect(5px, 9999px, 9999px, 0);
    transform: skew(2deg);
  }
  75% {
    clip: rect(85px, 9999px, 9999px, 0);
    transform: skew(-3deg);
  }
  80% {
    clip: rect(35px, 9999px, 65px, 0);
    transform: skew(4deg);
  }
  85% {
    clip: rect(95px, 9999px, 9999px, 0);
    transform: skew(-2deg);
  }
  90% {
    clip: rect(45px, 9999px, 55px, 0);
    transform: skew(3deg);
  }
  95% {
    clip: rect(15px, 9999px, 9999px, 0);
    transform: skew(-4deg);
  }
  100% {
    clip: rect(70px, 9999px, 9999px, 0);
    transform: skew(0deg);
  }
}

/* Techy subtitle styling */
.events-subtitle {
  font-size: 1.2rem;
  color: #a0f0ff;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  padding: 15px 0;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
  border-top: 1px solid rgba(0, 240, 255, 0.3);
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  letter-spacing: 0.5px;
  line-height: 1.6;
  font-family: "Orbitron", sans-serif;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 0, 193, 0.05) 0%, transparent 20%);
  opacity: 0;
}

@keyframes subtitle-glow {
  0% {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  }
  100% {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4), 0 0 40px rgba(255, 0, 193, 0.2);
  }
}

.tech-text {
  color: #ff00c1;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 0, 193, 0.7);
  position: relative;
  display: inline-block;
  animation: tech-pulse 2s infinite;
}

@keyframes tech-pulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 10px rgba(255, 0, 193, 0.7);
  }
  50% {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 0, 193, 0.9), 0 0 25px rgba(255, 0, 193, 0.6);
  }
}

.tech-text::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff00c1, transparent);
  animation: tech-underline 2s infinite;
}

@keyframes tech-underline {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  50% {
    transform: scaleX(1);
    transform-origin: left;
  }
  51% {
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

/* Enhanced search container with animations */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto 40px;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  max-width: 100%;
  padding: 0 10px;
}

.search-container.animate-in {
  animation: slideInFromBottom 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
  animation-delay: 0.4s;
  opacity: 1 !important;
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(3px);
  }
  100% {
    opacity: 1 !important;
    transform: translateY(0);
    filter: blur(0);
  }
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #00f0ff;
  z-index: 2;
  width: 20px;
  height: 20px;
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
  }
}

.search-input {
  width: 100%;
  padding: 15px 15px 15px 50px;
  background: rgba(17, 17, 17, 0.8);
  border: 2px solid #00f0ff;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: "Orbitron", sans-serif;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.search-input::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00f0ff, #ff00c1, #00f0ff);
  border-radius: 14px;
  z-index: -1;
  animation: searchGlow 3s infinite;
}

@keyframes searchGlow {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
  border-color: #00f0ff;
  transform: scale(1.02);
}

.search-input::placeholder {
  color: #888;
  font-family: "Orbitron", sans-serif;
}

/* Responsive media queries */
@media (max-width: 1200px) {
  .events-main-title {
    font-size: 2.8rem;
    padding: 15px;
    letter-spacing: 1.5px;
  }
  
  .events-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
  }
}

@media (max-width: 992px) {
  .events-main-title {
    font-size: 2.3rem;
    padding: 12px;
    letter-spacing: 1px;
  }
  
  .events-subtitle {
    font-size: 1rem;
    max-width: 600px;
  }
  
  .search-input {
    padding: 12px 12px 12px 45px;
    font-size: 0.95rem;
  }
  
  .search-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 768px) {
  .events-content {
    padding: 40px 20px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .events-header {
    max-width: 100%;
    padding: 15px;
    margin: 15px auto 30px;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .events-main-title {
    font-size: 2rem;
    padding: 10px;
    letter-spacing: 0.5px;
    margin: 15px auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
  }
  
  .events-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .search-container {
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  .search-input {
    padding: 12px 12px 12px 40px;
    font-size: 0.9rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .search-icon {
    width: 16px;
    height: 16px;
    right: 12px;
  }
  
  .hashtags-section {
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    box-sizing: border-box;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .event-card {
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .events-content {
    padding: 30px 15px;
  }
  
  .events-header {
    padding: 10px;
    margin: 10px auto 25px;
  }
  
  .events-main-title {
    font-size: 1.7rem;
    padding: 8px;
    letter-spacing: 0.3px;
    margin: 10px auto;
  }
  
  .events-subtitle {
    font-size: 0.8rem;
    padding: 8px 0;
    line-height: 1.4;
  }
  
  .search-container {
    padding: 0 10px;
    margin: 0 auto 25px;
  }
  
  .search-input {
    padding: 10px 10px 10px 35px;
    font-size: 0.85rem;
  }
  
  .search-icon {
    width: 14px;
    height: 14px;
    right: 10px;
  }
  
  .hashtags-section {
    padding: 8px 0;
  }
  
  .events-grid {
    gap: 25px;
  }
}

@media (max-width: 400px) {
  .events-content {
    padding: 25px 10px;
  }
  
  .events-header {
    padding: 8px;
    margin: 8px auto 20px;
  }
  
  .events-main-title {
    font-size: 1.4rem;
    padding: 6px;
    letter-spacing: 0.2px;
    margin: 8px auto;
  }
  
  .events-subtitle {
    font-size: 0.7rem;
    padding: 6px 0;
    line-height: 1.3;
  }
  
  .search-container {
    padding: 0 5px;
    margin: 0 auto 20px;
  }
  
  .search-input {
    padding: 8px 8px 8px 30px;
    font-size: 0.8rem;
  }
  
  .search-icon {
    width: 12px;
    height: 12px;
    right: 8px;
  }
  
  .events-grid {
    gap: 20px;
  }
}

.hashtags-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  opacity: 0;
  animation-delay: 0.5s;
}

.hashtags-section.animate-in {
  animation: slideInFromBottom 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
  animation-delay: 0.6s;
  opacity: 1 !important;
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

.hashtag-btn {
  padding: 10px 20px;
  background: rgba(17, 17, 17, 0.8);
  border: 2px solid #00f0ff;
  border-radius: 25px;
  color: #00f0ff;
  font-family: "Orbitron", sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.hashtag-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
}

.hashtag-btn.active {
  background: #00f0ff;
  color: #000;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.8);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

/* Enhanced event card with cursor-following border animation */
.event-card {
  background: rgba(17, 17, 17, 0.9);
  padding: 30px;
  clip-path: polygon(8% 0, 100% 0, 100% 85%, 92% 100%, 0 100%, 0 15%);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  border-image: linear-gradient(45deg, #00f0ff, #ff00c1, #00f0ff);
  border-image-slice: 1;
  transform-style: preserve-3d;
  /* Custom properties for mouse position */
  --mouse-x: 50;
  --mouse-y: 50;
  --border-hue: 200;
}

/* Add animated border effect */
.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  background: linear-gradient(45deg, #00f0ff, #ff00c1, #00f0ff, #ff00c1);
  z-index: -2;
  border-radius: 12px;
  animation: borderRotate 3s linear infinite;
  opacity: 0.7;
  transform: translate(-2px, -2px);
}

.event-card::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: rgba(17, 17, 17, 0.9);
  z-index: -1;
  border-radius: 10px;
}

/* Add dynamic border color change */
.event-card:hover {
  border-image: linear-gradient(45deg, hsl(var(--border-hue), 100%, 50%), #ff00c1, hsl(calc(var(--border-hue) + 60), 100%, 50%));
  border-image-slice: 1;
}

/* Pulse animation for border */
@keyframes borderPulse {
  0% {
    border-image: linear-gradient(45deg, #00f0ff, #ff00c1, #00f0ff);
  }
  50% {
    border-image: linear-gradient(45deg, #ff00c1, #00f0ff, #ff00c1);
  }
  100% {
    border-image: linear-gradient(45deg, #00f0ff, #ff00c1, #00f0ff);
  }
}

.event-card.pulsing {
  animation: borderPulse 0.1s ease;
}

/* Shining effect */
.event-card .shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: rotate(30deg);
  transition: all 0.6s;
  z-index: 0;
  opacity: 0;
  filter: blur(5px);
}

.event-card .shine-second {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.6), transparent);
  transform: rotate(-30deg);
  transition: all 0.8s;
  z-index: 0;
  opacity: 0;
  filter: blur(3px);
}

.event-card:hover .shine {
  opacity: 1;
  animation: shine 1.5s infinite;
}

.event-card:hover .shine-second {
  opacity: 0.8;
  animation: shineSecond 2s infinite;
}

@keyframes shine {
  0% {
    transform: rotate(30deg) translate(-50%, -50%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: rotate(30deg) translate(50%, 50%);
    opacity: 0;
  }
}

@keyframes shineSecond {
  0% {
    transform: rotate(-30deg) translate(50%, -50%);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: rotate(-30deg) translate(-50%, 50%);
    opacity: 0;
  }
}

@keyframes borderRotate {
  0% {
    transform: translate(-2px, -2px) rotate(0deg);
  }
  100% {
    transform: translate(-2px, -2px) rotate(360deg);
  }
}

/* Enhanced hover effects with stronger shining effect */
.event-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.7);
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.8));
}

/* Add pulse effect on hover */
.event-card:hover::after {
  animation: cardPulse 2s infinite;
}

@keyframes cardPulse {
  0% {
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.3);
  }
  50% {
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.6);
  }
  100% {
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.3);
  }
}

/* Staggered entrance animation for event cards */
.event-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: cardEntrance 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Staggered animation delays for cards */
.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; }

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Update the header to position above the animated border */
.event-header {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  font-size: 1.8rem;
  color: #00f0ff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  padding-bottom: 25px;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.event-header::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
  border-radius: 3px;
  transition: width 0.6s ease-in-out;
}

.event-card:hover .event-header::after {
  width: 100px;
}

.event-card.show .event-header::after {
  width: 80px;
  animation: underlineGlow 2s infinite alternate;
}

@keyframes underlineGlow {
  0% {
    box-shadow: 0 0 5px #00f0ff;
  }
  100% {
    box-shadow: 0 0 20px #00f0ff, 0 0 30px #00f0ff;
  }
}

/* Update all content elements to position above the animated border */
.event-header,
.event-image-container,
.event-description,
.event-buttons,
.event-hashtags {
  position: relative;
  z-index: 1;
}

/* Enhanced image styling */
.event-image-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  height: 200px;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 15px #00f0ff99;
  position: relative;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.9s ease;
  display: block;
  min-width: 100%;
  min-height: 100%;
}

.event-card.show .event-image {
  opacity: 1;
  transform: scale(1);
}

.event-card:hover .event-image-container {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.9);
}

.event-card:hover .event-image {
  transform: scale(1.02);
}

/* Enhanced description styling */
.event-description {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  white-space: normal;
  flex: 1;
  /* Add techy font */
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.3px;
}

/* Enhanced buttons styling */
.event-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
}

.glow-btn {
  text-align: center;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  box-shadow: 0 0 10px #00f0ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  border: none;
}

/* Add hover effects to buttons */
.glow-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.glow-btn:hover::before {
  left: 100%;
}

.explore-btn {
  background: transparent;
  border: 2px solid #00f0ff;
  color: #00f0ff;
  text-decoration: none;
}

.explore-btn:hover {
  background: #00f0ff;
  color: #000;
  box-shadow: 0 0 25px #00f0ff;
}

.register-soon {
  background: #e50914;
  color: #fff;
  border: 2px solid #e50914;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.register-soon:hover {
  background: #ff1e26;
  box-shadow: 0 0 25px #e50914;
}

/* Enhanced hashtags styling */
.event-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 240, 255, 0.3);
}

.event-hashtag {
  padding: 5px 12px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid #00f0ff;
  border-radius: 15px;
  color: #00f0ff;
  font-size: 0.85rem;
  font-weight: 600;
  /* Add hover effect */
  transition: all 0.3s ease;
  cursor: pointer;
}

.event-hashtag:hover {
  background: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.load-more-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.load-btn {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  font-family: "Orbitron", sans-serif;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.load-more-btn {
  background: transparent;
  border: 2px solid #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
}

/* Announcements section styles */
.announcements-section {
    position: relative;
    max-width: 90%;
    margin: 20px auto 40px;
    padding: 20px;
    background: rgba(17, 17, 17, 0.8);
    border: 2px solid #00f0ff;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    opacity: 0;
    transform: translateY(30px);
    filter: blur(3px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.announcements-section.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.announcements-header {
    color: #00f0ff;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
    position: relative;
    padding-bottom: 10px;
}

.announcements-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00f0ff, transparent);
    border-radius: 3px;
}

.announcement-item {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.announcement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.4);
    border-color: #00f0ff;
}

.announcement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00f0ff, #ff00c1);
}

.announcement-title {
    color: #ff00c1;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.announcement-content {
    color: #a0f0ff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.announcement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #7dd3fc;
    font-size: 0.9rem;
}

.announcement-priority {
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.priority-high {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.priority-medium {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #f59e0b;
}

.priority-low {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.announcement-date {
    font-style: italic;
}

/* Responsive styles for announcements */
@media (max-width: 768px) {
    .announcements-section {
        max-width: 95%;
        padding: 15px;
        margin: 15px auto 30px;
    }
    
    .announcements-header {
        font-size: 1.5rem;
    }
    
    .announcement-title {
        font-size: 1.2rem;
    }
    
    .announcement-content {
        font-size: 1rem;
    }
}

.load-more-btn:hover::before {
  width: 300px;
  height: 300px;
}

.load-more-btn:hover {
  background: #00f0ff;
  color: #000;
  box-shadow: 0 0 40px rgba(0, 240, 255, 1);
  transform: translateY(-3px);
}

.load-less-btn {
  background: transparent;
  border: 2px solid #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.load-more-btn:hover::before {
  width: 300px;
  height: 300px;
}

.load-more-btn:hover {
  background: #00f0ff;
  color: #000;
  box-shadow: 0 0 40px rgba(0, 240, 255, 1);
  transform: translateY(-3px);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 1.2rem;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .events-main-title {
    font-size: 2.5rem;
  }

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

  .hashtags-section {
    gap: 8px;
  }

  .hashtag-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* ---------- Small phones (portrait) — max-width: 360px ---------- */
@media (max-width: 360px) {
  .events-content {
    padding: 30px 15px;
  }
  
  .events-main-title {
    font-size: 1.85rem;
    margin-top: var(--header-height);
  }
  
  .events-main-title::after {
    width: 200px;
  }
  
  .events-subtitle {
    font-size: 0.95rem;
    padding: 10px 0;
  }
  
  .events-subtitle::before,
  .events-subtitle::after {
    width: 30px;
  }
  
  .search-container {
    margin-bottom: 25px;
  }
  
  .search-input {
    padding: 12px 12px 12px 45px;
    font-size: 0.9rem;
  }
  
  .search-icon {
    width: 18px;
    height: 18px;
  }
  
  .hashtags-section {
    gap: 6px;
    margin-bottom: 25px;
  }
  
  .hashtag-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-width: 1px;
  }
  
  .events-grid {
    gap: 25px;
  }
  
  .event-card {
    padding: 20px;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
  }
  
  .event-header {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }
  
  .event-header::after {
    height: 2px;
  }
  
  .event-card.show .event-header::after {
    width: 60px;
  }
  
  .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
  }
  
  .event-description {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  
  .event-buttons {
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .glow-btn {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
  
  .event-hashtags {
    padding-top: 12px;
  }
  
  .event-hashtag {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  
  .load-more-section {
    gap: 15px;
    margin-top: 30px;
  }
  
  .load-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

/* ---------- Large phones / small phablets — max-width: 420px ---------- */
@media (min-width: 361px) and (max-width: 420px) {
  .events-content {
    padding: 35px 20px;
  }
  
  .events-main-title {
    font-size: 2rem;
    margin-top:var(--header-height);
  }
  
  .events-main-title::after {
    width: 220px;
  }
  
  .events-subtitle {
    font-size: 1rem;
    padding: 12px 0;
  }
  
  .search-input {
    padding: 13px 13px 13px 48px;
    font-size: 0.95rem;
  }
  
  .hashtags-section {
    gap: 7px;
    margin-bottom: 30px;
  }
  
  .hashtag-btn {
    padding: 7px 14px;
    font-size: 0.85rem;
  }
  
  .events-grid {
    gap: 30px;
  }
  
  .event-card {
    padding: 22px;
  }
  
  .event-header {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  
  .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
  }
  
  .event-description {
    font-size: 0.88rem;
    margin-bottom: 16px;
  }
  
  .event-buttons {
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .glow-btn {
    padding: 11px 16px;
    font-size: 0.88rem;
  }
  
  .event-hashtag {
    padding: 4px 11px;
    font-size: 0.8rem;
  }
  
  .load-btn {
    padding: 13px 32px;
    font-size: 1.05rem;
  }
}

/* ---------- Small tablets / large phones (landscape) — max-width: 720px ---------- */
@media (min-width: 421px) and (max-width: 720px) {
  .events-content {
    padding: 40px 25px;
  }
  
  .events-main-title {
    font-size: 2.2rem;
    margin-top:var(--header-height);
  }
  
  .events-main-title::after {
    width: 250px;
  }
  
  .events-subtitle {
    font-size: 1.05rem;
    padding: 13px 0;
    max-width: 90%;
  }
  
  .search-input {
    padding: 14px 14px 14px 50px;
    font-size: 1rem;
  }
  
  .hashtags-section {
    gap: 8px;
    margin-bottom: 35px;
  }
  
  .hashtag-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .events-grid {
    gap: 35px;
  }
  
  .event-card {
    padding: 25px;
  }
  
  .event-header {
    font-size: 1.6rem;
    margin-bottom: 18px;
  }
  
  .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
  }
  
  .event-description {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  
  .event-buttons {
    gap: 13px;
    margin-bottom: 18px;
  }
  
  .glow-btn {
    padding: 12px 18px;
    font-size: 0.9rem;
  }
  
  .event-hashtag {
    padding: 5px 12px;
    font-size: 0.82rem;
  }
  
  .load-more-section {
    gap: 18px;
    margin-top: 35px;
  }
  
  .load-btn {
    padding: 14px 35px;
    font-size: 1.08rem;
  }
}

/* ---------- Tablets / small laptops — max-width: 960px ---------- */
@media (min-width: 721px) and (max-width: 960px) {
  .events-content {
    padding: 45px 30px;
  }
  
  .events-main-title {
    font-size: 2.6rem;
    margin-top:var(--header-height);
  }
  
  .events-main-title::after {
    width: 280px;
  }
  
  .events-subtitle {
    font-size: 1.1rem;
    padding: 14px 0;
    max-width: 85%;
  }
  
  .search-container {
    max-width: 550px;
  }
  
  .search-input {
    padding: 15px 15px 15px 52px;
    font-size: 1.05rem;
  }
  
  .hashtags-section {
    gap: 9px;
    margin-bottom: 40px;
  }
  
  .hashtag-btn {
    padding: 9px 18px;
    font-size: 0.92rem;
  }
  
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .event-card {
    padding: 28px;
  }
  
  .event-header {
    font-size: 1.7rem;
    margin-bottom: 19px;
  }
  
  .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
  }
  
  .event-description {
    font-size: 0.92rem;
    margin-bottom: 19px;
  }
  
  .event-buttons {
    gap: 14px;
    margin-bottom: 19px;
  }
  
  .glow-btn {
    padding: 13px 19px;
    font-size: 0.92rem;
  }
  
  .event-hashtag {
    padding: 5px 13px;
    font-size: 0.84rem;
  }
  
  .load-more-section {
    gap: 19px;
    margin-top: 40px;
  }
  
  .load-btn {
    padding: 15px 38px;
    font-size: 1.1rem;
  }
}

/* ---------- Laptops (typical) — max-width: 1140px ---------- */
@media (min-width: 961px) and (max-width: 1140px) {
  .events-content {
    padding: 50px 35px;
  }
  
  .events-main-title {
    font-size: 2.8rem;
    margin-top:var(--header-height);
  }
  
  .events-main-title::after {
    width: 290px;
  }
  
  .events-subtitle {
    font-size: 1.15rem;
    padding: 15px 0;
    max-width: 82%;
  }
  
  .search-container {
    max-width: 580px;
  }
  
  .search-input {
    padding: 16px 16px 16px 55px;
    font-size: 1.08rem;
  }
  
  .hashtags-section {
    gap: 10px;
    margin-bottom: 45px;
  }
  
  .hashtag-btn {
    padding: 10px 20px;
    font-size: 0.94rem;
  }
  
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 42px;
  }
  
  .event-card {
    padding: 30px;
  }
  
  .event-header {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }
  
  .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
  }
  
  .event-description {
    font-size: 0.94rem;
    margin-bottom: 20px;
  }
  
  .event-buttons {
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .glow-btn {
    padding: 14px 20px;
    font-size: 0.94rem;
  }
  
  .event-hashtag {
    padding: 6px 14px;
    font-size: 0.86rem;
  }
  
  .load-more-section {
    gap: 20px;
    margin-top: 45px;
  }
  
  .load-btn {
    padding: 16px 40px;
    font-size: 1.12rem;
  }
}

/* ---------- Desktop / large laptop — max-width: 1320px ---------- */
@media (min-width: 1141px) and (max-width: 1320px) {
  .events-content {
    padding: 55px 38px;
  }
  
  .events-main-title {
    font-size: 3rem;
    margin-top:var(--header-height);
  }
  
  .events-main-title::after {
    width: 310px;
  }
  
  .events-subtitle {
    font-size: 1.18rem;
    padding: 16px 0;
    max-width: 80%;
  }
  
  .search-container {
    max-width: 600px;
  }
  
  .search-input {
    padding: 17px 17px 17px 58px;
    font-size: 1.1rem;
  }
  
  .hashtags-section {
    gap: 11px;
    margin-bottom: 50px;
  }
  
  .hashtag-btn {
    padding: 11px 22px;
    font-size: 0.96rem;
  }
  
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
  }
  
  .event-card {
    padding: 32px;
  }
  
  .event-header {
    font-size: 1.8rem;
    margin-bottom: 22px;
  }
  
  .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
  }
  
  .event-description {
    font-size: 0.96rem;
    margin-bottom: 22px;
  }
  
  .event-buttons {
    gap: 16px;
    margin-bottom: 22px;
  }
  
  .glow-btn {
    padding: 15px 22px;
    font-size: 0.96rem;
  }
  
  .event-hashtag {
    padding: 6px 15px;
    font-size: 0.88rem;
  }
  
  .load-more-section {
    gap: 22px;
    margin-top: 50px;
  }
  
  .load-btn {
    padding: 17px 42px;
    font-size: 1.15rem;
  }
}

/* ---------- Large desktop / 2K — max-width: 1600px ---------- */
@media (min-width: 1321px) and (max-width: 1600px) {
  .events-content {
    padding: 58px 40px;
  }
  
  .events-main-title {
    font-size: 3.1rem;
    margin-top:var(--header-height);
  }
  
  .events-main-title::after {
    width: 320px;
  }
  
  .events-subtitle {
    font-size: 1.2rem;
    padding: 17px 0;
    max-width: 78%;
  }
  
  .search-container {
    max-width: 620px;
  }
  
  .search-input {
    padding: 18px 18px 18px 60px;
    font-size: 1.12rem;
  }
  
  .hashtags-section {
    gap: 12px;
    margin-bottom: 55px;
  }
  
  .hashtag-btn {
    padding: 12px 24px;
    font-size: 0.98rem;
  }
  
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
  }
  
  .event-card {
    padding: 35px;
  }
  
  .event-header {
    font-size: 1.85rem;
    margin-bottom: 24px;
  }
  
  .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
  }
  
  .event-description {
    font-size: 0.98rem;
    margin-bottom: 24px;
  }
  
  .event-buttons {
    gap: 17px;
    margin-bottom: 24px;
  }
  
  .glow-btn {
    padding: 16px 24px;
    font-size: 0.98rem;
  }
  
  .event-hashtag {
    padding: 7px 16px;
    font-size: 0.9rem;
  }
  
  .load-more-section {
    gap: 24px;
    margin-top: 55px;
  }
  
  .load-btn {
    padding: 18px 45px;
    font-size: 1.18rem;
  }
}

/* ---------- 4K displays — max-width: 1920px ---------- */
@media (min-width: 1601px) and (max-width: 1920px) {
  .events-content {
    padding: 60px 42px;
  }
  
  .events-main-title {
    font-size: 3.2rem;
    margin-top:var(--header-height);
  }
  
  .events-main-title::after {
    width: 330px;
  }
  
  .events-subtitle {
    font-size: 1.2rem;
    padding: 18px 0;
    max-width: 75%;
  }
  
  .search-container {
    max-width: 650px;
  }
  
  .search-input {
    padding: 20px 20px 20px 65px;
    font-size: 1.15rem;
  }
  
  .hashtags-section {
    gap: 13px;
    margin-bottom: 60px;
  }
  
  .hashtag-btn {
    padding: 13px 26px;
    font-size: 1rem;
  }
  
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 55px;
  }
  
  .event-card {
    padding: 40px;
  }
  
  .event-header {
    font-size: 1.9rem;
    margin-bottom: 25px;
  }
  
  .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
  }
  
  .event-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .event-buttons {
    gap: 18px;
    margin-bottom: 25px;
  }
  
  .glow-btn {
    padding: 18px 26px;
    font-size: 1rem;
  }
  
  .event-hashtag {
    padding: 8px 18px;
    font-size: 0.92rem;
  }
  
  .load-more-section {
    gap: 25px;
    margin-top: 60px;
  }
  
  .load-btn {
    padding: 20px 50px;
    font-size: 1.2rem;
  }
}

/* Additional scanline effect for the entire header */
.events-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

/* Scroll animation classes */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile contact section animation */
.mobile-contact-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mobile-contact-section.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Contact section animation */
.contact-section-container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-section-container.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Events container animation */
.events-grid {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.events-grid.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Footer animation */
.footer-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 20;
  position: relative;
}

.footer-section.animate {
  opacity: 1;
  transform: translateY(0);
}

.custom-footer {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.custom-footer.animate {
  opacity: 1;
  transform: translateY(0);
}

.events-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  animation: scanline 6s linear infinite;
  z-index: 10;
}

@keyframes scanline {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}
