/* ==========================================
   Base / Variables
========================================== */
:root {
  --purple-50: #f3e8ff;
  --purple-100: #e9d5ff;
  --purple-200: #e9d5ff;
  --purple-300: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-800: #6b21a8;
  --gray-50: #f9fafb;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --black: #000000;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  margin: 0;
  color: var(--gray-800);
  background: #f7f9fc;
}

/* ==========================================
   Header
========================================== */
.site-header {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease;
}
.site-header.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

.app-header { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 50; 
  background: #fff; 
  height: 100px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 0.5rem 1.5rem; 
  border-bottom-left-radius: .75rem; 
  border-bottom-right-radius: .75rem; 
}
@media (min-width: 768px){ 
  .app-header { padding-left: 3rem; padding-right: 3rem; } 
}

.app-header__logo { 
  height: 80px; 
  width: auto;
  object-fit: contain; 
}
@media (max-width: 480px) {
  .app-header {
    height: 80px;
  }
  .app-header__logo {
    height: 20px;
  }
}

/* ==========================================
   Hero
========================================== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
}
.hero__logo {
  max-width: 100%;
  height: auto;
  max-height: 150px;
  margin-bottom: 30px;
  margin-top: 90px;
  animation: logoEntrance 2.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.hero__tagline {
  display: block;
  font-size: 1.125rem;
  line-height: 1.75rem;
  opacity: 0.9;
  max-width: 42rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .hero__tagline {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}
@media (max-width: 768px) {
  .hero__logo {
    max-height: 100px;
    margin-top: 60px;
  }
}
@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--purple-700);
  padding: 1rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  border: 0;
  cursor: pointer;
  animation: bounce 1s infinite;
}
.scroll-down:hover {
  background: var(--purple-100);
  transform: translateX(-50%) scale(1.1);
}
.scroll-down:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.8);
}
.scroll-down svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ==========================================
   Sections & Containers
========================================== */
.section {
  padding: 5rem 1.5rem;
}
.section--light {
  background: #fff;
}
.section--tint {
  background: var(--purple-50);
}
.container {
  max-width: 72rem;
  margin: 0 auto;
}
.container--narrow {
  max-width: 56rem;
}
.section__title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  color: var(--purple-800);
  text-align: center;
  margin: 0 0 3rem;
}
.section__lead {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--gray-700);
}

/* ==========================================
   Cards & Grid
========================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: scale(1.02);
}
.card__title {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: var(--purple-700);
  margin: 0 0 1rem;
}
.card__title .icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.75rem;
  color: var(--purple-500);
}
.card__text {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--gray-700);
}

/* ==========================================
   Organization / Person Cards
========================================== */
.org__subtitle {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: var(--purple-700);
  text-align: center;
  margin: 0 0 2rem;
}
.person-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}
@media (min-width: 640px) {
  .person-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .person-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.person-card {
  position: relative;
  background: var(--purple-50);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
.person-card-base {
  transform: scale(1);
  z-index: 1;
}
.person-card-base.person-card-hovered {
  transform: scale(1.05);
  z-index: 10;
}
.person-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.person-card__photo {
  width: 8rem;
  height: 8rem;
  border-radius: 9999px;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--purple-300);
  transition: border-color 0.3s ease;
}
.person-card:hover .person-card__photo {
  border-color: #8b5cf6;
}
.person-card__name {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--purple-800);
  margin: 0;
}
.person-card__role {
  color: var(--purple-600);
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-top: 0.25rem;
}
.person-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(126, 34, 206, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.person-card-description {
  opacity: 0;
  pointer-events: none;
}
.person-card-base.person-card-hovered .person-card-description {
  opacity: 1;
  pointer-events: auto;
}
.person-card__overlay h4 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.person-card__overlay .role {
  color: var(--purple-200);
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
}
.person-card__overlay p {
  font-size: 0.875rem;
  line-height: 1.5rem;
  margin: 0;
}

/* ==========================================
   Contact & Footer
========================================== */
.contact {
  text-align: center;
}
.contact__title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  color: var(--purple-800);
  margin: 0 0 2rem;
}
.contact__lead {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--gray-700);
  margin: 0 0 1rem;
}
.contact__email {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: var(--purple-700);
  margin: 0;
}

.site-footer {
  background: var(--purple-800);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 5rem;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

/* ==========================================
   Utilities & Cleaned Inline Styles
========================================== */

.text-center {
  text-align: center;
}

.org-block {
  text-align: center;
  margin-bottom: 3rem;
}

/* Moved hero background here to keep HTML clean */
#hero {
  background-image: url("RoPA Automation.png");
}

/* ==========================================
   Animations reused from jumbotron
========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeIn 1.5s ease-out forwards;
}
.animate-fade-in-up {
  animation: fadeInUp 1.5s ease-out forwards;
}

/* ==== Utilities moved from inline styles ==== */
.text-center {
  text-align: center;
}

.org-block {
  text-align: center;
  margin-bottom: 3rem;
}

/* Hero background image moved out of inline attribute */
#hero {
  background-image: url("RoPA Automation.png");
}

/* ==========================================
   Floating Action Button
========================================== */
.fab-signup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--purple-700);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* The Gold Badge */
.fab-signup::after {
  content: "!"; /* Changed text to exclamation mark */
  position: absolute;
  top: -12px;
  right: -12px;
  background: #ffd700; /* Gold color */
  color: #000;
  font-size: 1rem;
  font-weight: 900;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Creates the Pointy Starburst Shape */
  clip-path: polygon(
    50% 0%,
    61% 15%,
    78% 10%,
    80% 28%,
    95% 30%,
    88% 46%,
    98% 60%,
    85% 70%,
    90% 85%,
    73% 85%,
    65% 98%,
    50% 88%,
    35% 98%,
    27% 85%,
    10% 85%,
    15% 70%,
    2% 60%,
    12% 46%,
    5% 30%,
    20% 28%,
    22% 10%,
    39% 15%
  );

  /* Animation Trigger */
  animation: pulse-gold-burst 2s infinite ease-in-out;
}

.fab-signup:hover {
  background-color: var(--purple-800);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Eye-catching Pulse Animation */
@keyframes pulse-gold-burst {
  0% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(255, 215, 0, 0));
  }
  50% {
    transform: scale(1.2) rotate(5deg); /* Slight rotation adds extra "pop" */
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(255, 215, 0, 0));
  }
}

/* Responsive adjustment for the badge */
@media (max-width: 480px) {
  .fab-signup::after {
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
}
