/* 
Team Member: Aero
Date: February 9, 2026
File Name: futuretech.css
Purpose: Stylesheet for Future Technologies Showcase
*/

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Poppins:wght@400;600&display=swap');

/* ---------- GLOBAL RESET & BASE ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background-color: #f5f7fa;
  color: #1a1a1a;
  line-height: 1.6;
}

/* ---------- HEADER ---------- */
header {
  background-color: #0b3c5d;
  color: #ffffff;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 0 0 10px 10px; /* Rounded corner requirement */
}
header img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;      /* keeps it from being too tall */
  object-fit: cover;      /* crops nicely like a real banner */
  margin-top: 1rem;
  border-radius: 8px;
}
header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

header h2 {
  font-size: 1.1rem;
  font-weight: normal;
}

/* ---------- NAVIGATION ---------- */
nav {
  background-color: #1f5673;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

nav li {
  margin: 0;
}

/* STRUCTURAL PSEUDO-CLASS (assignment requirement) */
nav li:first-child a {
  border-left: none;
}

nav a {
  display: block;
  padding: 0.9rem 1.2rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

/* DYNAMIC PSEUDO-CLASS */
nav a:hover {
  background-color: #163d52;
}

/* Another dynamic pseudo-class for accessibility */
nav a:focus {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}

/* ---------- MAIN CONTENT ---------- */
main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

#home-content {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px; /* Rounded corner requirement */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Headings inside main */
main h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* Paragraph spacing */
main p {
  margin-bottom: 1rem;
}

/* STRUCTURAL PSEUDO-CLASS EXAMPLE */
main p:last-child {
  margin-bottom: 0;
}

/* Images */
main img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto 0 auto;
  border-radius: 8px; /* Rounded corners */
}

/* ---------- FOOTER ---------- */
footer {
  background-color: #0b3c5d;
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* ================================================== */
/* =============== MOBILE STYLES BEGIN ============== */
/* ================================================== */

@media (max-width: 768px) {

  /* Mobile navigation */
  nav ul {
    flex-direction: column;
    text-align: center;
  }

  nav a {
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  /* Header adjustments */
  header h1 {
    font-size: 1.8rem;
  }

  header h2 {
    font-size: 1rem;
  }

  /* Improve spacing for small screens */
  #home-content {
    padding: 1.2rem;
  }

  main {
    margin: 1rem auto;
  }
}
