*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html, body {
  font-size: 100%;
  font-family: Arial, sans-serif;
  font-weight: normal;
  color: #333;
  line-height: 1.6;
  vertical-align: baseline;
}

body {
  background: url(photos/Portfolio%20Background.jpg) no-repeat center center fixed;
  background-size: cover;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #23c9a2;
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero {
  background: linear-gradient(90deg, rgba(69, 69, 69, 0.5), #c3c3c37a);
  animation: gradientMove 10s ease infinite;
}

/* HTML5 display-role reset */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: bold;
  text-align: center;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.5em; margin: 1em 0; }
h3 { font-size: 1.75em; margin: 0.75em 0; }
h4 { font-size: 1.25em; margin-bottom: 0.5em; }

p {
  font-size: 1em;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

hr {
  height: 3px;
  background-color: #000;
  margin: 2em 0;
  border: none;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  z-index: 1000;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75em 0;
  flex-wrap: wrap;
}

nav .logo {
  max-width: 50px;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 0.5em;
}

nav ul li a {
  color: #fff;
  font-size: 1.1em;
  padding: 0.5em 0.75em;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

@media (min-width: 768px) {
  nav ul li a:hover {
    background-color: #d0d0d0;
    color: #000;
  }
  .mobile-header, .navMobile {
    display: none;
  }
}

/* Hero */
.hero {
  text-align: center;
  padding: 50px 0 50px;
  height: 100%;
}

.hero h1 {
  margin-top: 100px;
}

/* About Me */
.aboutme {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 5%;
}

.aboutme-text {
  font-size: 1rem;
  text-align: left;
}

.aboutme-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.aboutme-image img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.headshot img {
  max-width: 300px;
}

/* Quote */
.quote {
  text-align: center;
  font-style: italic;
  margin: 10px;
}

/* Visual Enhancment */
.hero.employer-focus {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 5%;
  color: black;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3rem;
}

.hero-text h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero-img img {
  max-width: 280px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.about-brief,
.about-employer {
  margin: 4rem auto;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  background: #f4f4f4;
  padding: 1.5em 1.5em;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.employer-points {
  list-style: none;
  padding: 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.employer-points li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.skills-grid {
  display: flex;
  justify-content: center;
  gap: 1em;
  font-size: 3rem;
  margin-top: 1.5rem;
  margin-bottom: 1em;
}

.evaluationp {
  display: flex;
  flex-direction: row;
  max-width: 100%;
  gap: 20px;
  margin-left: 10%;
  margin-right: 10%;
  padding: 2%;
}

.evaluationp img {
  width: 400px;
}

/* Timeline */
.timeline {
  margin: 2% auto;
  text-align: center;
  padding: 1rem;
}

.timeline p {
  font-size: .75em;
}

.timeline h2 {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2rem;
  padding: 1rem;
}

.timeline-item {
  flex: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 280px;
  animation: fadeInUp 0.8s ease forwards;
}

.icon {
  font-size: 2em;
  color: #fff;
  background-color: #23c9a2;
  border-radius: 50%;
  padding: 0.6em;
  margin-bottom: 1rem;
}

.fab:hover, .fas:hover, .fa-solid:hover {
  transition: transform 0.3s ease, color 0.3s ease;
  transform: scale(1.2);
  color: #23c9a2;
}

.content {
  background: #f4f4f4;
  padding: 1em 1.5em;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.content h3 {
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

.content p {
  text-align: center;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item:hover {
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.hobbies{
  margin: 4rem auto;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
  background: #f4f4f4;
  padding: 1.5em 1.5em;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.hobbies ul {
  list-style: none;
  padding: 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hobbies li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  
}

.stat-box {
  background: #f4f4f4;
  padding: 1em 1.5em;
  width: 200px;
  height: 200px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-box h3 {
  font-size: 2rem;
  color: black;
  margin-bottom: 0.5rem;
}

.evaluation {
  display: flex;
  flex-direction: row;
  max-width: 100%;
  gap: 20px;
  margin-left: 10%;
  margin-right: 10%;
  padding: 2%;
}

.evaluation img {
  width: 400px;
}

/* Why Me */
.whyme {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 5%;
}

.whyme-text {
  text-align: center;
  font-size: 1rem;
  text-align: right;
}

/* Call to Action */
.cTA {
  display: flex;
  justify-content: space-between;
  gap: 25%;
  margin-left: 25%;
  margin-right: 25%;
}

.cTA2 {
  display: flex;
  justify-content: center;
}

.tnb {
  width: 300px;
  text-align: center;
}

.tnb2 {
  width: 500px;
  text-align: center;
}

.techexample {
  width: 100%;
  max-height: 100%;
  justify-content: center;
}

/* Buttons */
.button-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.custom-btn {
  background-color: #23c9a2;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  font-weight: 600;
}

.custom-btn:hover {
  background-color: #444;
}

/* Certifications */
.Certifications .group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 2em 0;
  gap: 1em;
}

.Certifications img {
  max-width: 500px;
  margin-top: 1em;
}

.Certifications {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

/* Work Section */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  padding: 2em 0;
}

.work-item {
  background: #fff;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.work-item img {
  border-radius: 5px;
}

.work-item h4 {
  font-size: 1.5em;
  margin: 0.5em 0;
}

.work-item p {
  font-size: 1em;
  color: #555;
  line-height: 1.5;
}

#imageModal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: absolute;
  max-width: 70%;
  max-height: 70%;
}

.modal-content img {
  max-width: 50%;
  max-height: 50%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

#modalClose {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 2rem;
  color: white;
  background: black;
  border-radius: 50%;
  padding: 5px 10px;
  cursor: pointer;
}

/* Buttons */
button, a.button {
  background-color: #000;
  color: #fff;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
}

button:hover, a.button:hover {
  background-color: #333;
  transform: scale(1.05);
}

/* Footer */
footer{
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  text-align: center;
}

footer {
  padding-top: 2em;
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

footer ul {
  list-style: none;
}

footer p {
  margin-top: 1em;
}

.copyr {
  padding: 1em 0;
  font-size: 0.9em;
}

/* Contact */
.contact-form {
  max-width: 40%;
  margin: 80px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.contact {
  justify-content: space-around;
  width: 100%;
  height: 825px;
}

label {
  display: block;
  margin: 10px 0 5px;
  text-align: left;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .navDesktop {
    display: none;
  }

  .navMobile {
    display: flex;
    justify-content: space-between;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.85);
    text-align: center;
    width: 100%;
    z-index: 9999;
  }

  nav ul.active {
    display: flex;
    height: 175px;
    margin-top: 65px;
  }

  nav .menu {
    max-width: 25px;
    margin-right: 125px;
  }

  nav .logo {
    max-width: 40px;
    margin: 12px;
  }

  nav .head {
    font-size: 1.25em;
    margin-top: 16px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 1em;
  }

  .bar {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
  }

  .hero {
    padding: 50px 0;
  }

  .hero-text h1 {
    font-size: 2em;
  }

  .hero-text h2 {
    font-size: 1em;
  }

  .hero-text p {
    font-size: .75em;
  }

  h1 { font-size: 2em; }
  h2 { font-size: 1.5em; }
  h3 { font-size: 1.25em; }
  p   { font-size: 1em; }

  section{
    text-align: center;
  }

  .aboutme {
    flex-direction: column;
    align-items: center;
    margin: 5% 0;
  }

  .aboutme-text {
    font-size: 0.9rem;
    padding: 10px;
  }

  .aboutme-image img {
    height: 50px;
  }

  .headshot img {
    height: 300px;
  }

  .cTA {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    gap: 10%;
    margin-left: 7%;
    margin-right: 7%;
  }

  .tnb {
    width: 100%;
  }

  .techexample img {
    align-items: center;
    width: auto;
    height: 350px;
  }

  .timeline {
    margin-left: 5%;
    margin-right: 5%
  }

  .timeline-track {
    flex-direction: column !important;
    text-align: center;
  }

  .stats {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .stat-box {
    width: 200px;
    height: 200px;
    text-align: center;
  }

  .skills-grid {
    display: flex;
    justify-content: center;
    gap: 1em;
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1em;
  }

  .custom-btn {
    background-color: #23c9a2;
    color: #fff;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    font-size: 1em;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: 500;
  }

  .work-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .modal-content img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }

  .Certifications .group {
    flex-direction: column;
    align-items: center;
  }

  .Certifications img {
    max-width: 100%;
  }

  .contact-form {
    max-width: 95%;
    margin: 80px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  }

  .contact {
    justify-content: space-around;
    width: 100%;
    height: 1000px;
  }

  iframe .contact {
    height: 900px;
  }

  .contacts li {
    font-size: 0.75em;
  }

  .evaluation {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    gap: 20px;
    margin-left: 10%;
    margin-right: 10%;
    padding: 2%;
  }  
  
  .evaluationp img {
    width: 400px;
  }
}