/* ===========================
   FOUNDERS & MESSAGES CSS
   Scoped & Dark Mode via CSS Variables
=========================== */

/* ===========================
   Variables
=========================== */
:root {
  --founders-bg-light: #f5f7fa;
  --founders-bg-light-2: #e0e5ec;
  --founders-bg-dark: #1a1a1a;
  --founders-bg-dark-2: #111111;
  --founders-text-light: #222;
  --founders-text-dark: #bfa448;
  --founders-gold: #ffd700;
  --founders-card-bg: #111;
  --founders-card-shadow: rgba(255, 215, 0, 0.5);
  --founders-card-shadow-hover: rgba(255, 215, 0, 0.8);
}

/* ===========================
   Section Root
=========================== */
.founders-section.upgraded-style {
  font-family: 'Arial', sans-serif;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--founders-bg-light), var(--founders-bg-light-2));
  color: var(--founders-text-light);
  transition: background 0.5s ease, color 0.5s ease;
  position: relative;
}

body.dark-mode .founders-section.upgraded-style {
  background: linear-gradient(135deg, var(--founders-bg-dark), var(--founders-bg-dark-2));
  color: var(--founders-text-dark);
}

/* ===========================
   Page Title
=========================== */
.founders-section.upgraded-style .section-title.fancy-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  color: var(--founders-text-light);
  transition: color 0.5s ease;
}

body.dark-mode .founders-section.upgraded-style .section-title.fancy-title {
  color: var(--founders-gold);
}

/* ===========================
   Founders Grid
=========================== */
.founders-section.upgraded-style .founders-container.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}

/* ===========================
   Founder Card
=========================== */
.founders-section.upgraded-style .founder-card.neon-card {
  background: var(--founders-card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px var(--founders-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.founders-section.upgraded-style .founder-card.neon-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 40px var(--founders-card-shadow-hover);
}

.founders-section.upgraded-style .founder-card .img-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-bottom: 2px solid var(--founders-gold);
}

.founders-section.upgraded-style .founder-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.founders-section.upgraded-style .founder-card:hover .img-wrapper img {
  transform: scale(1.1);
}

.founders-section.upgraded-style .founder-card figcaption {
  padding: 1rem 1.5rem;
  text-align: center;
}

.founders-section.upgraded-style .founder-card h3.glow-text {
  color: var(--founders-gold);
  text-shadow: 0 0 5px var(--founders-gold), 0 0 10px var(--founders-gold), 0 0 20px var(--founders-gold);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

.founders-section.upgraded-style .founder-card p {
  color: #aaa;
  font-size: 1rem;
}

/* ===========================
   Modal
=========================== */
.founders-section.upgraded-style .modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.founders-section.upgraded-style .modal.show {
  display: flex;
}

.founders-section.upgraded-style .modal-content {
  background: var(--founders-card-bg);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 20px var(--founders-gold);
  color: var(--founders-text-light);
  max-width: 500px;
  width: 90%;
  transform: scale(0.8);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.founders-section.upgraded-style .modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.founders-section.upgraded-style .modal .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: var(--founders-gold);
  cursor: pointer;
}

/* ===========================
   Floating Shapes
=========================== */
.founders-section.upgraded-style .floating-shapes span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,215,0,0.2);
  animation: float 6s ease-in-out infinite;
}

.founders-section.upgraded-style .shape-1 { top: 20%; left: 10%; width: 80px; height: 80px; animation-delay: 0s; }
.founders-section.upgraded-style .shape-2 { top: 70%; left: 80%; width: 100px; height: 100px; animation-delay: 2s; }
.founders-section.upgraded-style .shape-3 { top: 40%; left: 50%; width: 60px; height: 60px; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(45deg); }
}
