@font-face {
    font-family: "Inter";
    src: 
        url('public/fonts/Inter-VariableFont_opsz,wght.ttf') format("truetype"),
        url('public/fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format("truetype");
}

@font-face {
    font-family: "Soytus";
    src:
        url('public/fonts/Soytus-Demo.ttf') format("truetype");
}

@font-face {
    font-family: "ZT Formom";
    src:
        url('public/fonts/ZT Formom.ttf') format("truetype"),
        url('public/fonts/ZT Formom Italic.ttf') format("truetype");
}

:root {
  --vh: 1vh;
  --svh: 1svh;
}


html,
body {
    background-color: #000000;
    font-family: Helvetica, Arial, sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

section {
  position: relative;          
}

#bi-list {
    position: absolute;
    left: 2vw;
    top: 2vw;
}

.navbar-btns {
    border: solid 2px #B7B7B7;
    padding: 10px 15px;
    background-color: black;
    color: #B7B7B7;
    font-size: 1.15rem;
    border-radius: 5px;
}

.navbar-btns:hover {
    color: white;
    cursor: not-allowed;
}

#bi-list:hover {
    transform: scale(1.15);
    cursor: pointer;
}

/* SECTION: LANDING PAGE */

.main-app {
    display: flex;
    flex-direction: column;
}

#front-page-logo {
    height: 500px;
    width: 500px;
}

#sase-navbar-cntr {
    position: fixed;
    margin-left: .25em;
    margin-right: .25em;
    top: 2vh;
    display: none;
    background-color: rgba(0,0,0,0.75);
    border: transparent;
    justify-content: center;
    align-items: center;
    padding: 15px 75px;
}

#sase-navbar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#home-btn:hover {
    transform: scale(1.1);
    cursor: pointer;
}

#home-btn:active {
    transform: scale(0.95);
}

#landing-page {
    height: 110vh;  
}

#landing-vid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        
  z-index: 0;              
}

#landing-page-inner {
  position: relative;       
  z-index: 1;              
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;  
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0); 
  opacity: 0;
  transition: background-color 2.5s, opacity 2.5s;
}

#landing-page-inner.revealed {
  background-color: rgba(0,0,0,0.75);
  opacity: 1;
}

#landing-sec {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

#landing-img {
    pointer-events: none;
    user-select: none;
}

#landing-desc {
    color: #B7B7B7;
    text-align: center;
    padding: 10px;
    font-size: 22px;
}

.hidden-element {
    position: relative;
    background-color: rgba(0,0,0,0);
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 2.5s ease-out, opacity 2.5s ease-in; /* Adjust duration and easing */
}

.revealed {
    background-color: rgba(0,0,0,0.5);
    height: auto; 
    opacity: 1;
}

#scroll-down-container {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100; 
}

#scroll-down-arrow {
  display: block;
  width: 30px;
  height: 30px;
  border-bottom: 3px solid white;
  border-right: 3px solid white;
  transform: rotate(45deg);
  animation: arrow-bounce 1s infinite;
}

@keyframes arrow-bounce {
  0% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(10px) rotate(45deg);
  }
  100% {
    transform: translateY(0) rotate(45deg);
  }
}

.fade-target {
    opacity: 1;
    transition: opacity 1s ease-out;
}

.fade-out {
    opacity: 0;
}

.landing-btns {
    display: inline-block;
    width: 250px;
    color: white;
    padding: 25px;
    text-decoration: none;
    border-radius: 5px;
}

.landing-btns:active {
    transform: translateY(4px);
}

.mtb {
    background-color: #E0AD1D;
    box-shadow: 0 9px #000000;
}

.mtb:hover {
    background-color: #987513;
}

.mtb:active {
    box-shadow: 0 5px #000000;
}

.las {
    background-color: #000000;
    box-shadow: 0 9px #E0AD1D;
}

.las:hover {
    background-color: #565656;
}

.las:active {
    box-shadow: 0 5px #E0AD1D;
}

#mtb-text,
#las-text {
    margin-top: 0;
}

#intro-btns{
    display: flex; 
    justify-content: center; 
    align-items: center; 
    column-gap: 100px;
}

#mtb-container,
#las-container {
    display: flex; 
    width: 300px; 
    justify-content: center; 
    flex-direction: column; 
    align-items: center;   
}


/* SECTION: SASE INFO */

#sase-info {
    background-color: #E0AD1D;
    min-height: 225vh;
    color: #5D480F;
    overflow: hidden;
}

#sase-info-header {
    margin: 5vh;
    font-size: 90px;
    font-weight: bold;
    text-align: center;
    font-family: "Soytus";
    letter-spacing: 5px;
}

#ul-stroke {
    position: absolute;
    left: 5vw;
    top: 15vh;
}

#ul-stroke-path {
    stroke-dasharray: 905;
    stroke-dashoffset: 905;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

#welcome-cntr {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    column-gap: 150px;
}

.polaroid-group {
  margin-top: 30px;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;        /* keeps it sized to contents */
  transform: scale(var(--scale, 1));
}

.polaroid {
  border: 10px solid #fff;
  background: #fff;
  object-fit: cover;
}

.polaroid.main {
  width: 28rem;
  height: 22rem;
  border-bottom-width: 30px;
  box-shadow: -8px 10px 10px 2px #a67f14;
}

.polaroid.small {
  position: absolute;
  width: 10rem;
  height: 13rem;
  border-bottom-width: 45px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.35);
}

.small--bl {
  bottom: -4rem;    
  left: -6rem;
  transform: rotate(-8deg);
  object-position: 75% 50%;  
}

.small--tr {
  top: -4rem;
  right: -6rem;
  transform: rotate(6deg);
}

#welcome-txt {
    margin-top: 20px;
    width: 500px;
    text-align: center;
}

#three-pillars-title {
  font-size: 5em; 
  font-family: 'Soytus'; 
  letter-spacing: 3px; 
  margin-top: 50px; 
  margin-bottom: 10px; 
  width: 90%; 
  text-align: center;
}

.trapezoid {
    width: 275px;
    border-bottom: 100px solid #634a0d;
	border-left: 50px solid transparent;
	border-right: 50px solid transparent;
}

.spacer {
    width: 275px;
    border-bottom: 50px solid #928972;
    border-radius: 15px;
}

.flipped {
	transform: scale(1, -1);
}

#pillar-cntr {
  display: flex;
  flex-direction: row;
  gap: 50px;
  justify-content: center;
  flex-wrap: wrap;            
}

.pillar-imgs {
    height: 300px;
    width: 275px;
    object-fit: cover;
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-grid {
    display: grid;
    justify-content: center;
}

/* column wrapper for each pillar */
.pillar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes color-change {
  0% { color: #030200; }
  50% { color:#342706; }
  100% { color: #775b0f; }
}

/* small header */
.pillar-title {
  margin: 0 0 8px;
  font-family: 'ZT Formom';
  font-style: italic;
  font-size: 4em;
  text-align: center;
  animation: color-change 1s infinite alternate;
}

/* small footer/description */
.pillar-desc {
  max-width: 325px;          /* matches trapezoid/spacer width */
  margin: 8px 0 0;
  text-align: center;
  font-size: 1.25em;
  line-height: 1.35;
}


#welcome-sub-txt {
  font-size: 20px; 
  word-spacing: 4px;
}


/* SECTION: INTERESTED PG. 1 */

#check-out-alumni {
  min-height: 75svh;            /* safe viewport height on mobile */
  padding-block: 2rem;           /* breathing room so it never hugs the footer */
}

#coa-title {
  font-size: 50px; 
  font-family: 'ZT Formom'; 
  text-align: center; 
  margin-bottom: 0;
}

#coa-subtitle {
  font-size: 1.25em; 
  font-family: Helvetica; 
  font-style: italic; 
  color: #B7B7B7; 
  text-align: center;
  margin-top: 5px;
}

#carousel {
    width: 100%;
    overflow-x: auto;
    overflow-y: none;
    margin: 2em auto;
    display: flex;
    gap: 1em;
    justify-content: center;
}

.card {
    flex: 0 0 15em;
    height: 12em;
    background-color: #B7B7B7;
    color: black;
    width: 336px;
    height: 288px;
    border: solid 2px #B7B7B7;
    text-align: center;
    align-content: center;
    position: relative;
}

#card-wrap-first,
#card-wrap-second,
#card-wrap-third {
    width: 336px;
    height: 288px;
}

.card-base {
  object-fit: cover;
  width: 336px;
  height: 288px;
}

#gabriel-desc,
#kristianna-desc,
#terence-desc {
  position: absolute;
  display: flex;
  flex-direction: column;
  font-family: Helvetica;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 336px;
  height: 288px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  visibility: hidden;
  opacity: 0;

  /* transition effect. not necessary */
  transition: opacity .2s, visibility .2s;
}

#card-wrap-first:hover #gabriel-desc,
#card-wrap-second:hover #kristianna-desc,
#card-wrap-third:hover #terence-desc {
    visibility: visible;
    opacity: 1;
}

.linkedins:hover {
    transform: scale(1.15);
    cursor: pointer;
}


/* NEW PAGE: STUDENT BODY OF DIRECTORS */

#sbod {
  background-color: #E0AD1D;
  padding: 40px 16px;   /* breathing room */
  min-height: 100vh;    /* optional */
  overflow: hidden;
}


/* Center this whole badge in the viewport (optional) */
#sbod-title {
  /* If you want it truly in the middle of the screen: */
  min-height: 60vh;                 /* optional */
  display: grid;                    /* grid lets us stack items perfectly */
  place-items: center;              /* center both axes */
  position: relative;               /* anchor for stacked children */
}

/* Stack the image and the ring in the same grid cell */
#sbod-title img,
#rotatingText {
  grid-area: 1 / 1;                 /* same cell */
}

/* Keep the image fixed (no animation) */
#sbod-title img {
  width: 350px;
  height: 350px;
  object-fit: contain;
}

section.sbod-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

/* Spin the text ring around the image center */
#rotatingText {
  margin-top: 25px;
  margin-right: 8px;
  width: 500px;                     /* slightly larger than the image */
  height: 500px;
  transform-origin: 50% 50%;        /* rotate around its own center */
  animation: rotate-circle 10s linear infinite;
  pointer-events: none;             /* clicks pass through */
  user-select: none;
}

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

#sbod-bq {
    color: #5D480F;
    font-size: 2rem;
    font-style: italic;
    margin: 0.25em 0;
    padding: 0.35em 25px;
    width: 700px;
    position: relative;
}

#sbod-bq:before {
    display: block;
    padding-left: 10px;
    content: "\201C";
    font-size: 80px;
    position: absolute;
    left: -20px;
    top: -20px;
    color: #362908;
}

#sbod-bq cite {
    color: #362908;
    font-size: 18px;
    display: block;
    margin-top: 5px;
}

#sbod-bq cite:before {
    content: "\2014 \2009";
}

#exec-title {
  font-family: 'ZT Formom'; 
  font-size: 6rem; 
  color: #5D480F; 
  text-align: center; 
  margin-top: 20px; 
  margin-bottom: 0;
}

#leadership-title {
  font-family: 'ZT Formom'; 
  font-size: 6rem; 
  color: #5D480F; 
  text-align: center; 
  margin-top: 0; 
  margin-bottom: 20px;
}

#exec-cntr,
#leadership-cntr {
  display: grid;
  justify-items: center;     /* center each card */
  align-items: start;
}

.board-polaroid {
  width: 100%;
  background-color: #dfdfdf;
  display: grid;           /* easy centering of inner image */
  place-items: center;
  border: 0;               /* your shadow lives on .exec if you want */
  transition: transform .2s ease-in-out;
}

.board-name {
  min-height: 2.5rem;         /* always reserve space so rows don’t shift */
  margin-top: 30px;
  margin-bottom: 0;
  text-align: center;
  color: #362908;
  font-family: 'ZT Formom';
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#exec-cntr .board-polaroid {
  aspect-ratio: 275 / 375;   /* consistent shape */
  box-shadow: -17px 11px 15px 3px rgba(154,114,21,0.75);
}

#leadership-cntr .board-polaroid {
  aspect-ratio: 235 / 335;
  box-shadow: -17px 11px 15px 3px rgba(154,114,21,0.25);          /* or your preferred shadow */
}

.wrapper {
  width: 100%;
  max-width: 275px;        /* exec max; leadership will be narrower via container */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wrapper:hover .board-name {
  opacity: 1;
}

.wrapper:hover .board-polaroid {
  transform: scale(1.05);
  cursor: pointer;
}

#exec-cntr {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(275px, 275px));
  justify-content: center;   /* centers the grid (and the last row) */
  justify-items: center;     /* optional: center content inside each cell */
}

#leadership-cntr {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(235px, 235px));
  justify-content: center;
  justify-items: center;
}

.exec-inner,
.leadership-inner {
  width: 82%;                /* white border like a polaroid */
  height: 72%;
  object-fit: cover;
  margin-top: -15%;
}

/* SECTION: FOOTER */

footer,
#maj-yellow {
    height: 200px;
    background: #000000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(51, 50, 50, 1) 100%);
    color: #B7B7B7;
}

#maj-yellow {
    background: #E0AD1D;
    color: #271e06;
    background: linear-gradient(180deg, rgba(224, 173, 29, 1) 0%, rgba(93, 72, 15, 1) 100%);
}


#link-footer {
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.dot {
  height: 75px;
  width: 75px;
  background-color: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.dot:hover {
    background-color: #b7b7b77d;
    cursor: pointer;
}

.discord,
.youtube,
.instagram,
.linktree,
.github {
  width: 48px;
  height: 48px;
}

@media only screen and (max-width: 1024px) {
  #exec-cntr {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  #leadership-cntr {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media only screen and (max-width: 820px) {
  #welcome-cntr { flex-direction: column; }
  
  #sase-info {
    min-height: 460vh;
  }

  #front-page-logo {
    height: 350px;
    width: 350px;
  }

  #pillar-cntr { 
    flex-direction: column;
    }

  #carousel {
    align-items: center;
    flex-direction: column;
  }
}

@media only screen and (max-width: 640px) {

  #exec-cntr,
  #leadership-cntr {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .wrapper { max-width: 90vw; }

  #sase-info {
    min-height: 460vh;
  }
}

@media only screen and (max-width: 450px) {

  #landing-page {
    height: 150vh;
  }

  #sase-info {
    min-height: 460vh;
  }

  #sase-navbar-inner {
    flex-direction: column;
  }

  #sase-info-header {
    font-size: 50px;
  }

  #ul-stroke {
    opacity: 0;
  }

  #intro-btns {
    flex-direction: column;
  }

  #las-container {
    margin-top: 25px;
  }

  #mtb-text {
    margin-top: 75px;
  }

  .polaroid-group {
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .polaroid.main {
    width: 15rem;
    height: 12rem;
  }

  .polaroid.small {
    width: 6rem;
    height: 7.5rem;
  }

  .small--bl {
    bottom: -5rem;
    left: -3rem;
  }
  
  .small--tr {
    top: -5rem;
    right: -3rem;
  }

  #welcome-txt {
    width: 300px;
  }

  #welcome-sub-txt {
    font-size: 22px;
  }

  #three-pillars-title {
    font-size: 4em;
    margin-top: 25px;
  }

  .card, 
  #card-wrap-first,
  #card-wrap-second,
  #card-wrap-third,
  .card-base,
  #gabriel-desc,
  #kristianna-desc,
  #terence-desc {
    width: 300px;
    height: 250px;
  }

  #coa-title {
    font-size: 45px;
  }

  #coa-subtitle {
    margin-top: 10px;
    font-size: 1em;
  }

  #sbod-title img {
    width: 250px;
    height: 250px;
  }

  #rotatingText {
    margin-right: 5px;
    width: 350px;
    height: 350px;
  }

  #exec-title,
  #leadership-title {
    font-size: 3.5rem;
  }

  .discord,
  .youtube,
  .instagram,
  .linktree,
  .github {
    width: 36px;
    height: 36px;
  }

  .dot {
    height: 55px;
    width: 55px;
  }
}