/*
  Global styles for Developers at Penn State
  This stylesheet defines the dark‑mode aesthetic, layout, and micro‑interactions across the site.
*/

/* Reset and base typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0a0a0a;
  color: #e6e6e6;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navigation bar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
}

.brand-name {
  display: none;
}

/* Show brand name on larger screens */
@media (min-width: 600px) {
  .brand-name {
    display: inline;
  }
}

.links a {
  margin-left: 1.5rem;
  position: relative;
  color: #b0b0b0;
  transition: color 0.2s;
}

.links a:hover {
  color: #ffffff;
}

/* Glitchy underline effect on hover */
.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0066cc, #00aaff);
  transition: width 0.3s ease-out;
}

.links a:hover::after {
  width: 100%;
}

/* Join button distinct styling */
.join-button {
  background-color: #003366;
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  margin-left: 1.5rem;
  transition: background-color 0.2s;
  font-weight: 600;
  border: 1px solid transparent;
}

.join-button:hover {
  background-color: #004080;
  border-color: #0066cc;
}

/* Hero section */
#hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.tagline {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.subtagline {
  font-size: 1.25rem;
  font-weight: 400;
  color: #cccccc;
  max-width: 700px;
  margin: 0 auto;
}

/* Animations for tagline fade-in on scroll */
.hidden-on-load {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Preview sections on the home page */
.preview {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.preview h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.preview p {
  max-width: 700px;
  margin: 0 auto 1.2rem;
  color: #bdbdbd;
}

.cta-link {
  font-weight: 500;
  color: #0f62fe;
  position: relative;
  display: inline-block;
  transition: color 0.2s;
}

.cta-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0f62fe, #8ab4f8);
  transition: width 0.3s ease-out;
}

.cta-link:hover {
  color: #8ab4f8;
}

.cta-link:hover::after {
  width: 100%;
}

/* Footer styling */
.site-footer {
  background-color: #111111;
  color: #bbbbbb;
  padding: 2.5rem 1rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.social-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #222;
  color: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}

.social-icon:hover {
  background-color: #003366;
  transform: scale(1.1);
}

#subscribe-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

#subscribe-form input {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  background-color: #222;
  color: #e6e6e6;
  outline: none;
  font-size: 0.9rem;
}

#subscribe-form button {
  padding: 0.5rem 1rem;
  background-color: #003366;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

#subscribe-form button:hover {
  background-color: #004080;
}

.lion-nod {
  margin-top: 0.5rem;
  font-style: italic;
  color: #777;
}

/* Modal styling for podcasts */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #1a1a1a;
  color: #cccccc;
  border-radius: 10px;
  padding: 1.5rem;
  width: 90%;
  max-width: 620px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: #888;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #ffffff;
}

.podcast-player {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.podcast-artwork {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #003366 0%, #3350a3 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.podcast-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.episode-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
}

.episode-description {
  font-size: 0.95rem;
  color: #bbbbbb;
  line-height: 1.5;
}

.waveform-container {
  display: flex;
  align-items: flex-end;
  height: 60px;
  gap: 2px;
  margin-bottom: 0.5rem;
}

.bar {
  width: 4px;
  background-color: #0f62fe;
  animation: equaliser 0.9s linear infinite;
  animation-delay: calc(-0.1s * var(--i));
  border-radius: 2px 2px 0 0;
}

@keyframes equaliser {
  0%, 100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

audio {
  width: 100%;
  outline: none;
}

/* Profile cards (About page) */
.profile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.profile-card {
  position: relative;
  width: 260px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.profile-card img {
  width: 100%;
  height: auto;
  display: block;
}

.profile-card .card-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: #e6e6e6;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.profile-card:hover {
  transform: translateY(-6px);
}

.profile-card:hover .card-info {
  opacity: 1;
}

.card-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.card-info p {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: #cccccc;
}

.card-socials {
  display: flex;
  gap: 0.5rem;
}

.card-socials .social-icon {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
  line-height: 1;
}

.card-socials .social-icon:hover {
  background-color: #003366;
}

/* About page layout */
.about-main {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.about-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.about-intro h1 {
  margin-bottom: 0.5rem;
}

.team-section {
  text-align: center;
  padding: 2rem 0;
}

.team-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #ffffff;
}

/* Events calendar styles */
.events-main {
  padding: 4rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

#calendar {
  margin-top: 2rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.calendar-header h2 {
  font-size: 1.6rem;
  font-weight: 600;
}

.calendar-nav {
  background: none;
  border: none;
  color: #0f62fe;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  transition: color 0.2s;
}

.calendar-nav:hover {
  color: #8ab4f8;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.weekday {
  text-align: center;
  font-weight: 600;
  padding: 0.5rem 0;
  color: #888;
  border-bottom: 1px solid #222;
}

.day {
  text-align: center;
  padding: 0.6rem 0;
  cursor: default;
  border-radius: 4px;
  position: relative;
  color: #ddd;
}

.day.blank {
  background-color: transparent;
  cursor: default;
}

.day.has-event {
  background-color: #122c56;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.day.has-event:hover {
  background-color: #004080;
}

.day.today {
  border: 1px solid #0066cc;
}

#event-details {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateY(100%);
  background-color: #1a1a1a;
  border-top: 2px solid #003366;
  padding: 1.5rem 1rem;
  color: #cccccc;
  z-index: 4000;
  transition: transform 0.4s ease-out;
}

#event-details.visible {
  transform: translateY(0);
}

#event-details h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

#event-details p {
  margin-bottom: 0.5rem;
}

.event-countdown {
  font-family: monospace;
  font-weight: 600;
  color: #0f62fe;
  margin-top: 0.5rem;
}

.event-rsvp {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.8rem;
  background-color: #003366;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.event-rsvp:hover {
  background-color: #004080;
}

#close-event-details {
  position: absolute;
  top: 8px;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 1.6rem;
  cursor: pointer;
}

#close-event-details:hover {
  color: #ffffff;
}

/* Join page form styling */
.join-main {
  max-width: 700px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.join-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.join-form .form-row {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.join-form label {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: #cccccc;
}

.join-form input,
.join-form textarea {
  background-color: #111111;
  border: 1px solid #222222;
  border-radius: 4px;
  padding: 0.6rem;
  color: #e6e6e6;
  font-size: 1rem;
  resize: vertical;
}

.join-form input:focus,
.join-form textarea:focus {
  outline: none;
  border-color: #004080;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.5);
}

.join-submit {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  background-color: #003366;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.join-submit:hover {
  background-color: #004080;
}

/* Projects page */
.projects-main {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.project-card {
  position: relative;
  width: 320px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: #e6e6e6;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card:hover .project-info {
  transform: translateY(0);
}

.project-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.project-info p {
  font-size: 0.9rem;
  color: #cccccc;
}

/* Utility classes for slides or hidden elements */
.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .links a {
    margin-left: 1rem;
  }
  .tagline {
    font-size: 2.2rem;
  }
  .subtagline {
    font-size: 1rem;
  }
}
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.9) 0%,
    rgba(255,255,255,0) 80%
  );
  box-shadow: 0 0 8px rgba(255,255,255,0.7);
  transform: translate(-50%, -50%);
  z-index: 9999;
}
/* when hovering over a button or link */
.cursor.hover {
  width: 32px;
  height: 32px;
  background: radial-gradient(
    circle at center,
    rgba(0,123,255,0.9) 0%,
    rgba(0,123,255,0) 80%
  );
  box-shadow: 0 0 12px rgba(0,123,255,0.7);
}



