/* --- 1. SETUP & VARIABLES --- */
:root {
  --primary: #0f172a; /* Midnight Blue */
  --accent: #4a9c8c; /* Vibrant Blue */
  --accent-glow: #4a9c8c; /* Lighter Blue for gradients */
  --bg-light: #f8fafc; /* Off-white */
  --bg-white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

/* --- 2. NAVIGATION (Glassmorphism) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s;
}

.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.logo-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.mobile-menu-icon {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* --- 3. BUTTONS --- */
.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background: #f8fafc;
}

.btn-text {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

/* --- 4. HERO SECTION (Animated Mesh) --- */
.hero-section {
  position: relative;
  padding: 160px 0 100px 0;
  text-align: center;
  overflow: hidden;
}

/* CSS Mesh Gradient Animation */
.hero-bg-animation {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 50% 50%,
      rgba(59, 130, 246, 0.1),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(96, 165, 250, 0.15),
      transparent 40%
    );
  z-index: -1;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.pill-badge {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 24px;
  display: inline-block;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

/* Floating Stats */
.hero-stats {
  display: inline-flex;
  background: white;
  padding: 24px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  gap: 40px;
  align-items: center;
}

.stat-number {
  display: block;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* --- 5. SECTIONS GENERAL --- */
.section {
  padding: 100px 0;
}
.bg-light {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* --- 6. ABOUT --- */
.glass-panel {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--text-main);
}

/* --- 7. BENTO GRID (FEATURES) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-box {
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.bento-box:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.box-large {
  background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
  color: white;
}
.box-large h3,
.box-large p {
  color: white;
}
.box-large .icon-circle {
  background: rgba(255, 255, 255, 0.2);
}

.icon-circle {
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.bento-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.bento-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.box-large p {
  color: rgba(255, 255, 255, 0.8);
}

/* --- 8. EVENTS --- */
.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.event-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: 0.3s;
}

.event-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.date-badge {
  background: var(--bg-light);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  min-width: 70px;
  border: 1px solid var(--border);
}

.d-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.d-month {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}
.event-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.event-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- 9. DARK TESTIMONIAL --- */
.dark-section {
  background-color: var(--primary);
  color: white;
  padding: 80px 0;
}
.quote-text {
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 40px;
  opacity: 0.9;
}
.quote-author {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.author-details strong {
  display: block;
}
.author-details span {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- 10. FOOTER --- */
.footer-section {
  background: white;
  padding: 80px 0 20px 0;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary);
}
.footer-brand p {
  color: var(--text-muted);
}
.footer-contact h4,
.footer-links h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-email {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.2rem;
}
.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 12px;
  transition: 0.2s;
}
.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- 11. RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .nav-links,
  .nav-actions {
    display: none;
  } /* Simplified mobile nav */
  .mobile-menu-icon {
    display: block;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    width: 100%;
  }
  .divider {
    width: 40px;
    height: 1px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* --- NEW 12. LOGIN PORTAL SECTION --- */

.login-portal-section {
  padding: 100px 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.portal-card {
  background: white;
  padding: 40px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.1);
}

.portal-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.portal-card p {
  color: var(--text-muted);
  margin-bottom: 30px;
  min-height: 40px; /* Ensures consistent card height */
}

.portal-icon {
  margin: 0 auto 20px auto;
  font-size: 1.8rem;
  width: 60px;
  height: 60px;
}

/* Customizing icons/buttons for visual distinction */
.member-icon {
  background-color: rgba(59, 130, 246, 0.1);
}
.admin-icon {
  background-color: rgba(234, 179, 8, 0.1);
} /* Light gold/yellow for admin */

.btn-portal {
  display: block;
  width: 100%;
  padding: 12px 0;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
  border: none;
}

.member-btn {
  background-color: var(--accent); /* Vibrant Blue */
  color: white;
}

.member-btn:hover {
  background-color: #2563eb;
}

.admin-btn {
  background-color: #fbbf24; /* Amber/Gold for Admin distinction */
  color: var(--primary);
}

.admin-btn:hover {
  background-color: #eab308;
  color: white;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
  /* Existing media queries from previous response are still active */

  .portal-grid {
    grid-template-columns: 1fr; /* Stack on mobile */
  }
}


.responsive-img {
    width: 40px;
    max-width: 100px;
    border: solid #4a9c8c 2px;
    border-radius: 50%;
    /* Adjust this value based on your requirement */
    height: auto;
    display: block;
    margin: 0 auto;
    margin-left: 10px;
    /* Centers the image */
}

@media (max-width: 768px) {

    /* Adjust image size for tablets */
    .responsive-img {
        max-width: 100px;
        border: solid #4a9c8c 2px;
        border-radius: 50%;
    }

    .hide-on-sm {
        display: none;
    }
}