:root {
  --icon-fill: #07DBF2;
  --icon-stroke: #07DBF2;
  --social-icon-fill: #07DBF2;
}

body {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  background: linear-gradient(to right, #010410, #0A3D62);
  color: #FFF;
  margin: 0;
  padding: 0;
}

body.light-mode {
  --icon-fill: #0A3D62;
  --icon-stroke: #0A3D62;
  --social-icon-fill: #064273;
  color: #011126;
}

html, body {
  overflow-x: hidden;
} 

/* Style rules for fonts */ 
h1, h2, h3, h4 {
  font-family: "Goldman", sans-serif;
  font-weight: 200;
  font-style: normal;
}

button, label, legend, input, textarea {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
}

hr {
  max-width: 95%;
  width: 95%;
}

/* Button Container Style Rule */ 
.button-container {
  width: 100%;
  text-align: center;
  padding-bottom: 15px;
}

/* Mobile Viewport Style Rules */
/* Style Rules for Header */
.header-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#logo {
  max-width: 100px;
  width: 100px;
  height: auto;
  border-radius: 15px;
  margin: 0 auto;
}

#headshot {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.button-container {
  width: 100%;
  text-align: center;
  padding-bottom: 15px;
}

.intro-text {
  width: 100%;
  text-align: center;
  padding: 10px 0;
}

.intro-text h2 {
  font-size: 2.5rem;
  margin: 0;
}

.intro-text p {
  font-size: 1.75rem;
  margin: 0;
}

/* Light Mode */
#light-mode {
  background-color: #C2B280;
  display: inline-block;
  margin: 0 auto;
  width: 100px;
  font-size: 0.75rem;
  border-radius: 8px;
}

.light-mode {
  background: linear-gradient(to right, #4682B4, #B0E0E6);
}

.light-mode #skill-icon {
  fill: #011126;
}

/* Style Rules for About Section */
#about {
  padding: 40px 20px;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 90%;
  margin: 0 auto;
}

#about h1 {
  text-align: center;
  font-size: 2rem;
  margin-top: -10px;
}

.bio-text {
  text-align: center;
  width: 90%;
  font-size: 1rem;
  margin: 0 0 10px 0;
}

#greet-button {
  border-radius: 8px;
  background-color: #C2B280;
  text-align: center;
}

#greet-message {
  height: 1em;
  line-height: 1em;
  padding-top: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1.25rem;
  font-family: "Montserrat", sans-serif;
  font-style: italic;
}

#greet-message.show {
  opacity: 1;
}

/* Style Rules for Skills Section */ 
#skills {
  text-align: center;
  margin: 0 auto;
}

#skills-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  width: 90%;
  margin: 0 auto;
}

#skills h1 {
  font-size: 2rem;
  text-align: center;
}

#skill-caption {
  font-size: 0.9rem;
  text-align: center;
  padding: 5px 0;
}

#skills figcaption {
  font-size: 1rem;
}

.icon-fill {
  fill: var(--icon-fill);
  fill-opacity: 0.9;
  transition: fill 0.3s ease;
}

.icon-stroke {
  stroke: var(--icon-stroke);
  stroke-opacity: 0.9;
  stroke-width: 6.5;
  transition: stroke 0.3s ease;
  fill: none;
}

.skill-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  height: 200px;
  text-align: center;
}

.skill-icon-wrapper.uiux {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.skill-icon-wrapper.uiux svg {
  max-height: 90%;
  max-width: 90%;
}

#skills svg {
  max-width: 90%;
  max-height: 90%;
}

.skill-info {
  visibility: hidden;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.skill-info.show {
  visibility: visible;
  opacity: 1;
  max-height: 100px;
}

.communication-skill {
  transform: translateY(-15px);
}

/* Style Rules for Education Section */
#education {
  padding-top: 30px;
}

.education-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  align-items: center;
}

.pcc-seal {
  width: 150px;
  height: auto;
}

.nmsu-seal {
  width: 150px;
  height: 150px;
}

.pcc, .nmsu {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#education h1 {
  text-align: center;
  font-size: 2rem;
  margin-top: -10px;
}

.school-text h2 {
  font-size: 1.125rem;
  white-space: nowrap;   
  overflow: hidden;      
  text-overflow: ellipsis; 
}

.school-text, .school-text h3 {
  font-family: "Montserrat", sans-serif;
}

.school-text h3 {
  font-weight: bold;
  font-size: 1rem;
}

/* Style Rules for Projects Section */
#project-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 2rem;
}

#projects h1 {
  font-family: "Goldman", sans-serif;
  font-weight: 200;
  font-style: normal;
  text-align: center;
  font-size: 2rem;
}

.project-card {
  flex: 1 1 300px;
  max-width: 90%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  margin: 3px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card a {
  display: block;
  text-decoration: none;
  text-align: center;
  margin-top: 8px;
  color: #07DBF2;
  font-weight: bold;
  font-size: 0.875rem;
  margin-top: auto;
}

.project-card h3 {
  margin: 8px 0;
  font-size: 1rem;
  text-align: center;
}

.project-card p {
  font-size: 0.875rem;
  margin: 4px 0;
}

.project-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
}

.project-image img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 8px;
}

/* Light Mode Adjustments */ 
body.light-mode .project-card {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #011126;
}

body.light-mode .project-card a {
  color: #011126;
}

/* Style Rules for Contact Section */
#contact h1 {
  text-align: center;
  font-size: 2rem;
}

#referral-container {
  display: none;
  text-align: center;
  margin: 1em auto;
  width: fit-content;
}

.first-name, .last-name, .email, .phone-number, .referral {
  display: block;
  margin: 30px auto;
  padding: 5px;
  width: 50%;
  text-align: center;
  border-style: hidden;
  font-size: 1rem;
}

#message {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#first-name, #last-name, #email, #phone-number {
  width: 60%;
}

#referral-source {
  text-align: center;
  display: block;
  margin: 0 auto;
  margin-top: 7.5px;
}

.message {
  margin: 30px auto;
  padding: 5px;
  width: 60%;
  text-align: center;
  border-style: hidden;
  font-size: 1rem;
}

#send-message {
  background-color: #C2B280;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-size: 1rem;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 100px;
  padding: 20px;
  max-width: 100%;
}

.social-icon-fill {
  fill: var(--social-icon-fill);
  fill-opacity: 0.9;
  transition: fill 0.3s ease;
}

.socials svg {
  width: 80px;
  height: auto;
  transition: transforom 0.3s ease;
}

/* Style Rules for Footer Content */
footer {
  text-align: center;
  font-size: 0.75rem;
  padding-top: 30px;
}

/* Tablet Viewport Style Rules */
@media (min-width: 779px) and (max-width: 1023px) {
  /* Header Style Rules */
  header {
    position: relative;
    width: 100%;
  }

  .header-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10%;
    flex-wrap: nowrap;
    width: 90%;
    margin: 0 auto;
    padding: 40px 0 20px 0;
  }

  .header-top {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .intro-text {
    text-align: center;
  }

  .intro-text h2 {
    font-size: 2.75rem;
    margin: 0;
  }

  .intro-text p {
    font-size: 1.75rem;
    margin: 0;
  }

  #headshot {
    max-width: 220px;
    height: auto;
  }

  /* About Section */
  .about-container .bio-text {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
  }

  .about-container .bio-text .column {
    flex: 1 1 45%;
  }
  
  /* Skills Section */
  .skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
    align-items: start;
    justify-content: space-between;
  }

  .skill-icon-wrapper {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: auto;
  }

  .skill-icon-wrapper.uiux {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-height: 100%;
    max-width: 100%;
  }

  .skills-icon-wrapper.uiux svg {
    max-width: 80px;
    max-height: 80px;
  }

  .skills svg {
    max-width: 150px;
    max-height: 150px;
  }

  .skills figcaption {
    font-size: 1.1rem;
  }

  .communication {
    transform: translateY(-15px);
  }

  /* Education Section */
  .education-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
    align-items: center;
  }

  /* Projects Section */
  #project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.25rem;
    margin-top: 1rem;
    padding-bottom: 50px;
  }

  /* Contact Section */
  #first-name, #last-name, #email, #phone-number {
    width: 60%;
  }
}

/* Desktop Viewport Style Rules */
@media (min-width: 1024px) {
  /* Header Section */
  header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 60px;
  }

  .header-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20%;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 0 40px;
  }

  #logo {
    max-width: 200px;
    width: 150px;
    height: auto;
    display: flex;
    align-items: flex-start;
    border-radius: 15px;
  }

  .intro-text {
    display: flex;
    flex-direction: column;
    gap: 5%;
    flex-wrap: wrap;
  }

  .intro-text h2 {
      font-size: 3rem;
      margin: 0;
      /* white-space: nowrap;   
      overflow: hidden;      
      text-overflow: ellipsis;  */
    }

  .intro-text p {
      font-size: 2rem;
      margin: 0;
    }

  #headshot {
    max-width: 300px;
    width: 80%;
    height: auto;
    border-radius: 8px;
  }

  /* About Section */
  .about-container .bio-text {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
  }

  .about-container .bio-text .column {
    flex: 1 1 45%;
  }

  .skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
    align-items: start;
  }

  .skill-icon-wrapper.uiux {
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .skills-icon-wrapper.uiux svg {
    max-width: 80px;
    max-height: 80px;
  }

  .skills svg {
    max-width: 250px;
    max-height: 250px;
    width: 250px;
  }

  #skills figcaption {
    font-size: 1.2rem;
  }

  /* Education Section */
  .education-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
    align-items: center;
  }

  /* Projects Section */ 
  .project-card {
    margin: 0 3px;
  }

  /* Contact Section */

}

