/* ==================== GLOBAL SETTINGS ==================== */

/* Use border-box sizing for all elements for easier sizing calculations */
* {
  box-sizing: border-box;
}

/* Reset margin, padding, prevent horizontal scroll, and set full height for html and body */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
  font-family: Arial, sans-serif; /* Base font */
}

/* Use flex layout to make footer stick to bottom by pushing content */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Full viewport height */
}


/* ==================== HEADER ==================== */

/* Header container with background image, padding, min height, and center text */
header {
  position: relative; /* For absolute positioning inside */
  background-image: url('Images/Screenshot.png'); /* Background image path */
  background-size: cover; /* Cover entire area */
  background-position: 50% 35%; /* Center image with vertical offset */
  color: white;
  text-align: center;
  padding: 4em 0;   /* Reduce vertical padding */
  min-height: 210px; /* Increase minimum height */
}

/* Logo image inside header, absolutely positioned left center */
/* Glowing ring */
/* Logo image inside header, absolutely positioned left center */

header .logo {
  position: absolute;
  top: 50%;
  left: 1em;
  transform: translateY(-50%);
  height: 120px;
  width: auto;
  border-radius: 15px;
  animation: glowPulse 2s ease-in-out infinite;
}


@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px white;
  }
  50% {
    box-shadow: 0 0 20px 8px white;
  }
  100% {
    box-shadow: 0 0 5px white;
  }
}




/* Wrapper for text inside header, centered absolutely */
.text-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center horizontally and vertically */
  text-align: center;
  z-index: 2; /* Above other elements */
  display: flex;
  flex-direction: column;
  gap: 1em; /* Spacing between children */
  width: 100%;
}

/* ==================== ANIMATIONS ==================== */

/* Fade in and slide up effect for titles */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== TITLE AND SLOGAN STYLES ==================== */

/* Title background block with semi-transparent black, padding, and rounded corners */
.title-bg {
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  color: white;
  padding: 0.3em 2em;
  display: block;
  border-radius: 8px;
  text-shadow: 1px 1px 3px black; /* Text shadow for readability */
  font-weight: bold;
  font-size: 2em;
  margin: 0.5em auto 0.25em auto; /* Center horizontally with vertical spacing */
  max-width: 90%; /* Responsive max width */
  width: fit-content; /* Shrink to content */
  line-height: 1.3;
  animation: fadeSlideUp 1s ease forwards; /* Apply animation */
}

/* Slogan background similar style but smaller font and different background color */
.slogan-bg {
  background-color: rgba(0, 77, 64, 0.8); /* Dark teal */
  color: white;
  padding: 0.5em 1em;
  display: block;
  border-radius: 8px;
  text-shadow: 1px 1px 2px black;
  font-weight: bold;
  font-size: 1.1em;
  margin: 0.25em auto 1em auto;
  max-width: 90%;
  width: fit-content;
  line-height: 1.3;
}

/* Group wrapper for slogans with large top margin to push down on desktop */
.slogan-group {
  margin-top: 20em; /* Push slogan down on desktop */
}

/* ==================== NAVIGATION ==================== */

/* Navigation container with background image, padding, flex layout */
nav {
  background-image: url('Images/chainlink2.png'); /* Chainlink background */
  background-size: 150% auto; /* Zoom background */
  background-position: center;
  background-repeat: no-repeat;
  padding: 2em 0;
  display: flex;
  flex-wrap: wrap; /* Wrap links on smaller screens */
  justify-content: center; /* Center links horizontally */
  gap: 1em;
  text-align: center;
}

/* Navigation links styling */
nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  padding: 0.5em 1em;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 1px 1px 3px black;
  box-shadow: none;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  white-space: nowrap; /* Prevent link text wrap */
}

/* Hover effect for nav links */
nav a:hover {
  color: white;
  background: #06402B; /* Dark green background */
  border-color: white;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.6); /* Glow effect */
  cursor: pointer;
}

/* ==================== HERO SECTION ==================== */

/* Hero section with background image, full viewport height/width */
.brianteam-hero {
  position: relative;
  background-image: url('Images/brianteam.png');
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  height: 100vh; /* Full viewport height */
  width: 100vw; /* Full viewport width */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #004d40; /* Fallback background color */
}

/* ==================== MENU TOGGLE BUTTON ==================== */

/* Button for mobile menu toggle */
.menu-toggle {
  background-color: #004d40;
  color: white;
  font-size: 1.5em;
  padding: 0.2em 1.2em;
  border: none;
  border-radius: 6px;
  margin: 0;
  cursor: pointer;
  text-align: center;
  box-shadow: none;
}

.menu-toggle:focus {
  outline: none;
}

.menu-toggle:hover {
  background-color: #00695c; /* Slightly lighter green on hover */
}

/* ==================== DESKTOP SPECIFIC STYLES ==================== */

/* Move "MEET THE TEAM" text down on large screens */
@media screen and (min-width: 1024px) {
  .brianteam-hero .title-bg {
    position: relative;
    top: 200px; /* Move down by 200px */
  }
}

/* ==================== FOOTER ==================== */

footer {
  background-color: #004d40;
  color: white;
  text-align: center;
  padding: 1em 0;
  font-size: 0.9em;
  flex-shrink: 0; /* Prevent shrinking */
}

/* ==================== TYPOGRAPHY & LISTS ==================== */

h3 {
  color: #2c3e50;
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

ul {
  padding-left: 1.2em;
}

ul li {
  margin-bottom: 1.5em;
  line-height: 1.5;
}

ul li strong {
  font-size: 1.1em;
  color: #1a73e8; /* Bright blue */
}

ul li a {
  color: #0066cc; /* Link blue */
  text-decoration: none;
  font-size: 0.95em;
}

ul li a:hover {
  text-decoration: underline;
}

/* ==================== CONTAINER ==================== */

/* Main container for page content */
.container {
  flex: 1; /* Grow to fill vertical space */
  background: white;
  max-width: 800px;
  margin: auto;
  padding: 1em; /* Inner spacing */
}

/* ==================== MOBILE RESPONSIVENESS (≤600px) ==================== */

@media (max-width: 600px) {
  /* Title text smaller with adjusted padding and margins */
  .title-bg {
    font-size: 1.4em;
    padding: 0.3em 0.6em;
    margin: 5em auto 2em auto;
    position: relative;
    top: 0;
    left: 0;
  }

  /* Slogan smaller, moved up slightly */
  .slogan-bg {
    font-size: 0.9em;
    padding: 0.3em 0.8em;
    margin: 1em auto -1em auto;
    position: relative;
    top: -60px;
    left: 0;
  }

  /* Reduce top margin for slogan group */
  .slogan-group {
    margin-top: 10em;
  }

  /* Margin bottom for mobile only elements */
  .mb-mobile {
    margin-bottom: 1.5em;
  }

  /* Adjust header background and height */
  header {
    background-image: url('Images/Screenshot.png');
    background-size: cover;
    background-position: center top;
    height: 400px;
    padding: 0;
  }

  /* Adjust logo position and size */
  header .logo {
    position: relative; /* relative on mobile */
    height: 70px;
    margin: auto;
    display: block;
    transform: none;
    top: 3px;
    left: 0;
  }

  /* Stack nav links vertically with spacing */
  nav {
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5em;
  }

  /* Nav links fill container width, smaller font */
  nav a {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.4em 0.8em;
    min-height: 50px;
    font-size: 0.9em;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Black box styling (optional component) */
  .black-box {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 80%;
    max-width: 300px;
    min-height: 80px;
    padding: 0.8em 1em;
    margin: 0.5em auto;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Container full width and no overflow */
  .container {
    max-width: 100%;
    width: 100%;
    padding: 0 1em;
    margin: 0 auto;
    overflow-x: hidden;
  }
}

/* ==================== JAVASCRIPT MENU TOGGLE SUPPORT ==================== */

/* Hide elements with hidden class */
.hidden {
  display: none !important;
}
