/* ====================== GLOBAL LAYOUT ====================== */

/* Ensure the footer sticks to the bottom of the page */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, sans-serif;
}

/* ====================== HEADER ====================== */

header {
  position: relative;
  background-image: url('Images/Screenshot.png');  /* fixed path */
  background-size: cover;
  background-position: 50% 35%;
  color: white;
  text-align: center;
  padding: 8em;
  min-height: 150px;
}

.text-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
}

/* Fade animation for headings */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Title and slogan box styling */
.title-bg {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.3em 2em;
  display: block;
  border-radius: 8px;
  text-shadow: 1px 1px 3px black;
  font-weight: bold;
  font-size: 2em;
  margin: 0.5em auto 0.25em auto;
  max-width: 90%;
  width: fit-content;
  line-height: 1.3;
  animation: fadeSlideUp 1s ease forwards;
}

.slogan-bg {
  background-color: rgba(0, 77, 64, 0.8);
  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;
}



header .logo {
  position: absolute;
  top: 50%;
  left: 1em;
  transform: translateY(-50%);
  height: 120px;
  width: auto;
  border-radius: 15px;
}

/* ====================== NAVIGATION ====================== */

nav {
  background-image: url('Images/chainlink2.png');
  background-size: 150% auto;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2em 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  text-align: center;
}

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);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 1px 1px 3px black;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  white-space: nowrap;
}

nav a:hover {
  color: white;
  background: #06402B;
  border-color: white;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

/* ====================== PAGE CONTENT ====================== */

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;
}

ul li a {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.95em;
}

ul li a:hover {
  text-decoration: underline;
}

.container {
  flex: 1;
  background: white;
  max-width: 800px;
  margin: auto;
  padding: 1em;
}

/* ====================== HERO SECTION ====================== */


.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; /* remove shadow if you don’t want glow */
}

.menu-toggle:focus {
  outline: none;
}

.menu-toggle:hover {
  background-color: #00695c;
}




/* ====================== FOOTER ====================== */

footer {
  background-color: #004d40;
  color: white;
  text-align: center;
  padding: 1em 0;
  font-size: 0.9em;
  flex-shrink: 0;
}

/* Global box-sizing for layout stability */
* {
  box-sizing: border-box;
}

/* ====================== GALLERY GRID ====================== */

/* Gallery layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1em;
  padding: 1em 0;
}

/* ✅ PC/Desktop Image Style */
.gallery-grid img {
  width: 100%;
  height: 500px;          /* Consistent height for desktop */
  object-fit: cover;      /* Crops image to fit without distortion */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

/* Hover effect */
.gallery-grid img:hover {
  transform: scale(1.03);
}

h4 {
  margin-top: 2em;
  font-size: 1.4em;
  color: #004d40;
  border-bottom: 2px solid #004d40;
  padding-bottom: 0.3em;
}

/* ====================== MOBILE STYLES ====================== */
@media (max-width: 600px) {
  /* ✅ Mobile Gallery Image Height */
  .gallery-grid img {
    height: 400px;  /* Smaller height for mobile */
    object-fit: cover;
  }

  .title-bg {
    font-size: 1.4em;
    padding: 0.3em 0.6em;
    margin: -2.1em auto 2em auto;
    position: relative;
    top: -1px;
  }

  .slogan-bg {
    font-size: 0.9em;
    padding: 0.3em 0.8em;
    margin: 1em auto -1em auto;
  }

  .slogan-group {
    margin-top: 10em;
  }



  header {
    background-image: url('Images/Screenshot.png');
    background-size: cover;
    background-position: center top;
    height: 200px;
    padding: 0;
  }

  header .logo {
    position: static;
    height: 70px;
    margin: 3.3em auto 2em auto;
    display: block;
    transform: none;
  }

  nav {
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5em;
  }

  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;
  }


  .container {
    max-width: 100%;
    width: 100%;
    padding: 0 1em;
    margin: 0 auto;
    overflow-x: hidden;
  }
}

/* ====================== JS MENU TOGGLE SUPPORT ====================== */
/* Hides menu when .hidden is applied */
.hidden {
  display: none !important;
}


