body {
    background-color: black;
    color: grey;
    /* color: rgb(85,174,217,1); */

    font-family: "Bubblegum Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}


/* Navbar Element Settings */
nav {position: fixed;}

.navbar-custom {background-color: black;}

h1 {
    text-align: center;
    margin: 30px;
    margin-bottom: 80px;
    font-style: italic;
    color: #3498db;
}

span {color: rgb(157, 157, 157)}
.name {color:#3498db}

/* Skills Section */
.skills-container {
    background-color: #3498db;
    border-radius: 10px;
    margin: 50px;
    padding: 50px;
}

.skills {color: black;}

.icon {
    width: 50px;
}

@media (min-width: 1024px) {
    .skills-container {
        width: 848px;
        margin: 40px auto;
    }
}

@media (max-width: 909px) {
    .skills-container {
        width: 100%;
        margin: 40px auto;
    }
}


.image-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 900px;   /* Controls how far apart the images can get */
    margin: 0 auto 20px;
}

.image-row img {
    flex: 1;
    max-width: 440px;
    width: 100%;
    height: auto;
}

/* Mobile */
@media (max-width: 768px) {
    .image-row {
        flex-direction: column;
        align-items: center;
    }

    .image-row img {
        width: 100%;
        max-width: 500px; /* Optional: prevents images from getting too wide */
    }
}

.corner-triangle {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-bottom: 100px solid #3498db;
  border-left: 100px solid transparent;
  z-index: -1;
}

/* Contact Page Settings */
form {
    width: 25%;
    margin-bottom: 100px;
}
#message {
    height: 150px;
    resize: both;
}

label {color: rgb(157, 157, 157)}

#submit {
    margin-top: 20px;
    margin-left: 50%;
    width: 100px;
    transform: translateX(-50%);
    background-color: #3498db;
    color: white;
    border-color: #9ec9e2;
    border-radius: 5px;
}

.QR {
    width: 300px;
    display: block;
    margin: 0 auto;
}

/* form mobile screens */
@media (max-width: 492px) {
    form {width: 80%;}
    #contactH1 {font-size: 1.5rem;}
}

/* Thank you Page Settings */
.thank_you {
    margin-top: 100px;
    margin-bottom: 100px;
}

/* old vs new */
/* 2. Fix the image "squeeze" globally */
.project-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  max-width: 400px; /* This is fine for desktop */
  display: block;
  margin: 0 auto; 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  transition: transform 0.2s ease-in-out;
}

/* 3. Force images to be full-width on Mobile */
@media (max-width: 450px) {
  .project-img {
    max-width: 100% !important; 
    width: 100% !important;
  }
    
  /* This removes the 50px margins on the sides of the homepage on mobile */
  .skills-container {
    margin: 20px 10px !important;
    padding: 20px 10px !important;
  }

  /* Adds spacing between the second skill section and the demo reel on mobile */
  .skills-container .row-cols-1 > .col:last-child {
    margin-bottom: 50px !important;
  }
}

.engineering-text p {
  text-align: left !important;
  max-width: 100% !important;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}