


/* =========================================
   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 ENTRANCE ANIMATION
========================================= */

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeSlide 1s ease forwards;
}

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

/* =========================================
   HERO GLOW BACKGROUND ACCENT
========================================= */

.hero-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(0, 170, 255, 0.25) 0%,
    transparent 70%
  );
  animation: heroGlowPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroGlowPulse {
  0% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.hero-title {
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 35px;

  background: linear-gradient(
    90deg,
    #ffffff,
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 4px 25px rgba(0, 170, 255, 0.25);
}

@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(233, 198, 198, 0.9);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Motto Banner */
.motto-banner {
  display: inline-block;
  padding: 28px 45px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 40px rgba(0, 170, 255, 0.08);

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

/* Floating effect */
.motto-banner:hover {
  transform: translateY(-8px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(0, 170, 255, 0.2);
}

.hero-section {
  padding: 140px 20px 120px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .motto-banner {
    padding: 20px 25px;
  }
}

@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;
  color: #0a84ff !important;
  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;
}

.content-section .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;
}

/* =========================================
   WHO WE ARE – Animated Vertical Accent
========================================= */

.definition-card,
.who-is-this-for {
  position: relative;
  overflow: hidden;
}

/* Hidden vertical accent line */
.definition-card::before,
.who-is-this-for::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--accent-color),
    #0088cc
  );
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

/* Animate on hover */
.definition-card:hover::before,
.who-is-this-for:hover::before {
  transform: scaleY(1);
}

.definition-card,
.who-is-this-for {
  transition: 
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.definition-card:hover,
.who-is-this-for:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 170, 255, 0.15);
}

.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);

  transition: all 0.3s ease;
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out backwards;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: default;
  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 animations */
.activity-card:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.activity-card:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.activity-card:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.activity-card:nth-child(4) {
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.activity-card:nth-child(5) {
  animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.activity-card:nth-child(6) {
  animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

.activity-card:nth-child(7) {
  animation: fadeInUp 0.6s ease-out 0.7s backwards;
}

.activity-card:nth-child(8) {
  animation: fadeInUp 0.6s ease-out 0.8s backwards;
}

.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;

  /* CHANGE THIS LINE */
  color: #ffffff;
  /* Force white so it's always visible on the blue background */

  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);*/
  color: white;
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

/* ---------- 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 links now globally styled in style.css */

/* Specific brand background colors used as fallback or subtle indicators if desired, 
   but currently overridden by unified hover for cleaner UI */
.social-link.linkedin:hover {
  box-shadow: 0 10px 20px rgba(0, 119, 181, 0.4);
}

.social-link.github:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.social-link.discord:hover {
  box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4);
}

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

[data-theme='light'] .social-link {
  background: rgba(0, 170, 255, 0.05);
  border-color: rgba(0, 0, 0, 0.05);
}

/* ===== 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;
  }
}

/* ===== FIX FOOTER ALIGNMENT (MATCH HOME PAGE) ===== */
#footer-placeholder footer {
  width: 100%;
}

/* Match Home page footer container width */
#footer-placeholder footer .container,
#footer-placeholder footer .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box;
}

/* Ensure footer grid stays centered */
#footer-placeholder .footer-content,
#footer-placeholder .footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

