/* Reset some default styles */
:root {
    --color-navy: #002147;
    --color-gold: #FFD700;
    --color-light-grey: #F5F5F5;
    --color-deep-blue: #1f2641;
    --color-white: #fff;
    --color-medium-grey: #222;
    --highlight-gold: #f4b400;
    --shadow-color: rgba(0, 33, 71, 0.4);
  
    --background-gradient: linear-gradient(290deg, var(--color-navy), var(--color-deep-blue), var(--color-gold));
    --color-accent: linear-gradient(to right, var(--color-navy), var(--color-gold));
  }
  * {
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

  }
  
  /* Global Styles */
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-gradient);
    color: var(--color-navy);
  }
  
header {
    background: var(--color-navy);
    color: var(--color-gold);
    padding: 20px;
    text-align: center;
    position: relative;
    font-size: 1.5em; /* Ensure consistent size */
}
  header h1 {
    font-size: 2.0em;
    margin-bottom: 10px;
  }
  header p {
    font-size: 1.1em;
  }
  
  /* Navigation Styles */
  nav {
    background: var(--color-navy);
    padding: 10px 0;
    text-align: center;
  }
  nav a {
    color: var(--color-white);
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
  }
  nav a:hover {
    color: var(--color-gold);
  }
  
  /* Main Content Styles */
  main {
    padding: 20px;
    background: var(--color-navy); /* Changed to navy blue */
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
    margin: 20px auto;
    max-width: 800px;
    position: relative;
    color: var(--color-gold); /* Changed text color to yellow */
}
main h2 {
  margin-bottom: 15px;
  color: var(--color-gold); /* Changed to yellow */
  font-size: 2.5em;
}
 


body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

.founders-section {
  display: flex;
  flex-direction: column; /* Stack heading above the cards */
  justify-content: center;
  align-items: center;
  position: relative;
  height: 400px;
  overflow: hidden;
}

.founders-section h2 {
  margin-bottom: grid;
  color: var(--color-gold); /* Gold heading */
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.0em; /* Match the global h2 size */
  position: absolute; /* Position the heading above the cards */
  top: 5px; /* Adjust the position to stay at the top */
  z-index: 2; /* Ensure it stays above the animation cards */
  background-color: var(--color-navy); /* Optional: Add background to avoid overlap */
  padding: 10px 20px; /* Optional: Add padding for better visibility */
  border-radius: 8px; /* Optional: Rounded corners for better design */
}

.founder {
  width: grid;
  height: 280px;
  margin: 0 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: absolute; /* Ensure the cards are positioned relative to the section */
  opacity: 0;
  transform: scale(0.8) translateY(50px);
  transition: opacity 0.6s ease, transform 20s ease;
  z-index: 1; /* Ensure the cards are below the heading */
}
.founder.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 1;
}

.founder img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 20px;
  border: 4px solid #ddd;
}

.profile {
  padding: 20px;
}

.profile h3 {
  margin: 10px 0 5px;
}

.profile p {
  font-size: 14px;
  color: #333;
}

section h2 {
    margin-bottom: 15px;
    color: var(--color-gold); /* Changed to yellow */
    font-size: 2.5em;
}

section p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.1em;
    color: var(--color-gold); /* Changed to yellow */
}
  
  /* Footer Styles */
  footer {
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    background-color: var(--color-navy);
  }
  
  footer p {
    margin: 0;
    color: var(--color-white);
  }
  
  .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-gold);
    color: rgb(44, 43, 43);
    text-decoration: none;
    font-size: 16px;
    border-radius: 6px;
    margin-top: 10px;
    transition: 1s;
    border: none;
  }
  
  .btn:hover {
    background-color: var(--highlight-gold);
    color: var(--color-white);
  }
  
  /* Responsive Styles */
  
  /* Background Slideshow */
  .background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    animation: slide 10s infinite;
  }
  
  @keyframes slide {
    0% { background-image: url('../img/slide1.png'); }
    25% { background-image: url('../img/slide2.jpg'); }
    50% { background-image: url('../img/slide4.webp'); }
    75% { background-image: url('../img/slide4.jpg'); }
    100% { background-image: url('../img/slide1.png'); }
  }
