/* ---------- Global Styles ---------- */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f6f9;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 600;
  margin: 0 0 15px;
}

a {
  text-decoration: none;
  color: #0077cc62;
}
a:hover {
  text-decoration: underline;
}

/* ---------- Intro Section ---------- */
#intro {
  text-align: center;
  padding: 80px 20px;
  /* Replace the gradient with a background image */
  background: url("intropicture.png") no-repeat center center;
  background-size: cover;   /* makes image fill the section */
  color: white;             /* keep text visible */
  position: relative;       /* for overlay (optional) */
}

/* Optional: dark overlay so text is always readable */
#intro::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* adjust opacity */
  z-index: 0;
}

#intro h1,
#intro h2 {
  position: relative; /* keeps text above overlay */
  z-index: 1;
}

#intro h1 {
  font-size: 2.5em;
}
#intro h2 {
  font-size: 1.3em;
  font-weight: 400;
  margin-top: 10px;
}
.actions .button {
  display: inline-block;
  background: white;
  color: #003366;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 20px;
  transition: 0.3s;
}
.actions .button:hover {
  background: #0077cc;
  color: white;
}

/* ---------- Navigation ---------- */
#nav {
  background: #222;
  color: white;
  padding: 15px;
  text-align: center;
}
#nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
#nav ul li {
  margin: 5px 15px;
}
#nav ul li a {
  color: white;
  font-weight: bold;
}

/* ---------- Main Content ---------- */
#main {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}
.post {
  background: white;
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.post h2 {
  color: #003366;
  font-size: 1.6rem;
}

/* ---------- Project Images ---------- */
.post img {
  width: 100%;            /* default for mobile */
  max-width: 100%;
  height: 250px;          /* fixed for uniform mobile size */
  object-fit: cover;
  border-radius: 8px;
  margin: 15px auto;
  display: block;
}

/* Tablet & Desktop Images */
@media (min-width: 768px) {
  .post img {
    width: 100%;          /* narrower images */
    height: auto;        /* natural height */
    max-height: 500px;   /* prevent overly tall images */
  }
}

/* ---------- Buttons ---------- */
.actions.special .button.small {
  font-size: 0.9em;
  padding: 8px 15px;
  border-radius: 4px;
  background: rgba(0, 51, 255, 0.94);
  color: white;
  margin: 5px;
  display: inline-block;
  width: auto;
  text-align: center;
  cursor: pointer; /* makes the hand pointer show */
}

.actions.special .button.small:hover {
  background: rgba(0, 30, 153, 1); /* darker shade on hover */
}


/* ---------- Footer ---------- */
#footer {
  background: #111;
  color: #bbb;
  padding: 40px 20px;
  text-align: center;
}
#footer h3 {
  color: white;
}
#footer a {
  color: #0077cc;
}

/* ---------- Copyright ---------- */
#copyright {
  background: #000;
  color: #777;
  padding: 15px;
  text-align: center;
  font-size: 0.85em;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 900px) {
  #intro {
    padding: 60px 15px;
  }
  #intro h1 {
    font-size: 2em;
  }
  #intro h2 {
    font-size: 1.1em;
  }
  .post {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  #nav ul {
    flex-direction: column;
    align-items: center;
  }
  #nav ul li {
    margin: 10px 0;
  }
  #intro {
    padding: 50px 10px;
  }
  #intro h1 {
    font-size: 1.8em;
  }
  #intro h2 {
    font-size: 1em;
  }
  .post h2 {
    font-size: 1.3rem;
  }
  .post img {
    width: 100%;       /* full width on mobile */
    height: 250px;     /* fixed height */
  }
}
