/* ===============================================
   MODERN UI COMPONENTS
   =============================================== */

/* ===============================================
   BUTTONS
   =============================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.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: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

/* Button Variants */
.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--secondary-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
}

.btn-outline:hover {
  background: var(--primary-accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--text-lg);
}

.btn-xl {
  padding: var(--space-xl) var(--space-2xl);
  font-size: var(--text-xl);
}

/* Button States */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-loading {
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===============================================
   CARDS
   =============================================== */

.card {
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary-gradient);
  opacity: 0.5;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(102, 126, 234, 0.3);
}

.card-header {
  margin-bottom: var(--space-lg);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-lg);
}

.card-content {
  margin-bottom: var(--space-lg);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: auto;
}

/* Card Variants */
.card-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-gradient {
  background: var(--primary-gradient);
  color: var(--text-primary);
}

.card-hover-glow:hover {
  box-shadow: var(--shadow-glow);
}

/* ===============================================
   EVENT CARDS
   =============================================== */

.event-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-dark);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.event-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.event-card-video,
.event-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.event-card:hover .event-card-video,
.event-card:hover .event-card-image {
  transform: scale(1.1);
}

.event-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.event-card:hover .event-card-overlay {
  opacity: 1;
}

.event-card-content {
  padding: var(--space-lg);
}

.event-card-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--secondary-gradient);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 2;
}

.event-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.event-card-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
}

.event-card-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
}

.event-card-meta-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
}

/* ===============================================
   FORMS
   =============================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all var(--transition-base);
}

.form-input:focus {
  border-color: var(--primary-accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Form States */
.form-input.error {
  border-color: var(--accent-error);
}

.form-input.success {
  border-color: var(--accent-success);
}

.form-error {
  color: var(--accent-error);
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
}

/* ===============================================
   HERO SECTIONS
   =============================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-video,
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 var(--space-md);
  z-index: 1;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 1s ease-out;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  animation: fadeIn 1s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  animation: fadeIn 1s ease-out 0.4s both;
}

/* ===============================================
   SECTION STYLING
   =============================================== */

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===============================================
   TESTIMONIALS
   =============================================== */

.testimonial-card {
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-lg);
  border: 3px solid var(--primary-accent);
}

.testimonial-content {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.testimonial-role {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ===============================================
   RESPONSIVE COMPONENT ADJUSTMENTS
   =============================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .event-card-content {
    padding: var(--space-md);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
}

/* ===========================================
   MODERN POPUP SYSTEM
   =========================================== */
.modern-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 35, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modern-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modern-popup-overlay.closing {
    opacity: 0;
    transform: scale(0.95);
}

.modern-popup-content {
    background: var(--background-secondary);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s ease;
    border: 1px solid var(--border-primary);
}

.modern-popup-overlay.show .modern-popup-content {
    transform: translateY(0) scale(1);
}

.popup-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-primary);
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.popup-body {
    padding: 2rem;
}

.registration-info {
    margin-bottom: 1.5rem;
}

.info-card {
    background: var(--background-primary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reg-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.email-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.join-message {
    text-align: center;
    color: var(--text-secondary);
    margin: 0;
}

.popup-actions {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ===========================================
   FORM VALIDATION & ERROR HANDLING
   =========================================== */
.form-error-message {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #ff2d2d;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.field-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

/* Loading state for buttons */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--text-muted);
}

/* ===========================================
   COUNTDOWN TIMER STYLES
   =========================================== */
.countdown-timer {
    background: var(--background-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.countdown-display {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
}

.countdown-item {
    flex: 1;
    text-align: center;
    padding: var(--space-sm);
    background: var(--background-primary);
    border-radius: var(--radius-md);
}

.countdown-number {
    display: block;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* ===========================================
   MODAL STYLES
   =========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.modal-content {
    position: relative;
    background-color: var(--background-secondary);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-primary);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--background-primary);
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: var(--error-color);
    color: white;
    transform: scale(1.1);
}

#modal-gallery-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

#modal-gallery-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base);
}

#modal-gallery-content img:hover {
    transform: scale(1.05);
}

/* ===========================================
   RESPONSIVE COUNTDOWN
   =========================================== */
@media (max-width: 768px) {
    .countdown-display {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }
    
    .countdown-item {
        min-width: calc(50% - var(--space-xs));
    }
    
    .countdown-number {
        font-size: var(--text-lg);
    }
}

/* ===========================================
   ALERT COMPONENTS
   =========================================== */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    border-left: 4px solid;
    animation: slideInDown 0.3s ease;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.alert-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-left-color: #047857;
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-left-color: #b91c1c;
    color: white;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
   ENHANCED SCROLL ANIMATIONS
   =========================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   ENHANCED EVENT CARDS
   =========================================== */
.event-card-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--primary-gradient);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-card-date {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

/* ===========================================
   SPONSORS SCROLL ANIMATION
   =========================================== */
.sponsors-scroll {
    display: flex;
    gap: var(--space-xl);
    animation: scroll 30s linear infinite;
    align-items: center;
}

.sponsor-item {
    flex-shrink: 0;
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: transform var(--transition-base);
}

.sponsor-item:hover {
    transform: scale(1.05);
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter var(--transition-base);
}

.sponsor-item:hover img {
    filter: grayscale(0);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===========================================
   COUNTER ANIMATIONS
   =========================================== */
.counter {
    transition: all 0.3s ease;
}

.counter.animate-in {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ===========================================
   PARALLAX EFFECTS
   =========================================== */
.hero-video {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ===========================================
   FORM ENHANCEMENTS
   =========================================== */
.form-input.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
    color: var(--error-color);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
    min-height: 1.2rem;
}

/* ===============================================
   TEAM COMPONENTS
   =============================================== */

/* Enhanced floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.team-member-card {
  background: var(--card-background);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  animation: float 6s ease-in-out infinite;
}

.team-member-card:nth-child(2n) {
  animation-delay: -2s;
}

.team-member-card:nth-child(3n) {
  animation-delay: -4s;
}

.team-member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.team-member-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(var(--primary-rgb), 0.3);
  border-color: var(--primary-color);
}

.team-member-card:hover::before {
  opacity: 0.05;
}

.team-card-media {
  position: relative;
  background: transparent;
  padding: var(--space-lg) var(--space-lg) var(--space-xl) var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  flex-shrink: 0;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.team-avatar::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: var(--primary-gradient);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.team-member-card:hover .team-avatar {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.team-member-card:hover .team-avatar::before {
  opacity: 1;
}

.team-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.team-member-card:hover .team-avatar-image {
  transform: scale(1.05);
}

.team-card-content {
  background: transparent;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  position: relative;
}

.team-member-name {
  color: var(--text-primary);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.team-member-card:hover .team-member-name {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-member-position {
  color: var(--text-secondary);
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.team-member-card:hover .team-member-position {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.team-social-links {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--space-sm);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  opacity: 0.8;
  transform: translateY(10px);
}

.team-member-card:hover .social-link {
  opacity: 1;
  transform: translateY(0);
}

.social-link:hover {
  background: var(--primary-gradient);
  color: var(--text-primary);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: transparent;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Team Grid Layouts with Responsive Design */
.team-grid {
  display: grid;
  gap: var(--space-lg);
  justify-items: center;
}

.team-grid-founders {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 800px;
  margin: 0 auto;
}

.team-grid-founders .team-member-card {
  max-width: 320px;
  width: 100%;
}

.team-grid-founders .team-avatar {
  width: 120px;
  height: 120px;
  border-width: 3px;
}

.team-grid-founders .team-member-name {
  font-size: var(--text-lg);
}

.team-grid-founders .team-member-position {
  font-size: var(--text-sm);
}

.team-grid-club-heads {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.team-grid-club-heads .team-member-card {
  max-width: 320px;
  width: 100%;
}

.team-grid-core {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.team-grid-core .team-member-card {
  max-width: 320px;
  width: 100%;
}

.team-grid-members {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.team-grid-members .team-member-card {
  max-width: 320px;
  width: 100%;
}

/* Ensure uniform card heights within each section */
.team-grid-founders,
.team-grid-club-heads,
.team-grid-core,
.team-grid-members {
  align-items: stretch;
}

/* All cards have the same size as club heads cards */
.team-grid-founders .team-member-card,
.team-grid-club-heads .team-member-card,
.team-grid-core .team-member-card,
.team-grid-members .team-member-card {
  min-height: 380px;
  max-width: 320px;
  width: 100%;
}

/* Center single cards or odd numbers */
.team-grid.center-single {
  justify-content: center;
}

.team-grid.center-last-row {
  justify-items: center;
}

.team-grid.center-last-row > .team-member-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}

/* Auto-centering for grids with single items */
.team-grid:has(.team-member-card:only-child) {
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .team-grid-founders,
  .team-grid-club-heads,
  .team-grid-core,
  .team-grid-members {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .team-grid {
    gap: var(--space-md);
  }
  
  .team-grid-founders,
  .team-grid-club-heads,
  .team-grid-core,
  .team-grid-members {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .team-avatar {
    width: 100px;
    height: 100px;
  }
  
  .team-grid-founders .team-avatar {
    width: 100px;
    height: 100px;
  }
  
  .team-member-name {
    font-size: var(--text-base);
  }
  
  .team-member-position {
    font-size: var(--text-sm);
  }
  
  .team-grid-founders .team-member-card,
  .team-grid-club-heads .team-member-card,
  .team-grid-core .team-member-card,
  .team-grid-members .team-member-card {
    min-height: 350px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .team-grid-founders,
  .team-grid-club-heads,
  .team-grid-core,
  .team-grid-members {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .team-member-position {
    font-size: var(--text-sm);
  }
  
  .social-link {
    width: 36px;
    height: 36px;
  }
  
  .social-link svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .team-grid-founders,
  .team-grid-club-heads,
  .team-grid-core,
  .team-grid-members {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .team-member-card {
    max-width: 100%;
  }
}

/* Animation for scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Team Statistics Cards */
.team-stats-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.team-stats-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.team-stats-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.team-stats-label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
