/* CSS Document
 Student Name: Svetlana Melnik
 Student ID: 040913225
 Lab Section: 25S_CST8285
 Due Date: July 06, 2025
 Description: Assignment 1: Portfolio
 */

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Gill Sans', sans-serif;
  background-color: #1a2733;
  color: #e0e0e0;
  min-height: 100vh;
  position: relative;
  line-height: 200%;
  font-size: 14px;
  letter-spacing: 0.025em;
}

.first-paragraph {
  margin-top: 20px;
}

.general-paragraph {
  margin-top: 10px;
}

.layout-wrapper {
  min-height: 100vh;
  position: relative;
  background-color: #1a2733;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/*Right white underneath panel*/
.white-background {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: 25%;
  /*Less width than 1/3 of the screen)*/
  background-color: #e0e0e0;
  border-radius: 15px;
  z-index: 1;
}

/*Right blue panel*/
.side-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  /*10px left of the white panel border*/
  bottom: 20px;
  width: 25%;
  /*Same width with the white panel*/
  background-color: #0d1722;
  border-radius: 15px;
  z-index: 4;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  font-family: Georgia, sans-serif;
  text-align: center;
  line-height: 300%;
}

.profile-photo {
  width: 75%;
  border-radius: 50%;
  /*Round photo*/
  margin-bottom: 20px;
  margin-top: 20px;
}

.name {
  margin-top: 20px;
  /*marging from the photo*/
}

.title {
  font-size: 1em;
  color: #cccccc;
  /*less bright than the name*/
  margin-top: 15px;
  /*Margin from the name*/
}

.college-link {
  color: #35a7ff;
  /*Styled to top-nav hover colour*/
  font-size: 1.2em;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.college-link:hover {
  color: #a0a0a0;
  /*Styled to top-nav colour*/
}

/*Navigation panel*/
.top-nav {
  display: flex;
  justify-content: space-around;
  background-color: #0d1722;
  padding: 1em 0;
  z-index: 10;
  position: relative;
  max-width: 70vw;
  /*Doesn't touch the right panel*/
}

/*Navigation panel text style*/
.top-nav a {
  color: #a0a0a0;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

/*Navigation panel cursor changing colour*/
.top-nav a:hover {
  color: #35a7ff;
}

/*Main content container*/
.container {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  margin-right: 30%;
  /*5% left to the right panel*/
  padding-left: 10px;
  position: relative;
  z-index: 2;
}

.content {
  width: 98%;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.unordered-list {
  margin: 10px;
  line-height: 3em;
}

/*Footer style*/
footer {
  background-color: #0d1722;
  padding: 1em 2em;
  color: #a0a0a0;
  font-family: Georgia, sans-serif;
  font-style: italic;
  font-weight: bold;
  max-width: 70vw;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /*For small displays*/
}

.footer-content a {
  margin-right: 12px;
  display: inline-block;
}

/*Icons size and time changing*/
.footer-content img {
  height: 28px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

/*Increase icons size with mouse*/
.footer-content img:hover {
  transform: scale(1.1);
}

/*Aligns footer text info to the right side*/
.footer-info {
  text-align: right;
  margin-left: auto;
}

/*Text size is proportionally smaller*/
.footer-author {
  margin: 2px 0;
  font-size: 0.9em;
  text-align: right;
}

.tech-icons {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 20px;
}

.tech-icons i,
.tech-icons img {
  font-size: 24px;
  color: #ffffff;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
  height: 24px;
  width: 24px;
}

.tech-icons i:hover,
.tech-icons img:hover {
  transform: scale(1.2);
  opacity: 1;
  cursor: pointer;
  color: #35a7ff;
}

.projects-slideshow {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #0a1b2b;
  border: 1px solid white;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #0d1722;
  overflow: hidden;
  position: relative;
}

.projects-container {
  position: relative;

}

.project-card {
  background-color: #0d1722;
  /*Footer/Header colour*/
  border: 1px solid white;
  /*Thin border around the place*/
  border-radius: 10px;
  width: 280px;
  padding: 16px;
  box-sizing: border-box;
  position: relative;
  box-shadow: inset 0 0 0 1px #0d1722;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  display: none;
  /*Hidden by default*/
  height: 100%;
  min-height: 350px;
}

.project-card.active {
  display: flex;
  /*Only active item is shown*/
}

/*Name tag line*/
.project-title {
  background-color: #0d1722;
  color: #e0e0e0;
  padding: 6px 10px;
  font-weight: bold;
  border-top: 1px solid #1e2c3a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin: -16px -16px 12px -16px;
  border-top-left-radius: 10px;
  /*Rounding angles*/
  border-top-right-radius: 10px;
  /*Rounding angles*/
  text-align: left;
  font-size: 1.05em;
}

.project-description {
  color: #e0e0e0;
  font-size: 0.95em;
  margin-bottom: 12px;
}

/*Link Button*/
.project-link {
  align-self: flex-start;
  background-color: #ffffff10;
  border: 1px solid #ffffff40;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  font-size: 0.9em;
}

.project-link:hover {
  background-color: #ffffff20;
  transform: scale(1.03);
}

/*Placeholder*/
.project-card.placeholder {
  align-items: center;
  text-align: center;
}

/*Placeholder image style*/
.placeholder-image {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 12px;
  object-fit: cover;
}

/*Placeholder image style*/
.project-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 12px;
  background-color: #122535;
}

/*Slideshow button spacing*/
.slideshow-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
}

/*All buttons style*/
.button-common {
  background-color: #1f2e40;
  color: white;
  border: 1px solid #ffffff40;
  padding: 0.5em 1.2em;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  font-family: inherit;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  white-space: nowrap;
}

/*Button touch effect*/
.button-common:hover {
  background-color: #2e3e52;
  transform: scale(1);
}

/*Form buttons spacing*/
.form-buttons {
  text-align: right;
  margin-top: 20px;
}

/*Style for Contacts Page Form Intro*/
.contact-intro {
  font-size: 1.2em;
  color: #cccccc;
  margin-bottom: 1em;
  text-align: center;
}

/*Style for Contacts Page Form*/
.contact-form {
  background-color: #e0e0e0;
  /*White form placemat same colour with right side panel*/
  border: 1px solid #e0e0e0;
  box-shadow: inset 0 0 0 1px #0d1722;
  padding: 10px;
  border-radius: 10px;
  max-width: 500px;
  margin: 0 auto;
  color: #0d1722;
  font-family: Georgia, sans-serif;
}

/*Style for Contacts Page Form fieldset*/
.contact-form fieldset {
  border: none;
  padding: 0;
}

/*Style for Contacts Page Form label*/
.contact-form label {
  display: block;
  margin-top: 15px;

}

/*Contact form style*/
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 8px;
  background-color: #122535;
  border: 1px solid #444;
  border-radius: 6px;
  color: #ffffff;
  font-size: 1em;
  margin-top: 5px;
  box-sizing: border-box;
}

.contact-form input::placeholder {
  color: #888;
  font-style: italic;
}

.contact-form textarea {
  resize: vertical;
}

/*Timeline White tree style*/
.timeline {
  position: relative;
  margin: 60px auto;
  padding: 20px 0;
  width: 90%;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: white;
  /*Central trunk*/
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
}

/*Content box*/
.content-box {
  background-color: #0d1722;
  border: 1px solid white;
  border-radius: 10px;
  padding: 15px;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 0 1px #0a1b2b;
  color: #e0e0e0;
}

/*White tree pipeline*/
.timeline-item.left::after,
.timeline-item.right::after {
  content: '';
  position: absolute;
  top: 30px;
  width: 20px;
  height: 4px;
  background-color: white;
}

.timeline-item.left::after {
  right: -20px;
}

.timeline-item.right::after {
  left: -20px;
}

.resume-container {
  max-width: 90%;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

.timeline-card {
  width: 45%;
  min-width: 280px;
  max-width: 500px;
}

.timeline-wrapper {
  width: 70%;
  margin-left: 0;
  padding-left: 5%;
  padding-right: 5%;
  position: relative;
}

/*Skills box style*/
.skills-summary {
  margin-top: 50px;
  padding: 16px;
  background-color: #0d1722;
  border: 1px solid white;
  border-radius: 10px;
  font-size: 0.95em;
  color: #e0e0e0;
  width: 90%;
}

.skills-summary h3 {
  margin-bottom: 10px;
  color: #35a7ff;
  font-size: 1.2em;
  border-bottom: 1px solid #ffffff40;
  padding-bottom: 4px;
}

.skills-summary ul {
  list-style: none;
  padding-left: 0;
}

.skills-summary li {
  margin-bottom: 8px;
}

/* Phone screen style*/
@media (max-width: 600px) {
  .container {
    width: 100%;
    /*Max width on the phone screen*/
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    /*Stretching width*/
  }

/*Hide side-panel*/
.side-panel,
.white-background {
  display: none;
}

  .project-card {
    width: 100%;
    /*Width of the screen*/
    margin-bottom: 20px;
  }

  .project-section {
    flex-direction: column;
    gap: 12px;
  }

  .project-image,
  .placeholder-image {
    height: auto;
  }

  .button-common {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}