/* ===============================
   BASE STYLES
=============================== */
body {
    margin: 0;
    padding: 0;
    font-family: Georgia;
    background-color: black;
    margin-top: 120px; /* adjust based on your header height */

  }
  
  html {
    scroll-behavior: smooth;
  }

  section {
    scroll-margin-top: 130px; /* adjust to match your fixed header height */
  } 
  
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: black;
    border: 3px solid goldenrod;
    border-radius: 1px;
    padding: 10px;
    margin: 0; /* Remove margin to avoid shifting */
    box-sizing: border-box; /* Ensures border/padding don't overflow */
    z-index: 1000; /* ensures it's above other content */
  }
  
/* Hamburger style */
.hamburger {
  display: none;
  font-size: 30px;
  color: goldenrod;
  cursor: pointer;
  padding: 10px;
}

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo img {
    width: 250px;
    height: auto;
    border-radius: 4px;
  
  }
  
  ul.nav {
    list-style: none;
    display: flex;
    justify-content: right;
    gap: 50px;
    padding: 0;
    margin: 0;
  }
  
  ul.nav li {
    display: inline-block;
  }
  
  ul.nav li a {
    text-decoration: none;
    font-size: 20px;
    padding: 10px;
    color: goldenrod;
    font-weight: bold;
  }
  
  ul.nav li a:hover {
    color: maroon;
    font-weight: bold;
    padding: 5px;
    border-radius: 4px;
    transition: 0.3s ease;
  }
  
  ul.nav li.active a {
    background-color: beige;
    color: maroon;
    font-weight: bold;
    padding: 5px;
    border-radius: 4px;
    transition: 0.3s ease;
  }


/* ===============================
   PROJECT DETAIL LAYOUT
=============================== */
.project-detail {
  padding: 10px 20px;
  max-width: 100%;
  margin: auto;
}

/* ===============================
   PROJECT HEADER - FLEX LAYOUT
=============================== */
.project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 30px auto;
  padding: 30px;
  /*background-color: #f8f1e0;*/
  background-color: #fffaf3;
  border: 5px solid goldenrod;
  border-radius: 12px;
  max-width: 1000px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.project-header-text {
  flex: 1 1 55%;
  text-align: center;
}

.project-header-text h1 {
  color: maroon;
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
}

.project-header-text p {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
}

.github-button-wrapper {
  margin-top: 20px;
  text-align: center;
  display: flex;         /* add flex layout */
  justify-content: center;
  gap: 12px;              /* space between buttons */
  flex-wrap: wrap;        /* wrap on smaller screens */
}

.github-button {
  background-color: goldenrod;
  color: white;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  min-width: 160px;       /* consistent button width */
  text-align: center;
  transition: background-color 0.3s ease;
}

.github-button .icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
  /*filter: brightness(0) invert(1); /* Makes icon white on goldenrod */
}

.github-button:hover {
  background-color: maroon;
  color: white;
}

.project-banner {
  flex: 1 1 40%;
  max-width: 500px;
  height: 250px;
  border-radius: 10px;
  border: 3px solid maroon;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* ===============================
   NAVIGATION SECTION BOX
=============================== */
.nav-section-box {
  background-color: #fffaf3;
  max-width: 1000px;
  padding: 20px;
  border-radius: 10px;
  margin: 0 auto 30px auto;
  border-left: 5px solid goldenrod;
  border-bottom: 5px solid goldenrod;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}

.project-button {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-button a {
  color: white;
  background-color: maroon;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.project-button a:hover {
  background-color: goldenrod;
  color: maroon;
}

/* ===============================
   PROJECT SECTION BOXES
=============================== */
.project-section-box {
  background-color: #fffaf3;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto 30px auto;
  border-left: 5px solid goldenrod;
  border-bottom: 5px solid goldenrod;
  border-radius: 8px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.project-section-box h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: maroon;
  font-size: 1.5rem;
}

.project-section-box ul {
  padding-left: 20px;
  margin-top: 10px;
}

.project-section-box ul li {
  margin-bottom: 6px;
}

/* ===============================
   GENERAL SECTION / BACK LINK
=============================== */
.project-section {
  margin-bottom: 40px;
  color: #444;
}

.project-section h2 {
  color: maroon;
  margin-bottom: 10px;
}

.back-link {
  text-align: center;
  margin-top: 40px;
}

.back-link a {
  color: goldenrod;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}



/* =====================================
   BACK TO TOP BUTTON
===================================== */
#backToTop {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 999;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: beige;
    color: goldenrod;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease;
  }
  
  #backToTop:hover {
    background-color: #555;
    color: white;
  }

  #backToTop ion-icon {
    font-size: 24px;
    vertical-align: middle;
  }
  
  
  /* =====================================
     FOOTER STYLES
  ===================================== */
  .footer {
    background: url('Images/background.jpg') no-repeat center center/cover;
    padding: 1rem 2rem;
    color: beige;
    margin-top: 1rem;
  }
  
  .footer-overlay {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
  }
  
  .footer-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
  }
  
  .footer-sections > div {
    flex: 1 1 200px;
  }
  
  .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
  }
  
  .footer-brand img {
    width: 40px;
    height: auto;
    border-radius: 4px;
  }
  
  .footer-brand h2 {
    margin: 0;
    color: maroon;
  }
  
  .footer-sections h3 {
    color: goldenrod;
    margin-bottom: 0.5rem;
  }
  
  .footer-sections ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-sections a {
    color: beige;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: 0.3s ease;
  }
  
  .footer-sections a:hover {
    color: maroon;
    font-weight: bold;
    border-radius: 4px;
  }
  
  .footer-intro p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
  }
  .footer-rights {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid goldenrod;
  }
  
  .footer-rights p {
    color: beige;
    font-size: 0.95rem;
    margin: 0;
  }
  
  .icons {
      margin-top: 1rem;
    }
    
    .icons a {
      text-decoration: none;
      display: inline-block;
      margin-right: 12px;
    }
    
    .icons ion-icon {
      color: white;
      font-size: 30px;
      transition: 0.3s ease;
    }
    
    .icons ion-icon:hover {
      color: goldenrod;
      transform: scale(1.1);
    }
  
  
  /* ===============================
    MEDIA QUERIES
 =============================== */
 
 /* Responsive for Tablets and Phones (480px to 1024px) */
 @media (max-width: 1024px) {
  header {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .hamburger {
    display: block;
  }

  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo img {
    width: 250px;
    height: auto;
    display: block;
  }

  

  ul.nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100px;
    right: 20px;
    background-color: black;
    border: 2px solid goldenrod;
    border-radius: 8px;
    padding: 20px;
    z-index: 999;
  }

  ul.nav li {
    margin-bottom: 15px;
  }

  ul.nav.show {
    display: flex;
  }

    .project-header {
      flex-direction: column;
      text-align: center;
    }
  
    .project-header-text {
      text-align: center;
    }

    .github-button-wrapper {
      text-align: center;
    }

    .project-banner {
      width: 100%;
      height: auto;
      max-width: 100%;
    }
  }