body { padding-top: 56px; background-color: #1d4a7a;}
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #343a40 !important; }
.bg-hero { background-color: #45b06cff; }

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

/* footer */
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }

#cubeContainer {
    display: flex;
    flex-direction: column; /* Ensures content stacks vertically */
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    height: auto; /* Allows it to grow with content */
    overflow: hidden; /* Hide any overflow */
    background-color: #1d4a7a;
}

#cubeWrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Center horizontally */
    background-color: #1d4a7a;
}

#cubes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    width: 100%;
    padding: 20px 0; /* Adds padding without affecting layout */
    overflow: hidden; /* Ensures no separate scrollbar */
}

.cube {
    height: 200px;
    width: 100%; /* Make the cube take full width of the grid cell */
    background-size: cover;
    background-position: center;
    border: 5px solid #e5e5e5;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), 0 2px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}


.cube .name {
    position: absolute;
    bottom: 15px;
    left: 15px;
    text-shadow: 0 1px 3px #000;
    z-index: 3;
    transition: opacity .5s ease;
}

.cube .name h1 {
    font-size: 16px;
    color: #fff;
    margin: 0;
    user-select: none;
}

.cube .name p {
    color: #fff;
    margin: 0;
    font-size: 14px;
    user-select: none;
}



.cube .content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    flex-direction: column;
    opacity: 0;
    transition: 0.5s ease;
    z-index: 2;
    padding: 14px;
    text-align: center;
}

.cube .content .bio {
    color: white; /* White text for contrast */
    padding: 2px;
    text-align: center;
    font-size: 13px;
    z-index: 3; /* Ensure it stays above the darken layer */
    position: relative; /* Make sure it is placed correctly */
}

.cube:hover .content {
    opacity: 1;
}

.cube .innerBorder {
    width: 100%;
    height: 100%;
    position: absolute;
    border: 1px solid #fff;
    z-index: 1;
    opacity: 0;
    transition: 0.5s ease;
}

.cube:hover .innerBorder {
    width: 90%;
    height: 90%;
    opacity: 1;
}

.cube .darken {
    background: rgba(0, 0, 0, 0.7); /* Adjust opacity for better contrast */
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Start hidden */
    transition: 0.3s ease;
    z-index: 2; /* Below the bio text */
}

.cube:hover .darken {
    opacity: 1; /* Show on hover */
}

.cube:hover .name {
    opacity: 0;
}

/* Section background */
.page-title {
    background: #1d4a7a;
    color: #fae8e0;
    font-weight: 900;
    font-size: clamp(36px, 9vw, 140px); /* nicer across sizes */
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    display: flex;
    flex-direction: column;   /* <-- stack lines vertically */
    justify-content: center;
    align-items: center;
    gap: 0.15em;              /* space between the two lines */
    line-height: 1;           /* tight big type */
    min-height: 60vh;
    overflow: hidden;
  }
  
  /* Each line */
  .page-title .tilt {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;        /* <-- keep each word on a single line */
    animation: tilting 10s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  }
  
  /* Letters */
  .page-title span {
    transition: font-weight 0.4s ease-in;
    animation: floating-secondary 2.5s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    padding: 0 2px;
  }

  .page-title .space {
    display: inline-block;
    width: 0.3em; 
  }
  



.tilt {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: tilting 10s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

.page-title span {
  transition: font-weight 0.4s ease-in;
  animation: floating-secondary 2.5s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  padding: 0 2px;
}

/* Stagger */
.page-title span:nth-child(1) { animation-delay: 1s; }
.page-title span:nth-child(2) { animation-delay: 2s; }
.page-title span:nth-child(3) { animation-delay: 3s; }
.page-title span:nth-child(4) { animation-delay: 4s; }
.page-title span:nth-child(5) { animation-delay: 5s; }
.page-title span:nth-child(6) { animation-delay: 6s; }
.page-title span:nth-child(7) { animation-delay: 7s; }
.page-title span:nth-child(8) { animation-delay: 8s; }
.page-title span:nth-child(9) { animation-delay: 9s; }
.page-title span:nth-child(10) { animation-delay: 10s; }
.page-title span:nth-child(11) { animation-delay: 11s; }
.page-title span:nth-child(12) { animation-delay: 12s; }
.page-title span:nth-child(13) { animation-delay: 13s; }
.page-title span:nth-child(14) { animation-delay: 14s; }

.page-title span:hover {
  font-weight: 100;
}

/* Animations */
@keyframes floating {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(0, 3vh); }
  100% { transform: translate(0, 0); }
}

@keyframes floating-secondary {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(0, 1vh); }
  100% { transform: translate(0, 0); }
}

@keyframes tilting {
  0%   { transform: rotate(1deg); }
  50%  { transform: rotate(-1deg); }
  100% { transform: rotate(1deg); }
}

/* ---------- HEADINGS ---------- */
h1, h2, h3 {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-weight: 900;
  text-align: left;
  /* margin: 2rem 0 1rem 2rem;  */
}

h1 {
  font-size: 3rem;   /* big page title */
}

h2 {
  font-size: 2.25rem;  /* section titles */
}

h3 {
  font-size: 1.75rem;  /* sub-section titles */
}


/* ---------- PARAGRAPHS ---------- */
p {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;           
  max-width: 800px;         
  margin: 0 0 1rem 2rem;   
  text-align: left;
}


/* ---------- SPECIAL INTRO PARAGRAPH ---------- */
/* use <p class="intro"> when you want a big, wide opening blurb */
p.intro {
  max-width: none;      
  margin: 0 2rem 1rem;  
  font-size: 1.1rem;    
  line-height: 1.7;
}
