html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-image: url('new background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  font-family: "Baloo 2", sans-serif;
  color: white;
  
  /* Flexbox magic to glue footer to bottom */
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
  min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
}

/* --- Header --- */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex-shrink: 0; /* Prevents header from squishing */
}

header img {
  width: 400px;
  max-width: 80%; /* Ensures it doesn't overflow on small screens */
  height: auto;
}

/* --- Navigation --- */
nav {
  text-align: center;
  padding: 15px 0;
  flex-shrink: 0;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  margin: 0;
}

nav ul li {
  margin: 0 20px;
}

nav a {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #5cc8ff;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #5cc8ff;
}

nav a:hover::after {
  width: 100%;
}

.content-area {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.about-wrapper {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* --- REVERSE PYRAMID (Text Only) --- */
.genesis-pyramid {
  text-align: center;
}

.section-title {
  font-family: "Bubblegum Sans", cursive;
  font-size: 3rem;
  color: #5cc8ff;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 30px;
}

.pyramid-container {
  width: 100%;
  overflow: hidden;
}

.left-slope {
  float: left;
  width: 25%;
  height: 300px; /* Match height to text length */
  shape-outside: polygon(0% 0%, 100% 0%, 0% 100%);
}

.right-slope {
  float: right;
  width: 25%;
  height: 300px;
  shape-outside: polygon(100% 0%, 0% 0%, 100% 100%);
}

.pyramid-container p {
  font-size: 1.4rem;
  line-height: 1.8;
  text-align: justify;
  text-align-last: center;
  margin: 0;
  text-shadow: 0 4px 10px rgba(0,0,0,0.9);
}

/* --- MEMBER VAULT --- */
/* 2. THE CARD - The 'Thin Slice' Shape */

.member-vault {
    text-align: center; /* Centers "THE LINEUP" text and bolts */
    margin-top: 50px;
}

.vault-header {
    font-size: 2rem;
    color: #5cc8ff;
    margin-bottom: 30px;
    letter-spacing: 3px;
}

.member-grid {
    display: flex;             /* Activates side-by-side mode */
    flex-direction: row;       /* Forces them into a horizontal line */
    justify-content: center;   /* Centers the group on the screen */
    gap: 10px;                 /* Space between the slices */
    width: 95%;
    max-width: 1000px;         /* Prevents them from getting too wide */
    margin: 40px auto;         /* Centers the container on the page */
}

/* Update your existing .member-item to play nice with the grid */
.member-item {
    position: relative;
    flex: 1; 
    max-width: 250px;       /* ADD THIS: Prevents them from getting too wide */
    aspect-ratio: 1 / 3;    
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
}

/* 3. YOUR NAMED CARDS */
.jeff    { background-image: url('jeff.jpg'); }
.ross    { background-image: url('ross.jpg'); }
.stephen { background-image: url('stephen.jpg'); }
.gordon  { background-image: url('gordon.jpg'); }

/* 4. HOVER EFFECT (Subtle Grow) */
.member-item:hover {
    transform: scale(1.03);
    z-index: 10; /* Brings the hovered one to the front */
    border-color: #ffcc00;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* --- Names/Roles Overlay --- */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 5%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-item:hover .overlay {
    opacity: 1;
}

.name { color: white; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; }
.role { color: #ffcc00; font-size: 0.9rem; letter-spacing: 1px; }



/* --- Footer --- */
footer {
  flex-shrink: 0; /* Ensures footer maintains its size */
  width: 100%;
  padding: 40px 0;
  text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.social-links a {
  color: white;
  font-size: 35px;
  margin: 0 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  transform: translateY(-5px);
}

.social-links a:hover .fa-facebook { color: #1877F2; }
.social-links a:hover .fa-instagram { color: #E4405F; }
.social-links a:hover .fa-spotify { color: #1DB954; }
.social-links a:hover .fa-youtube { color: #E4405F; }


