:root {
  --illini-orange: #E84A27;
  --illini-blue: #13294B;
  --white: #ffffff;
}

/* Pulse glow keyframes */
@keyframes pulseGlow {
  0% {
    box-shadow: 
      0 0 0 4px rgba(232, 76, 0, 0.15),
      0 6px 20px rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow: 
      0 0 20px 8px rgba(232, 76, 0, 0.3),
      0 6px 20px rgba(0, 0, 0, 0.12);
  }
  100% {
    box-shadow: 
      0 0 0 4px rgba(232, 76, 0, 0.15),
      0 6px 20px rgba(0, 0, 0, 0.12);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--illini-blue);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
.site-header {
  margin-left: auto;
  border-bottom: none;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Active nav link */
.site-header nav a.active {
  color: var(--illini-orange);
  font-weight: 700;
  text-decoration: underline;
}
.site-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 0;
}
.site-logo {
  height: 48px;
  width: auto;
  display: block;
}


/* Block I logo load animation – enhanced */
.site-logo {
  opacity: 0;
  transform: scale(1.9);
  filter: blur(6px);
  animation:
    logo-enter 1.2s cubic-bezier(.22,.61,.36,1) forwards,
    logo-pulse 6s ease-in-out 1.2s forwards;
  transform-origin: center;
  will-change: transform, opacity, filter;
}

/* Fade in + scale + sharpen */
@keyframes logo-enter {
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* Slow, pronounced pulse */
@keyframes logo-pulse {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.12); }   /* strong expansion */
  55%  { transform: scale(0.97); }   /* noticeable recoil */
  80%  { transform: scale(1.06); }   /* second swell */
  100% { transform: scale(1); }
}



/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  margin-top: 0.75rem;
}
.portrait-wrap {
  width: min(540px, 90vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(
    135deg,
    var(--illini-orange),
    var(--illini-blue)
  );
  overflow: hidden;
}
.portrait-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.about-portrait-wrap {
  width: min(460px, 100%);
  margin: 1.5rem auto -1.5rem;
  position: relative;
}

.about-portrait-wrap img {
  width: 100%;
  display: block;
}

/* animated perimeter line */
.about-portrait-wrap::after {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;

  background:
    linear-gradient(90deg, var(--illini-orange) 50%, transparent 0) top,
    linear-gradient(180deg, var(--illini-orange) 50%, transparent 0) right,
    linear-gradient(270deg, var(--illini-orange) 50%, transparent 0) bottom,
    linear-gradient(0deg, var(--illini-orange) 50%, transparent 0) left;

  background-size: 40px 3px;
  background-repeat: repeat-x, repeat-y, repeat-x, repeat-y;
  background-position: 0 0, 100% 0, 100% 100%, 0 100%;

  animation: trace-border 6s linear infinite;
}

@keyframes trace-border {
  0% {
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  }
  100% {
    background-position: 160px 0, 100% 160px, -160px 100%, 0 -160px;
  }
}



.tenure {
  color: var(--illini-orange);
  margin-top: 0.25rem;
  font-size: clamp(2.1rem, 2.5vw, 1.35rem);
}
.socials {
  margin-top: .66rem;
  margin-bottom: -1.8rem;
}
.socials img {
  width: clamp(26px, 3vw, 32px);
  margin: 0 6px;
  opacity: 0.7;
}
.socials a {
  display: inline-flex;
}
.socials img:hover { opacity: 1; }

.status-section {
  display: flex;
  justify-content: center;
  padding: 2rem 0; /* ⬅ equal space above & below */
}
.status-section-title {
  display: inline-block;
  margin: 5rem auto -1rem;
  padding: 0.5rem 1.25rem;
  text-align: center;
  animation: pulseGlow 2.5s infinite ease-in-out;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.75px;
  text-transform: uppercase;

  color: #00274c; /* Illini Blue text */
  background: rgba(255, 255, 255, 0.85);

  border: 2px solid #e84c00; /* Illini Orange frame */
  border-radius: 999px;

  box-shadow:
    0 0 0 4px rgba(232, 76, 0, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Status Banner */
.status-banner {
  width: 100%;
  padding: 4rem 1rem;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #000;
  border-radius: 0;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.status-green {
  background: #2ecc71;
  box-shadow: 0 0 40px rgba(46, 204, 113, 0.6);
}

.status-yellow {
  background: #f1c40f;
  box-shadow: 0 0 40px rgba(241, 196, 15, 0.6);
}

.status-orange {
  background: #e67e22;
  box-shadow: 0 0 40px rgba(230, 126, 34, 0.6);
}

.status-red {
  background: #e74c3c;
  box-shadow: 0 0 40px rgba(231, 76, 60, 0.6);
}


/* Cards */

main {
  text-align: center;
}
.cards-section-title {
  display: inline-block;
  margin: 2.5rem auto .75rem;
  padding: 0.5rem 1.25rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.75px;
  text-transform: uppercase;

  color: #00274c; /* Illini Blue */
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid #e84c00; /* Illini Orange */
  border-radius: 999px;
  box-shadow:
    0 0 0 4px rgba(232, 76, 0, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.12);

  /* No pulse by default */
  animation: pulseGlow 2.5s infinite ease-in-out;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}
.card {
  border: 2px solid var(--illini-blue);
  padding: 1.75rem;
  text-align: center;
  border-radius: 16px;
  min-height: 160px;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600; /* Card titles */
  background: #fff;
  color: var(--illini-blue);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

.card span.title {
  display: block;
  font-weight: 800; /* Stronger than value */
  margin-bottom: 0.4rem;
  font-size: 1.05em;
}

.card span.value {
  font-weight: 500; /* Less bold than title but still strong */
  font-size: 1.15em;
  color: var(--illini-orange);
}

/* Hover effect */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(232, 74, 39, 0.3); /* Illini orange glow */
  border-color: var(--illini-orange);
}

/* Fade-in animation */
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Feed */
.feed-box {
  border: 1px dashed var(--illini-blue);
  padding: 1rem;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 3px solid var(--illini-orange);
  text-align: center;
  padding: 1rem;
}
.site-footer a {
  color: var(--illini-orange);
  text-decoration: none;
}

.bg-hoop {
  position: fixed;
  width: 260px;
  height: 260px;
  border: 10px solid var(--illini-orange);
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
}

.hoop-1 { top: 10%; right: -80px; }
.hoop-2 { bottom: 20%; left: -90px; }
.hoop-3 { top: 35%; left: -70px; }
.hoop-4 { bottom: 10%; right: -60px; }

.bg-ball {
  position: fixed;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.05;
  background:
    radial-gradient(circle at center, transparent 58%, var(--illini-blue) 60%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 7px,
      var(--illini-blue) 8px,
      var(--illini-blue) 10px
    );
  pointer-events: none;
}

.ball-1 { top: 55%; right: -70px; }
.ball-2 { bottom: -60px; left: 40%; }
.ball-3 { top: 20%; left: -60px; }
.ball-4 { bottom: 30%; right: -50px; }


/* Guestbook */

/* Guestbook Section */
.guestbook {
  margin: 3rem auto;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e84c00; /* Illini Orange */
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(232, 76, 0, 0.2);
}

.guestbook-form input,
.guestbook-form textarea {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.guestbook-form button {
  align-self: flex-end;
  padding: 0.5rem 1.25rem;
  background: #e84c00;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guestbook-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(232, 76, 0, 0.4);
}

/* Entries cards */
#guestbook-entries .guest-entry {
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid #00274c; /* Illini Blue border */
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 39, 76, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#guestbook-entries .guest-entry:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(232, 76, 0, 0.25); /* subtle Illini glow */
}

#guestbook-entries .guest-entry p:first-child {
  font-weight: 700;
  color: #00274c;
  margin-bottom: 0.5rem;
}

#guestbook-entries .guest-entry p:last-child {
  font-weight: 500;
  color: #333;
}

/* About */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;  /* centers horizontally */
  gap: 1rem;            /* space between paragraph and image */
}
.about-content .card {
  margin-top: 0;
}
.about-logo {
  max-width: 35px;     /* adjust size as needed */
  width: 100%;          /* responsive */
  height: auto;
}

/* Error page styles - Clean, no images, fully responsive */
.error-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--illini-blue);
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.error-text {
  width: 100%;
  max-width: 90%;
}

.error-number {
  font-size: 20vw;
  font-weight: 900;
  margin: 0;
  line-height: 0.85;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .error-number {
    font-size: 18vw;
  }
}

@media (min-width: 1200px) {
  .error-number {
    font-size: 16rem;
  }
}

.error-description {
  font-size: 6vw;
  font-weight: 700;
  margin: 1rem 0 0;
  line-height: 1;
}

@media (min-width: 768px) {
  .error-description {
    font-size: 5vw;
  }
}

@media (min-width: 1200px) {
  .error-description {
    font-size: 6rem;
  }
}