/* ABOUT PAGE STYLES - Matching Events Page Design */
@import url('style.css');

/* =========================================
   HERO SECTION - ENHANCED
   ========================================= */
.hero-section {
  background: linear-gradient(135deg, var(--accent-color, #0a84ff), #004e8a);
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  /* Add subtle texture pattern */
  background-image: 
    linear-gradient(135deg, rgba(0,0,0,0.2) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2) 75%, transparent 75%, transparent),
    linear-gradient(135deg, var(--accent-color, #0a84ff), #004e8a);
  background-size: 8px 8px, 100% 100%;
}

/* Scanline / Pulse Effect */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: heroPulse 4s infinite alternate;
  pointer-events: none;
}

@keyframes heroPulse {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(1.1); }
}

/* Floating Elements in Background (Optional Polish) */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 3px
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.9s ease-out;
}

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

/* Title */
.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 30px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  position: relative;
  letter-spacing: -1px;
}

/* Title Underline */
.hero-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Motto Banner */
.motto-banner {
  display: inline-block;
  padding: 25px 40px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1.5s ease-out;
  transition: transform 0.3s ease;
}

.motto-banner:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.4);
}

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

.motto-main {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 600;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.motto-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   LIGHT MODE OVERRIDES (Consolidated)
   ========================================= */
body.light-mode .hero-section {
  background: linear-gradient(135deg, #e9f2ff, #dbefff);
  background-image: none; /* Remove texture in light mode for cleaner look */
}

body.light-mode .hero-section::before {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  opacity: 0.5;
}

body.light-mode .hero-title {
  color: #0f172a;
  text-shadow: none;
}

body.light-mode .hero-title::after {
  background: var(--accent-color);
  box-shadow: none;
}

body.light-mode .motto-banner {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: none;
}

body.light-mode .motto-main {
  color: #111111;
  text-shadow: none;
}

body.light-mode .motto-subtitle {
  color: #4a5568;
}

/* =========================================
   CONTENT SECTIONS
   ========================================= */
.content-section {
  padding: 80px 0;
  position: relative;
}

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

.section-title {
  text-align: center;
  margin: 0 0 50px 0;
  color: var(--text-primary);
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 20px;
  font-family: var(--font-heading);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* WHO WE ARE */
.who-we-are-section {
  background: var(--bg-primary);
}

.who-we-are-content {
  max-width: 900px;
  margin: 0 auto;
}

.definition-card {
  background: linear-gradient(135deg, var(--card-bg), rgba(0, 170, 255, 0.03));
  border-radius: 20px;
  padding: 50px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.definition-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-color), #0088cc);
}

.definition-text {
  font-size: 1.35rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0;
  text-align: center;
  font-weight: 500;
}

.who-is-this-for {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 35px;
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--accent-color);
  box-shadow: var(--shadow);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.who-is-this-for h3 {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.audience-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ======================================
   WHAT WE DO SECTION
====================================== */

.what-we-do-section {
  background: linear-gradient(
    to bottom,
    var(--bg-secondary),
    var(--bg-primary)
  );
}

/* ---------- GRID ---------- */

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

/* ---------- CARD ---------- */

.activity-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  border: 1px solid var(--border-color);

  position: relative;
  transition: transform 0.35s ease,
              box-shadow 0.35s ease,
              border-color 0.35s ease;

  animation: fadeInUp 0.6s ease-out backwards;
}

/* Stagger animation */
.activity-card:nth-child(1) { animation-delay: 0.1s; }
.activity-card:nth-child(2) { animation-delay: 0.2s; }
.activity-card:nth-child(3) { animation-delay: 0.3s; }
.activity-card:nth-child(4) { animation-delay: 0.4s; }
.activity-card:nth-child(5) { animation-delay: 0.5s; }
.activity-card:nth-child(6) { animation-delay: 0.6s; }
.activity-card:nth-child(7) { animation-delay: 0.7s; }
.activity-card:nth-child(8) { animation-delay: 0.8s; }

/* ---------- HOVER EFFECT ---------- */

.activity-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 170, 255, 0.15);
}

/* Accent top border without layout shift */
.activity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.activity-card:hover::before {
  opacity: 1;
}

/* ---------- ICON ---------- */

.activity-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    rgba(0, 170, 255, 0.7)
  );
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 20px;

  color: #ffffff;
  font-size: 1.5rem;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover .activity-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(0, 170, 255, 0.3);
}

/* ---------- TITLE ---------- */

.activity-card h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin: 0 0 12px 0;
  font-weight: 600;
  transition: color 0.3s ease;
}

.activity-card:hover h3 {
  color: var(--accent-color);
}

/* ---------- DESCRIPTION ---------- */

.activity-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* FOCUS AREAS */
.focus-areas-section {
  background: var(--bg-primary);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.focus-card {
  background: var(--card-bg);
  padding: 35px 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover Shimmer Effect */
.focus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.5s ease;
}

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

.focus-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.icon {
  font-size: 3rem;
  margin-bottom: 24px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.focus-card:hover .icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px currentColor);
}

/* Individual Focus Card Colors */
.focus-card:nth-child(1):hover .icon { color: #00aaff; }
.focus-card:nth-child(2):hover .icon { color: #0aff9d; }
.focus-card:nth-child(3):hover .icon { color: #bc13fe; }
.focus-card:nth-child(4):hover .icon { color: #ff0055; }
.focus-card:nth-child(5):hover .icon { color: #333; } /* Light mode default */
.focus-card:nth-child(6):hover .icon { color: #ffbd2e; }

[data-theme='dark'] .focus-card:nth-child(5):hover .icon { color: #fff; }

.focus-card h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.focus-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  margin: 0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.focus-card:hover .focus-card-desc {
  opacity: 1;
}

/* COMMITTEE SECTION */
.committee-section {
  background: var(--bg-primary);
}

.committee-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.member-card {
  flex: 0 1 280px; /* Flex-basis 280px, allow growing and shrinking */
  background: var(--card-bg);
  border-radius: 16px;
  padding: 35px 25px;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* REPLACED JS HOVER EFFECTS WITH CSS */
.member-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 0 30px rgba(0, 170, 255, 0.3), 0 15px 35px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.member-card:focus-within {
  outline: 3px solid var(--accent-color);
  outline-offset: 5px;
  transform: translateY(-5px);
}

/* Top accent line */
.member-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #0088cc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.member-card:hover::after {
  transform: scaleX(1);
}

.member-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), #005f8f);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 170, 255, 0.2);
}

.avatar-placeholder {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  font-family: var(--font-heading);
}

.member-info {
  width: 100%;
}

.member-designation {
  display: inline-block;
  background: rgba(0, 170, 255, 0.1);
  color: var(--accent-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.member-name {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.member-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.member-socials {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-link.linkedin { background: #0077b5; }
.social-link.github { background: #24292e; }
.social-link.discord { background: #5865f2; }

[data-theme="light"] .member-card{
  background: #ffffff;
}

/* ===== JOIN SECTION ===== */
#join-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, var(--bg-primary), var(--card-bg));
  border-top: 1px solid var(--border-color);
}

.organize-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

.organize-content {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.organize-content h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.organize-content p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.join-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.join-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.stat-item h4 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin: 0;
  font-weight: 800;
}

.stat-item p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.organize-image {
  background: #000;
  position: relative;
  overflow: hidden;
}

.organize-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 5s ease;
}

.organize-container:hover .organize-image img {
  transform: scale(1.05);
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .organize-container { grid-template-columns: 1fr; }
  .organize-image { height: 250px; }
}

@media (max-width: 768px) {
  .hero-section { padding: 100px 20px; }
  .hero-title { font-size: 2.2rem; }
  .motto-banner { padding: 20px 25px; }
  .definition-card { padding: 30px 20px; }
  .definition-text { font-size: 1.1rem; }
  
  .activities-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  
  .committee-grid { justify-content: center; }
  .member-card { width: 100%; max-width: 350px; flex: auto; }
  
  .organize-content { padding: 30px 25px; }
  .join-stats { gap: 15px; justify-content: space-between; }
  .stat-item h4 { font-size: 1.3rem; }
}

/* PREFERS REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-section::before,
  .motto-banner,
  .focus-card,
  .activity-card,
  .member-card,
  .social-link {
    animation: none !important;
    transition: none !important;
  }

  .member-card:hover,
  .social-link:hover {
    transform: none;
  }
}

