/* ===============
       BODY
=================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.highlighted-words {
  font-weight: bold;
  color: #044159 ;
}
.highlighted-words1 {
  font-weight: bold;
  color: #f95f21;
  font-style: italic;
}

 /* Section dividers */
hr {
  border:inset #0D8C8C 2px;
  border-bottom: none;
  width: 70%;
  margin: 100px auto;}

  .btn {
    background-color: #044159;
    color: white;
    border-color: #044159; 
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
  }

  .btn:hover {
    background-color: #f95f21;
    border-color: #f95f21;
    color: white;
  }

 
/* ===============
       HEADER
=================*/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 25px 5px 100px;
  background-color: white;
  position: relative;
  z-index: 10; 
}

.nav-button .btn {
  background-color: #044159;
  color: white;
  border-color: #044159; 
  border-radius: 10px;
  cursor: default;
  box-shadow: none;
}
    .nav-link {
      color: #044159;
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      transition: color 0.3s ease; 
    }
        .icon-text {
          display: inline-flex;
          align-items: center;
          gap: 8px; 
          font-size: 16px; 
          font-weight: 600; 
        }
        .icon-text svg {
          fill: currentColor; 
          width: 20px; 
          height: 20px; 
          transition: fill 0.3s ease;
        }

    .nav-link:hover {
      color: #f95f21; 
    }
    .nav-link:hover .icon-text svg {
      fill: #f95f21; 
    }
    .nav-link:hover .icon-text {
      color: #f95f21; 
    }

.header-logo {
  color: #044159;
}

/* ===============
    HERO BANNER
=================*/
.pro {
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  color: white; 
  margin-left: 0.2em;
  margin-right: 0.2em;
}

.container-cover {
  background:url(./Photos/webpage-background4.jpg);
  background-size:100%;
  background-repeat:no-repeat;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rotating Title- Credit to https://codepen.io/alphardex/pen/WNNVJeZ with a few tweeks */
.rotating-text {
  color: white;
  font-weight: 600;
  transform: translateX(-80px); 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  max-width: 100%;
}

    .rotating-text p {
      display: inline-flex;
      margin: 0;
      vertical-align: top;
      font-weight: 600;
      font-size: 30px;
      align-items: center;
    }

        .rotating-text .word {
          position: absolute;
          display: flex;
          opacity: 0;
          white-space: nowrap;
          max-width: 100%;
        }

        .rotating-text .word .letter {
          transform-origin: center center 25px;}

        .rotating-text .word .letter.out {
              transform: rotateX(90deg);
              transition: 0.32s cubic-bezier(0.6, 0, 0.7, 0.2);
            }

        .rotating-text .word .letter.in {
              transition: 0.38s ease;
            }

        .rotating-text .word .letter.behind {
              transform: rotateX(-90deg);
        }

/* ===============
    'ABOUT ME'
=================*/

.img-container {
  border-radius: 50%;
  height: 300px;
  width: 300px;
  padding: 0;
  margin: 0;
}

/* ===============
     'SKILLS'
=================*/
/* MODAL */
.highlighted-link {
  color: blue;
  text-decoration: underline;
  cursor: pointer;
}
    /* The Modal Background */
    .modal {
      display: none; 
      position: fixed;
      z-index: 1; 
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.4); 
      padding: 0;
    }
        /* Modal Content */
        .modal-content {
          background-color: #fefefe;
          margin: 5vh auto;
          padding: 20px;
          border: 1px solid #888;
          width: 85%; 
          max-width: 800px;
          position: relative;
          max-height: 90vh;
          overflow-y: auto;
        }

        .pdf-frame{
          width: 100%;
          height: 60vh;
          border: none;
        }
        
            /* The Close Button */
            .close {
              color: #f95f21;
              float: right;
              font-size: 28px;
              font-weight: bold;
              position: absolute;
              top: 10px;
              right: 10px;
              cursor: pointer;
            }

            .close:hover,
            .close:focus {
              color: black;
              text-decoration: none;
              cursor: pointer;
            }

/* IMAGE SLIDESHOW OR INFINITE LOOP CAROUSEL */
#text-section {
  text-align: center;
  overflow: hidden;
}

    .slideshow {
      overflow: hidden;
      white-space: nowrap;
      position: relative;
    }

        .slideshow::after,
        .slideshow::before {
          position: absolute;
          top: 0;
          width: 250px;
          height: 100%;
          content: "";
          z-index: 2;
        }

        .slideshow::before {
          left: 0;
          background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
        }

        .slideshow::after {
          right: 0;
          background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
        }

        .slideshow:hover .slideshow-reel{
          animation-play-state: paused;
        }

    .slideshow-reel {
      display: inline-block;  
      animation: 25s slide infinite linear;
    }

    .slideshow-reel img {
      width: 4%;
      height: 70px; 
      margin: 0 40px; 
    }
    /* 24 images, 25 slides.  */
    @keyframes slide {
      from {
        transform: translateX(0);
      }
      to {
        transform: translateX(-142.6%);
      }
    }

/* SKILLS CATEGORY CARDS */
#skills-divider {
  background: linear-gradient(45deg, #f95f21, #e56300, #f95f21);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08); 
  filter: brightness(1.2);       
}

#skills-card p {
  padding-top: 5px;
  color: #777;
}

/* ===============
    'PROJECTS'
=================*/
.card-text {
  color: #333;
}

/* MODAL FOR PROJECTS -- modal box, content, and close button
css is applied in code under skills*/
.video-container {
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

#videoFrame3, #videoFrame4, #videoFrame5, #videoFrame6, #videoFrame7, #videoFrame8, #videoFrame9 {
  width: 100%;
  height: 40vh;
  border: none;
}

/* ===============
    'CONTACT ME'
=================*/
.col {
  cursor: pointer;
}

.contact-me {
  place-items: center;
  text-align: center;
}


/* ===============
      FOOTER
=================*/
.footer {
  background:url(./Photos/webpage-background4.jpg);
  background-size:100%;
  background-repeat:no-repeat;
  margin-top: 2rem;
  padding: 0;
}

.footer svg {
  fill: black; 
  transition: fill 0.3s ease; 
}


.footer a:hover svg {
  fill: #f95f21; 
}



/* ===============
      SCALING
=================*/
@media (min-width: 992px) {
  .menu {
    display: none;
  }
}

/* Scaling for small tablets devices or below */
@media (max-width: 992px) {/* Centering the 'About Me' section */
  .header-logo {
    display: none;
   }
   .left-header {
    display: none;
   }
   .container-header {
    display: flex;
    justify-content: right;
    padding-right: 0px;
    position: relative;
   }
   .menu {
    display: block;
    color: #044159;
    cursor: pointer;
    font-size: 30px;
  }
        .nav-pills {   /* hidden hamburger menu */
          display: none;
          flex-direction: column;
          position: absolute;
          top: 50px;
          right: 0;
          height: 100vh;
          background-color: #333;
          width: 100%;
          padding: 0px;
          gap: 10px;
          list-style: none;
          transition: right 0.3s ease-in-out; 
        }
        .nav-link {
          color: #10ACAC;
        }
        .nav-button .btn {
          display: none;
        }
        .nav-pills.active {
          display: flex;
        }

  h2 {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  p {
    text-align: center;
  }

  .col-10.col-sm-8.col-lg-6 {/* Centering parent container of profile image */
    width: 100%; 
    max-width: 350px; 
    margin-left: auto; 
    margin-right: auto; 
  }

  .col-10.col-sm-8.col-lg-6 img {/* Centering the profile image */
    width: 100%; 
    max-width: 300px; 
    height: auto; 
    display: block;
    margin-left: auto; 
    margin-right: auto; 
  }

  #skills-section, #projects-section {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* For scaling smaller screens (under small tablets) */
@media (max-width: 767px) {
   .container-cover {
    background-size: auto;
    background-repeat: round;
    }
    .rotating-text {
      font-size: 8vw;
    }
        .rotating-text p {
          font-size: 20px; 
        }
        .rotating-text .word {
          max-width: 100%; /* Ensure words don't exceed container width */
        }
    .modal-content {
    width: 90%; 
    max-width: none; 
    padding: 10px;
    }
    .pdf-frame {
    height: 60vh; 
    }
  }

/* For scaling smallest screens (mobile devices) */
@media (max-width: 570px) {
.pdf-frame {
  height: 50vh;
}
.close {
  font-size: 24px; 
  top: 5px;
  right: 5px;
}
  }