html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #020409, #0c1726, #1a3047);
  background-attachment: fixed;
  color: #9fb0c1;
  font-family: Arial, sans-serif;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-top: -200px;
  margin-bottom: -100px;
  filter: drop-shadow(0 0 20px rgba(150, 200, 255, 0.25));
}

.logo-container img {
  width: 1000px;
  max-width: 95%;
  height: auto;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.about-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.about-content { 
  text-align: center;
}
  
.about-content h2 {
  max-width: 1200px;                /* limits paragraph width */
  width: 90%;                       /* gives text a responsive width */
  margin: 5px auto;                 /* centers text blocks */
  line-height: 1.2;                 /* improves readability */
  color: #8196aa;
}

.certifications {
  text-align: center;
  margin-top: 25px;
}

  .cert-image {
  width: 120px;
  max-width: 25%;
  margin: 10px;
}

.navbar {
  position: static;
  top: 0;                          /* anchors navbar to top of screen */
  left: 0;                         /* anchors navbar to left edge of screen */
  width: 100%;                     /* sets sidebar width */
  background: none;                /* no background color */
  padding: 5px 0px;               /* inner spacing (top/bottom + left/right) */
  display: flex;                   /* enables flexbox layout */
  gap: 10px;                       /* space between nav items */
  z-index: 1000;                   /* keeps navbar above background/content */
}

.navbar a {
  color: #8196aa;           /* link text color */
  text-decoration: none;     /* removes underline from links */
  padding: 10px;             /* clickable area around link text */
  border-radius: 6px;        /* rounded corners for hover effect */
  text-align: center;        /* centers link text */
  transition: 0.2s;          /* smooth hover animation */
}

.navbar .pipe {
  color: white;
  font-size: 25px;
  user-select: none;
}

.navbar a:hover {
  background: #29445c;       /* hover highlight background color */
}

.navbar a:active {
  background: lightcoral;
  border-left: 5px solid #edf8ff;
}

.site-footer {
  width: 100%;
  text-align: center;
  padding: 0px;
}

.portfolio-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  min-height: auto;
}

.project-grid {
  display: grid;                          /* enables grid layout */
  grid-template-columns: repeat(2, 1fr);  /* responsive columns */
  gap: 20px;                              /* space between cards */
  max-width: 800px;                       /* keeps layout centered and clean */
  margin: 0 auto;
  padding-bottom: 40px;
}

.project-card {
  background: rgba(10, 18, 30, 0.75);
  border: 5px solid #29445c;
  border-radius: 6px;                 /* rounded corners */
  padding: 0px;                       /* inner padding */
  max-width: 350px;                   /* width of each card */
  text-align: center;
}

.project-card a {
  color: #edf8ff;                        /* text color insode cards */
  text-decoration: none;                 /* removes underline */
  padding: 10px;                         /* clickable area around link */
  border-radius: 6px;                    /* rounded corners for hover effect */
  text-align: center;                    /* centers link text */
}

.project-card a:hover {
  background: #29445c; /* hover highlight */
}

.policy {
  text-align: center;
  margin-bottom: 10px;
  max-width: 900px;  
}

.services-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.services-grid {
  display: grid;                          /* enables grid layout */
  grid-template-columns: repeat(3, 1fr);  /* responsive columns */
  gap: 10px;                              /* space between cards */
  max-width: 800px;                       /* keeps layout centered and clean */
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}

.services-card {
  background: rgba(10, 18, 30, 0.75);
  border: 5px solid #29445c;
  border-radius: 6px;                 /* rounded corners */
  padding: 0px;                       /* inner padding */
  max-width: 350px;                   /* width of each card */
  text-align: center;
  font-size: 15px;
}

.services-card a {
  color: #edf8ff;                        /* text color insode cards */
  text-decoration: none;                 /* removes underline */
  padding: 10px;                         /* clickable area around link */
  border-radius: 6px;                    /* rounded corners for hover effect */
  text-align: center;                    /* centers link text */
}

.services-card a:hover {
  background: #fff; /* hover highlight */
}

.additional {
	text-align: center;
}

.additional h2 {
	text-decoration: underline;
}

.additional ul {
    text-align: left;
    width: fit-content;
    margin: 0 auto;
}

.contact-content {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-content h1 {
    text-align: center;
    margin-bottom: 25px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#contact-form label {
    margin-top: 10px;
    font-size: 18px;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    box-sizing: border-box;
}

#contact-form textarea {
    resize: vertical;
}

#contact-form button {
    margin-top: 20px;
    padding: 12px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
}

#form-status {
    margin: 15px 0;
    text-align: center;
    font-size: 16px;
    color: #8196aa;
}

/* Responsiveness */
@media (max-width: 768px) {
	
   .logo-container {
    margin-top: -50px;
    margin-bottom: -100px;
  }

   .logo-container img {
    width: min(1000px, 90vw);
  }

  .navbar {
    position: static;
    gap: 18px;
    height: 55px;
  }

  .navbar a {
    font-size: 15px;
    padding: 8px 12px;
  }

  .navbar .pipe {
    font-size: 22px;
  }

  .about-main {
    padding-top: 0px;
  }

  .portfolio-main {
    padding-top: 0px;
  }
  
  .services-main {
	  padding-top: 0px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
	
   #quote {
    margin-top: 25px;
    font-size: 1.3rem;
  }
	
   .logo-container {
    margin-top: -25px;
    margin-bottom: -75px;
  }

  .navbar {
    position: static;
    gap: 10px;
    height: 50px;
  }

  .navbar a {
    font-size: 13px;
    padding: 6px 8px;
  }

  .navbar .pipe {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 1.3rem;
    padding: 0 20px;
  }

  .about-main {
    padding-top: 0px;
  }
  
   .about-main .logo-container {
    margin-top: -40px;
  }

  .portfolio-main {
    padding-top: 0px;
  }
  
  .services-main {
    padding-top: 0px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

}