/* === GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #1a202c;
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #1a202c;
  margin-bottom: 1rem;
}

h1 {
  font-weight: 700;
  font-size: 2.5rem;
}

h2 {
  font-weight: 600;
  font-size: 2rem;
}

h3 {
  font-weight: 600;
  font-size: 1.5rem;
}

p {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 1rem;
}

a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0052a3;
}

/* === Base Styling === */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: transparent;
  min-height: 100vh;
  overflow-x: hidden;
  color: #1a202c;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section {
  padding: 4rem;
  text-align: center;
}

/* === Section Spacing === */
.scroll-section + .scroll-section {
  margin-top: 4rem;
}

#focus {
  padding-bottom: 4rem;
  min-height: 100vh;
  overflow: hidden;
}

#team {
  padding-top: 6rem;
  margin-top: 4rem;
}

#join {
  padding-top: 6rem;
  margin-top: 4rem;
}

#focus h2,
#focus p,
#team h2,
#team p {
  margin: 0;
}

/* === Tesseract Background === */
#tesseract-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: transparent;
}

/* Ensure other elements don't block the canvas */
#main-container {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* === Intro Overlay === */
.intro-overlay {
  background: #0d0d0d;
  color: #fff;
}

/* === Buttons === */
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #b0c4de;
  color: #000;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
}

/* === Hero Section === */
.hero-section {
  height: 100vh;
  position: relative;
  background: transparent;
}

.hero-title-topleft {
  position: absolute;
  top: 15%;
  left: 0;
  padding-left: 8rem;
  max-width: none;
  animation: fadeInUp 1.4s ease-out both;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  z-index: 10;
}

.hero-logo {
  margin-bottom: 0.5rem;
}

.hero-logo-img {
  height: 3.5rem;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.hero-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.hero-title {
  font-size: 6.5rem;
  font-weight: 700;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 0.95;
  color: #1a202c;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 2.2rem;
  font-weight: 500;
  color: #4a5568;
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

/* === Animation === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Navigation / HUD === */
.home-header {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  text-align: center;
  pointer-events: none;
}

.home-logo-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d3d3d3;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
  opacity: 0.9;
  margin: 0;
}

.nav-logo,
.timestamp {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === AAM Split Section === */
.aam-split {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6rem 6rem 6rem 8rem;
  min-height: 100vh;
  background: transparent;
  position: relative;
  z-index: 1;
}

/* Remove all previous effects */
.aam-split::before,
.aam-split::after {
  display: none;
}

/* Pure black background for What is AAM section */
#whatisaam.aam-split {
  background: transparent;
}

/* Subtle background for About section */
#about.aam-split {
  background: rgba(0, 0, 0, 0.001);
}

.aam-left {
  flex: none;
  max-width: 500px;
}

.aam-label {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 2rem;
}

.aam-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
  margin: 0;
  white-space: nowrap;
}

.aam-description {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  text-align: left;
  margin-top: 2rem;
}

.aam-description p {
  margin: 0 0 1rem;
}

.aam-stacked-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding-right: 2rem;
  text-align: right;
  margin-top: 12rem;
  max-width: 620px;
}

.aam-item {
  font-size: 2.8rem;
  font-weight: 700;
  color: #000;
  padding: 1.75rem 0 1rem;
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.aam-item:hover {
  color: #0066cc;
  transform: translateY(-4px);
}

.aam-item::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
}

/* Remove box shadow effects */
#about .aam-item,
#whatisaam .aam-item {
  box-shadow: none;
}

#about .aam-item:hover,
#whatisaam .aam-item:hover {
  box-shadow: none;
}

.aam-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  margin-top: 0.75rem;
  text-align: right;
}

.aam-item.active + .aam-details {
  max-height: 300px;
  opacity: 1;
}

/* === Focus Section + Glass Panel === */
#focus.focus-wrap {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
  color: white;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.glass-panel {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 2;
  position: relative;
}

.focus-title {
  position: relative;
  z-index: 5;
  text-align: center;
  padding-top: 2rem;
  margin-bottom: 4rem;
}

.focus-parallax {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.focus-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2.5rem 3rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  opacity: 1;
  z-index: 3;
  will-change: transform;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 320px;
  text-align: center;
  color: #000;
}

.focus-layer:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%) scale(1.02);
}

.focus-reveal {
  position: absolute;
  left: 50%;
  bottom: -10px; /* Position relative to the bottom */
  transform: translateX(-50%) translateY(100%); /* Center and move it down */
  width: 100%;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.98); /* Slightly more opaque */
  backdrop-filter: blur(12px);
  font-size: 1rem;
  font-weight: normal;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Faster, smoother animation */
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.focus-layer:hover .focus-reveal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(calc(100% + 25px)); /* Final position */
}

.focus-layer:nth-child(1) { top: 15%; }
.focus-layer:nth-child(2) { top: 50%; }
.focus-layer:nth-child(3) { top: 85%; }

/* === Safari-specific fixes === */
@supports (-webkit-touch-callout: none) {
  .focus-wrap,
  .glass-panel,
  .team-card,
  .nav-container {
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
  
  .focus-layer,
  .bio-content {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

/* === Mobile Touch Optimization === */
@media (hover: none) {
  .focus-layer,
  .team-card,
  .nav-links a,
  .bio-link {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .focus-layer:active,
  .team-card:active,
  .nav-links a:active,
  .bio-link:active {
    transform: scale(0.98);
  }
}

/* === Focus Section Mobile === */
@media (max-width: 768px) {
  #focus.focus-wrap {
    padding: 4rem 1rem;
    min-height: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .glass-panel {
    padding: 1.5rem;
    margin: 1rem;
    width: calc(100% - 2rem);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    touch-action: manipulation;
  }

  .focus-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
  }

  .focus-parallax {
    min-height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding: 4rem 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .focus-layer {
    position: relative;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    width: 100%;
    min-width: auto;
    font-size: 2rem;
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .focus-layer:hover {
    transform: none !important;
  }

  .focus-reveal {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none !important;
    width: 100%;
    margin: 1rem 0;
  opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    touch-action: manipulation;
  }

  .focus-layer.active .focus-reveal {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    margin-top: 1rem;
  }

  .focus-reveal p {
    font-size: 1rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .focus-layer {
    font-size: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .focus-reveal {
    padding: 1rem;
  }

  .focus-reveal p {
    font-size: 0.9rem;
  }
}

/* === TEAM SECTION CLEAN RESET === */

.team-section {
  padding: 6rem 2rem;
  background: transparent;
  color: #000;
  text-align: center;
}

.team-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 4rem;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* SWITCH TO GRID FOR ABSOLUTE NON-OVERLAP */
.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.team-card-wrapper {
  width: 100%;
  max-width: 240px;
}

/* LOCK CARD WIDTH & INTERNAL FLEX FOR CONTENT */
.team-card {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #ffffff;
}

.team-avatar {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.05);
}

.team-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.25rem 0;
  white-space: nowrap;         /* 💡 Prevent name wrapping */
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-role {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.75rem;
}

.team-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.4;
  flex-grow: 1;
}









.team-bio-link {
  display: inline-block;
  background: #0066cc;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: auto;
}

.team-bio-link:hover {
  background: #0052a3;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}



/* LINKS & ICONS STAY FLEX-BOX INSIDE CARD */
.team-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.social-icon svg {
  display: block;
}

.social-icon:hover svg {
  fill: #ffffff;
  transform: scale(1.15);
}


/* === How It Works Section === */
.how-it-works-section {
  padding: 6rem 2rem;
  background: transparent;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.how-it-works-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.how-it-works-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 4rem;
  text-align: center;
}

.steps-container {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  position: relative;
}

.steps-list {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
}

.step-number-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.step-number {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0066cc;
  background: #f7fafc;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.step-item:hover .step-number {
  background: #0066cc;
  color: white;
  border-color: #0066cc;
  transform: scale(1.1);
}

.step-line {
  position: relative;
  width: 3px;
  height: 120px;
  display: flex;
  flex-direction: column;
}

.step-line-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e2e8f0;
  border-radius: 2px;
}

.step-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #0066cc;
  border-radius: 2px;
  transition: height 0.5s ease;
}

.step-content {
  flex: 1;
  padding-top: 0.5rem;
}

.step-description {
  font-size: 1.25rem;
  font-weight: 500;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

.step-item:hover .step-description {
  color: #1a202c;
}

.step-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-placeholder {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.visual-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.visual-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.visual-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

/* === Partnerships Section === */
.partnerships-section {
  padding: 6rem 2rem;
  background: transparent;
  position: relative;
  z-index: 1;
}

.partnerships-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.partnerships-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.partnerships-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.partner-logo-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 320px;
  min-height: 80px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.partner-logo-small::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 16px;
  pointer-events: none;
}

.partner-link {
  cursor: pointer;
}

.partner-logo-small:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.partner-logo-img-small {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: grayscale(0%);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.partner-logo-small:hover .partner-logo-img-small {
  transform: scale(1.05);
}

.su-logo {
  width: 146px !important;
  height: 146px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.caam-logo {
  width: 146px !important;
  height: 146px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.uofc-logo {
  width: 146px !important;
  height: 146px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.partner-logo-placeholder {
  width: 60px;
  height: 60px;
  background: #f7fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #e2e8f0;
}

.partner-icon {
  font-size: 1.5rem;
  opacity: 0.7;
}

.partner-name-small {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a202c;
  text-align: center;
  line-height: 1.2;
  max-width: 100px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .partners-row {
    gap: 1.5rem;
  }
  
  .partner-logo-small {
    min-width: 280px;
    min-height: 70px;
    padding: 1.125rem;
  }
  
  .partner-logo-img-small {
    width: 90px;
    height: 90px;
  }
  
  .su-logo {
    width: 117px !important;
    height: 117px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }
  
  .caam-logo {
    width: 117px !important;
    height: 117px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }
  
  .uofc-logo {
    width: 117px !important;
    height: 117px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }
}

@media (max-width: 480px) {
  .partners-row {
    gap: 1rem;
  }
  
  .partner-logo-small {
    min-width: 240px;
    min-height: 60px;
    padding: 0.9375rem;
  }
  
  .partner-logo-img-small {
    width: 75px;
    height: 75px;
  }
  
  .su-logo {
    width: 98px !important;
    height: 98px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }
  
  .caam-logo {
    width: 98px !important;
    height: 98px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }
  
  .uofc-logo {
    width: 98px !important;
    height: 98px !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }
}

/* < === TEAM BIO CSS === > */
.bio-container {
  min-height: 100vh;
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bio-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 102, 204, 0.1);
  position: relative;
  overflow: hidden;
}

.bio-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bio-photo:hover img {
  transform: scale(1.05);
}

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bio-name {
  font-size: 3.5rem;
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.1;
}

.bio-role {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #0066cc;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bio-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.bio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.bio-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 102, 204, 0.05);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.bio-stat:hover {
  transform: translateY(-4px);
}

.bio-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #0066cc;
  margin: 0;
}

.bio-stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25rem;
}

.bio-achievements {
  margin-top: 2rem;
}

.bio-achievements h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
  margin: 0 0 1rem;
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 102, 204, 0.03);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.achievement-item:hover {
  background: rgba(0, 102, 204, 0.08);
  transform: translateX(4px);
}

.achievement-icon {
  width: 24px;
  height: 24px;
  color: #0066cc;
}

.achievement-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

.bio-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.bio-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 8px;
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.bio-link:hover {
  background: rgba(0, 102, 204, 0.15);
  transform: translateY(-2px);
}

.bio-link svg {
  width: 20px;
  height: 20px;
}

.bio-back-button {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bio-back-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.bio-back-button svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1024px) {
  .bio-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bio-photo {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .bio-container {
    padding: 4rem 1rem;
  }

  .bio-content {
    padding: 2rem;
  }

  .bio-name {
    font-size: 2.5rem;
  }

  .bio-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .bio-stats {
    grid-template-columns: 1fr;
  }
}

/* === JOIN SECTION === */
#join {
  margin-top: 10rem; /* Space between team and join */
}
.join-section {
  text-align: center;
  padding: 6rem 2rem;
  background: transparent;
  color: #000;
}

.join-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.join-sub {
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 3rem;
}

.join-form-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
}

.join-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #0066cc;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.join-button:hover {
  background: #0052a3;
  transform: scale(1.05);
}
.svg-button {
  display: inline-block;
  margin-top: 1rem;
}

.svg-join {
  width: 220px;
  height: 70px;
  fill: none;
  stroke: #0066cc;
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.svg-join rect {
  fill: rgba(255, 255, 255, 0.95);
  stroke: #0066cc;
  transition: all 0.3s ease;
}

.svg-join text {
  fill: #0066cc;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
  text-transform: uppercase;
}

.svg-join:hover rect {
  fill: #ffffff;
  stroke: #0052a3;
}

.svg-join:hover text {
  fill: #0052a3;
}




/* === CONTACT GRID SECTION === */
.contact-grid-section {
  background: transparent;
  color: #000;
  padding: 6rem 2rem 8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-block {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-label {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 1rem;
  display: block;
}

.contact-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-block ul li {
  margin: 0.75rem 0;
}

.contact-block a {
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.contact-block a:hover {
  color: #0066cc;
}

.contact-info {
  font-size: 0.85rem;
  color: #666;
  margin: 0.4rem 0;
  line-height: 1.4;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  color: #000;
  font-size: 1rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0066cc;
  background: #ffffff;
}

.contact-form button.cta-button {
  width: fit-content;
  align-self: flex-start;
  background: #0066cc;
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button.cta-button:hover {
  background: #0052a3;
}


/* === Footer Styling === */
#site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: var(--text-color-muted);
  background: transparent;
}
#site-footer p {
  margin: 0;
  opacity: 0.6;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.05em;
}



body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-container {
  flex: 1;
}

#site-footer {
  display: none;
}

body.site-loaded #site-footer {
  display: block;
}

/* === Loading and Error States === */
.section-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 100;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #b0c4de;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 1rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #b0c4de;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.section-error {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 100;
}

.error-message {
  background: rgba(176, 196, 222, 0.1);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 80%;
}

.error-message p {
  color: #ff6b6b;
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
}

.retry-button {
  background: #b0c4de;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.retry-button:hover {
  transform: scale(1.05);
  background: #c5d5e5;
}

/* === Section Transitions === */
.section-enter {
  opacity: 0;
  transform: translateY(20px);
}

.section-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-exit {
  opacity: 1;
  transform: translateY(0);
}

.section-exit-active {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* === Navigation Bar === */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.nav-header {
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-logo-img {
  height: 1.8rem;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-logo-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.nav-logo:hover {
  transform: translateY(-1px);
}

.nav-logo:hover .nav-logo-text {
  color: #0066cc;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #4a5568;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #0066cc;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-links a:hover {
  color: #1a202c;
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links .nav-cta {
  background: #0066cc;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links .nav-cta:hover {
  background: #0052a3;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.nav-links .nav-cta::after {
  display: none;
}

/* Navigation States */
#main-nav.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

#main-nav.nav-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Hover Area for Nav */
.nav-hover-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 999;
}

@media (max-width: 768px) {
  .nav-logo-img {
    height: 1.5rem;
  }

  .nav-logo-text {
    font-size: 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-container {
    padding: 0.75rem 1rem;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links a {
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  .nav-links .nav-cta {
    width: auto;
    margin: 0.5rem auto;
  }
}

/* === Responsive Base Styles === */
@media (max-width: 768px) {
  section {
    padding: 2rem 1rem;
  }
  
  .scroll-section + .scroll-section {
    margin-top: 2rem;
  }

  #focus {
    padding-bottom: 2rem;
  }

  #team {
    padding-top: 20rem;
    margin-top: 20rem;
  }

  #join {
    padding-top: 20rem;
    margin-top: 20rem;
  }
}

/* === Hero Section Mobile === */
@media (max-width: 768px) {
  .hero-title-topleft {
    padding-left: 2rem;
    padding-right: 2rem;
    top: 20%;
  }

  .hero-logo-img {
    height: 2.8rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-sub {
    font-size: 1.6rem;
  }
}

/* === AAM Split Section Mobile === */
@media (max-width: 768px) {
  .aam-split {
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }

  .aam-left {
    max-width: 100%;
  }

  .aam-title {
    font-size: 2rem;
    white-space: normal;
  }

  .aam-stacked-right {
    margin-top: 2rem;
    padding-right: 0;
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .aam-item {
    font-size: 1.8rem;
    padding: 1rem 0;
    text-align: center;
    width: 100%;
  }

  .aam-details {
    text-align: center;
    padding: 0 1rem;
  }
}

/* === Team Section Mobile === */
@media (max-width: 768px) {
  .team-section {
    padding: 2rem 1rem;
  }

  .team-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }

  .how-it-works-section {
    padding: 3rem 1rem;
  }

  .how-it-works-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .steps-container {
    flex-direction: column;
    gap: 2rem;
  }

  .steps-list {
    max-width: 100%;
    gap: 2rem;
  }

  .step-item {
    gap: 1.5rem;
  }

  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }

  .step-line {
    height: 100px;
  }

  .step-description {
    font-size: 1.1rem;
  }

  .step-visual {
    order: -1;
    margin-bottom: 2rem;
  }

  .visual-placeholder {
    padding: 2rem;
  }

  .visual-icon {
    font-size: 3rem;
  }

  .visual-text {
    font-size: 1.2rem;
  }

  .partnerships-section {
    padding: 3rem 1rem;
  }

  .partnerships-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .partnerships-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .partner-card {
    padding: 2rem;
  }

  .partner-logo-img {
    max-height: 60px;
    max-width: 150px;
  }

  .placeholder-logo {
    width: 60px;
    height: 60px;
  }

  .placeholder-icon {
    font-size: 1.5rem;
  }

  .partner-name {
    font-size: 1.3rem;
  }

  .partner-description {
    font-size: 0.95rem;
  }
}

  .team-card {
    max-width: 100%;
    height: auto;
    min-height: 350px;
  }

  .team-avatar {
    width: 200px;
    height: 200px;
  }

  .team-bio-expanded {
    position: static;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    padding: 1rem 0;
    border-top: none;
    max-height: none;
    overflow-y: visible;
  }

  .team-card:hover .team-bio-expanded {
    transform: none;
  }

  .team-name {
    font-size: 1.5rem;
  }

  .team-links {
    justify-content: center;
  }

/* === Join Section Mobile === */
@media (max-width: 768px) {
  .join-section {
    padding: 2rem 1rem;
  }

  .join-title {
    font-size: 2rem;
  }

  .join-sub {
    font-size: 1rem;
  }

  .join-form-container {
    width: 100%;
    padding: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }
}

/* === Extra Small Devices === */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-sub {
    font-size: 1.2rem;
  }

  .aam-title {
    font-size: 1.75rem;
  }

  .aam-item {
    font-size: 1.5rem;
  }

  .team-avatar {
    width: 150px;
    height: 150px;
  }

  .join-button {
    width: 100%;
  }
}

/* === Navigation Styles === */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 100;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #000;
  position: absolute;
  transition: all 0.3s ease;
}

.nav-toggle span:first-child {
  top: 0;
}

.nav-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span:last-child {
  bottom: 0;
}

.nav-toggle.active span:first-child {
  transform: translateY(11px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:last-child {
  transform: translateY(-11px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-container {
    padding: 1rem;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .nav-links .nav-cta {
    width: 100%;
    margin: 0.5rem 0;
  }

  #main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* === Mobile Touch Optimization === */
@media (hover: none) {
  .focus-layer,
  .team-card,
  .nav-links a,
  .bio-link {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .focus-layer:active,
  .team-card:active,
  .nav-links a:active,
  .bio-link:active {
    transform: scale(0.98);
  }
}

/* === Focus Section Mobile === */
@media (max-width: 768px) {
  #focus.focus-wrap {
    padding: 4rem 1rem;
    min-height: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .glass-panel {
    padding: 1.5rem;
    margin: 1rem;
    width: calc(100% - 2rem);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    touch-action: manipulation;
  }

  .focus-layer {
    position: relative;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    width: 100%;
    min-width: auto;
    font-size: 2rem;
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .focus-reveal {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none !important;
    width: 100%;
    margin: 1rem 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    touch-action: manipulation;
  }
}

/* =================================================================== */
/* H. ROBUST MOBILE & TABLET OPTIMIZATIONS
/* =================================================================== */
/* These rules override the desktop styles for screens 768px or less
   to create a clean, well-spaced, and functional mobile experience. */
@media (max-width: 768px) {

  /* --- General Spacing & Typography --- */
  section {
    padding: 3rem 1.5rem; /* Reduces side padding on mobile */
  }
  .scroll-section + .scroll-section {
    margin-top: 2rem; /* Reduces space between sections */
  }

  /* --- Hero Section --- */
  .hero-title-topleft {
    padding: 0 1.5rem; /* Adjust padding for mobile */
    width: calc(100% - 3rem);
    top: 25%; /* Lower the text a bit on the screen */
  }
  .hero-title {
    font-size: 3rem; /* Make title smaller for phones */
    line-height: 1.1;
  }
  .hero-sub {
    font-size: 1.25rem; /* Adjust subtitle size */
  }

  /* --- AAM & About Sections --- */
  .aam-split {
    flex-direction: column; /* Stack the columns vertically */
    gap: 3rem;
  }
  .aam-title {
    white-space: normal; /* Allow title to wrap */
  }
  .aam-stacked-right {
    margin-top: 1rem;
    padding-right: 0;
    align-items: center;
    text-align: center;
  }
  .aam-item {
    font-size: 1.8rem;
  }
  .aam-details {
    text-align: center;
  }

  /* --- Focus Section --- */
  .focus-parallax {
    gap: 1.5rem; /* Reduce gap between focus blocks */
    padding: 0;
  }
  .focus-layer {
    position: relative; /* Make layers static instead of absolute */
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    font-size: 1.5rem;
    padding: 1.5rem;
  }
  .focus-layer:hover {
    transform: none;
  }
  .focus-reveal {
    position: relative; /* Ensure reveal text is part of the flow */
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 0.5rem;
  }
  .focus-layer.active .focus-reveal {
    margin-top: 1rem;
  }

  /* --- Team & Join Section Spacing --- */
  #team, #join {
    padding-top: 4rem;
    margin-top: 2rem;
  }
  .team-title {
    margin-bottom: 2rem; /* Further reduce space for mobile */
  }
  .team-container {
    padding: 0;
  }

  /* --- Contact / Footer Section --- */
  .contact-grid {
    grid-template-columns: 1fr; /* Force a single column layout */
    gap: 2rem;
    text-align: center; /* Center-align all text content */
  }
  .contact-block {
    text-align: center; /* Ensure each block's content is centered */
  }
  .contact-form {
    align-items: center; /* Center the form button */
  }
  .contact-form label {
    width: 100%; /* Ensure labels take full width */
  }
}

/* === EXECUTIVES SECTION === */
.executives-section {
  padding: 6rem 2rem;
  background: transparent;
  color: #000;
  text-align: center;
}

.executives-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.executives-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a202c;
}

.executives-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #444;
  font-weight: 400;
}

.executives-description {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  color: #666;
  font-weight: 400;
}

.executives-positions {
  margin-bottom: 3rem;
}

.executives-positions h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: #1a202c;
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.position-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.position-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #0066cc;
}

.position-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #1a202c;
  font-weight: 600;
}

.position-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
}

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

.executive-apply-button {
  display: inline-block;
  background: #0066cc;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}


.executive-apply-button:hover {
  background: #0052a3;
  transform: scale(1.05);
}


.executives-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-style: italic;
  color: #666;
  font-weight: 400;
}

/* Navigation styles for executive link */
.nav-links .nav-executive {
  background: #0066cc;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links .nav-executive:hover {
  background: #0052a3;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.nav-links .nav-executive::after {
  display: none;
}

/* Mobile responsiveness for executives section */
@media (max-width: 768px) {
  .executives-section {
    padding: 4rem 1rem;
  }
  
  .executives-title {
    font-size: 2.5rem;
  }
  
  .executives-subtitle {
    font-size: 1.2rem;
  }
  
  .positions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .position-card {
    padding: 1.25rem;
  }
  
  .executive-apply-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .nav-links .nav-executive {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}
