/* Custom styles for Joint Minds Club */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #003366;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #002244;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slideDown {
  animation: slideDown 0.3s ease-out;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Button hover effects */
.btn-primary {
  background-color: #003366;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #002244;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.btn-accent {
  background-color: #dc143c;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #b01030;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

/* Card hover effects */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15), 0 0 20px rgba(220, 20, 60, 0.1);
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #003366;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Members Page Tabs */
.tab-btn {
  background-color: #f3f4f6;
  color: #6b7280;
}

.tab-btn.active {
  background-color: #003366;
  color: white;
}

.tab-btn:hover {
  background-color: #e5e7eb;
}

.tab-btn.active:hover {
  background-color: #002244;
}

/* Gallery Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-close:hover {
  color: #dc143c;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  padding: 20px;
  user-select: none;
}

.lightbox-nav:hover {
  color: #dc143c;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  max-width: 80%;
}

/* Gallery filters */
.filter-btn {
  padding: 8px 16px;
  border-radius: 6px;
  background-color: #f3f4f6;
  color: #6b7280;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-weight: 500;
}

.filter-btn.active {
  background-color: #003366;
  color: white;
}

.filter-btn:hover {
  background-color: #e5e7eb;
}

.filter-btn.active:hover {
  background-color: #002244;
}

/* Footer link hover effects */
footer a {
  position: relative;
  display: inline-block;
}

footer a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background: linear-gradient(90deg, #dc143c, #ff6b6b);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

footer a:hover::after {
  width: 100%;
}

/* Enhanced social media icon animations */
footer .flex.space-x-3 a {
  position: relative;
  overflow: hidden;
}

footer .flex.space-x-3 a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(220, 20, 60, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

footer .flex.space-x-3 a:hover::before {
  width: 200%;
  height: 200%;
}

/* Smooth scroll behavior for all links */
a[href^="#"] {
  scroll-behavior: smooth;
}

/* Enhanced dropdown menu styles */
nav .group:hover .absolute {
  animation: fadeInScale 0.3s ease-out forwards;
}

/* Better mobile menu hamburger animation */
#hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#hamburger span {
  transform-origin: center;
  display: block;
}
