/* Once you’re done with the initial version of your website at the end of this course, we recommend doing the following:

Run your transpiled CSS through the autoprefixer (or any other postprocessor you decide to use).
Create a new CSS file called “style.production.css” and paste the output from the autoprefixer into this file.
Update your links in the header of the CSS file to the new “style.production.css” file.
Make sure you keep a copy of your original “styles.css” file. If you want to make any changes later, it’s best to make it in this file and repeat the process again. */

/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/****************************************** LIST of REPEATED ELEMENTS *********************************/
:root {
  --spacing_s: 10px;
  --spacing: 15px;
}

.padding-top {
  padding-top: var(--spacing);
}

/* reset to ensure consistent baseline on all browsers */
* {
  box-sizing: border-box;
}

/* reset to ensure consistent baseline on all browsers */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Default styling for all tags in <body> */
body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  text-align: center;
  font-size: 16px; /* 16px = min. for body text's accessibility */
  line-height: 1.3em;
}

/* Specifies font-seize and Weight: default values not inherited */
h1 {
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1em;
}

h2 {
  font-size: 2em;
  font-weight: 700;
  line-height: 1em;
  margin: 50px auto;
}

h3 {
  font-size: 1.8em;
  font-weight: 600;
  margin: 10px;
  line-height: 1em;
}

#home-page span {
  font-size: 1em;
  font-weight: bolder;
  -webkit-text-stroke: 0.25px #000;
};

/* Interactive Elements and Hover States */

/* default colour of all links */
a {
  color: #ff5e00;
  font-size: 20px;
}

/* Pseudo-classes for <a> */
a:visited {
  color: #a13b00;
  text-decoration: none;
  /* changes colour if ever visited before */
 }

a:active {
  color: #0432ff;
  /* changes colour of selected link */
}

/* default underlining of hypertext disappears when hovering over links w/ mouse or when targeted w/ a keyboard (ACCESSIBILITY)
 By default 'cursor: pointer; (cusor will appear has hand when hovering over) */
a:hover,
a:focus {
  text-decoration: none;
}

/* feedback to user: knows from nav bar that the non-underlined item =currently visited page */
/* .navigation-list__item--active {
  text-decoration: none;
} */

/* btn styling */
button,
.button {
  background-color: #ff5c00;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 24px;
  margin-right: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  /* shorthand: transition btw default and hover/focus states */
  -webkit-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  transition: background-color 0.3s ease;
}
button:hover,
button:focus,
.button:hover,
.button:focus {
  cursor: pointer; /* mouse appears as a hand when hovering */
  color: rgb(255, 255, 255);
  background-color: #00ffdd;
}

.button__secondary {
  background-color: #00ffdd;
  color: #ffff;
}

button__secondary:hover,
button__secondary:focus,
.button__secondary:hover,
.button__secondary:focus {
  cursor: pointer;
  color: rgb(255, 255, 255);
  background-color: #ff5c00;
}

.text-layout {
  text-align: justify;
  max-width: 100%;
  margin: 0 20px;
}

.container-padding {
  padding-top: 150px;
}

/*********************************************************** NAVIGATION BAR ***************************************/
/******************************* Navigation bar & logo *****************/
.profile {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/***************** HEADER (logo + nab bar = page full width *********************************************/
/* Flexbox: designs 1-dimensional layout, all content elements arranged in single row */
.page-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  padding: 20px;
  position: fixed; /* Fixes the header at the top */
  background-color: #fff;
  top: 0; /* Position at the top */
  left: 0;
  z-index: 1000; /* Ensure it stays on top of other elements */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow for better visibility */
}

/* no growing, ability to shrink, base width 70px */
.page-header__item {
  -webkit-box-flex: 0;
  -ms-flex: 0 1 70px;
  flex: 0 1 70px; /* referes to: flex-grow, flex-shrink, flex-basis */
}

.logo {
  height: 70px;
  margin-left: 20px;
}

/* nav bar: rest of width space, right aligned */
.page-header__item:last-child {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-grow: 1;
}

/* bullet points of unordered list styling */
.navigation-list {
  list-style-type: none;
}

/* align list item in a row: in inline-block fashion rather than li */
.navigation-list li {
  display: inline-block;
  margin-left: 15px;
}

/********************************** Hamburger menu ********************/
.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-icon .bar {
  width: 25px;
  height: 3px;
  background-color: #ff5c00;
  margin: 4px 0;
  transition: 0.4s;
}

@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .navigation-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; /* Adjust based on your header height */
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .navigation-list.active {
    display: flex;
  }

  .navigation-list li {
    display: block;
    margin: 10px 0;
    text-align: center;
  }

  .navigation-list a {
    color: #333;
  }
}

/************************** Animation nav bar ******/
div.container a {
  color: #ff5c00;
  text-decoration: none;
  margin: 0 10px;
  padding: 10px;
  position: relative;
  z-index: 0;
  cursor: pointer;
}

div.circleBehind a:before {
  position: absolute;
  top: 19px;
  left: 50%;
  width: 50px;
  height: 50px;
  border: 4px solid #00ffdd;
  -webkit-transform: translateX(-50%) translateY(-50%) scale(0.8);
  -ms-transform: translateX(-50%) translateY(-50%) scale(0.8);
  transform: translateX(-50%) translateY(-50%) scale(0.8);
  border-radius: 50%;
  background: transparent;
  content: "";
  opacity: 0;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  z-index: -1;
}

.circleBehind a:after {
  position: absolute;
  top: 19px;
  left: 50%;
  width: 50px;
  height: 50px;
  border: 4px solid #00ffdd;
  -webkit-transform: translateX(-50%) translateY(-50%) scale(0.8);
  -ms-transform: translateX(-50%) translateY(-50%) scale(0.8);
  transform: translateX(-50%) translateY(-50%) scale(0.8);
  border-radius: 50%;
  background: transparent;
  content: "";
  opacity: 0;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  z-index: -1;
}

div.circleBehind a:after {
  border-width: 2px;
  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  transition: all 0.4s;
}

div.circleBehind a:hover:before {
  opacity: 1;
  -webkit-transform: translateX(-50%) translateY(-50%) scale(1);
  -ms-transform: translateX(-50%) translateY(-50%) scale(1);
  transform: translateX(-50%) translateY(-50%) scale(1);
}

div.circleBehind a:hover:after {
  opacity: 1;
  -webkit-transform: translateX(-50%) translateY(-50%) scale(1.3);
  -ms-transform: translateX(-50%) translateY(-50%) scale(1.3);
  transform: translateX(-50%) translateY(-50%) scale(1.3);
}

/***************************************************************************** HOME SECTION ***********************************************/
#home-page {
  padding-top: 125px;
}

.hero-container {
  display: flex; /* Use flexbox */
  flex-wrap: wrap; /* Wrap elements to multiple lines on smaller screens */
  /* margin: 0px auto;
  max-width: 1536px;
  padding-left: 2.5rem;
  padding-right: 2.5rem; */
}

.profile-item {
  flex: 1 1 50%; /* Each item takes up 50% of available space */
  padding: 10px;
  text-align: center;
}

/* places img on page's left w/ text on its right side */
.profile__portrait {
  /* float: right;
  margin-right: 10%;
  margin-bottom: 10%; */
  border-radius: 50%; 
  width: 277px;
}

  /* .profile-item-left {
     text-align: center;
  }
.profile-item-right {
  display: inline-block;
} */

.greeting-msg {
  margin: 0 auto;
  font-size: 1.4em;
  text-align: center;
}

.buttons-icon {
  /* Ensure vertical alignment of elements in button */
  display: block;
  text-align: center;
  margin: 20px auto;
}

.button img,
.button span {
  vertical-align: middle;
  /* Ensure vertical alignment */
}

#download-CV {
  height: 20px;
  width: auto;
  margin-left: 4px;
  text-align: center;
  filter: invert(100%) sepia(5%) saturate(0%) hue-rotate(74deg) brightness(112%) contrast(101%); /* poperties for svg color: white */
}

.home-msg-intro {
  padding: 60px 20px 0;
  text-align: justify;
  font-size: larger;
}

.home-msg {
  padding: 20px 20px 0;
  text-align: justify;
};

/************************* SKILLS BAR ****************/
.skills-bar {
  padding-bottom: 5%;
  padding-top: 8%;
  text-align: center;
  width: 100%;
}

.skills-bar img {
  height: 33px;
  margin-right: 5px;
}

/************************* SKILLS TABLE ****************/
/* .skills-table {
  display: inline-block;
  clear: both;
} */

#tools-cards {
  display: -webkit-box;

  display: -ms-flexbox;

  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 20px;
}

.tools-cards_cards-container {
  text-align: center;
}

.tools-cards_col {
  margin: var(--spacing_s);
  padding: var(--spacing_s);
  /* max-width: 300px; */
  max-width: 100%;
  width: 100%;
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  -webkit-box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.34);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.34);
}

#tools-cards h4 {
  margin: var(--spacing_s);
  text-align: center;
  margin-top: 0;
}

.tech-card {
  background-color: #00ffdd;
  color: white;
  border-radius: 5px;
  padding: 2px 5px;
  white-space: nowrap;
  text-align: center;
  line-height: 2;
  font-weight: bolder;
}

/*********************************************************************** ABOUT SECTION  **************************************************/

#about-page {
  /* padding-top: 200px; */
  padding: 200px 20px 0;
  text-align: justify;
}

.about-container {
  display: flex; /* Use flexbox */
  flex-wrap: wrap; /* Wrap elements to multiple lines on smaller screens */
  margin: 0px auto;
  padding: 3%;
  max-width: 1400px;
  /* min-width: 900px; */
  align-items: center;
  justify-content: center;
  border: 1px solid #0000002b; /* Optional, for visualization */
}

.about-item {
  flex: 1 1 calc(15% - 60px); /* Each item takes up 50% of available space */
  padding: 10px;
  text-align: center;
}

#about-page img {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.09), 0 10px 9px -4px rgba(0, 0, 0, 0.57);
  border-radius: 3%;
}

#achievement-img,
#beyond-work-img {
width: 277px;
}

#goals-img,
#transition-img {
  width: 277px;
  margin: 0 auto;
  }

.about-item-text {
  flex: 1 1 calc(60% - 60px); /* Each item takes up 50% of available space */
  padding: 0 60px;
  text-align: justify;
}

#about-page span {
  font-weight: bolder;
}
/**************************************************************** WORK SECTION  **************************************************/
#work-page {
  padding-top: 125px;
}

/* start grid fallback */
.grid__item {
 display: inline-block;
 width: 50%;
 padding-bottom: 5px;
}
/* end grid fallback */

/* CSS Grid: designs 2-dimensional layouts w/ rows & columns */
@supports (display: grid) {
.grid__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  margin: 0px;
}

.grid__item {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 20px;
  -webkit-box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.34);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.34);
  text-align: center;
  padding-bottom: 5px;
  margin: 20px;
  font-size: 16px;
   width: auto;
   min-height: auto;
}

  /* Media query to form one column when the minimum width is reached */
@media (max-width: calc(333px * 2 + 100px)) {
    .grid__container {
      grid-template-columns: 1fr;
    }
  }
}

.tech-cards-container {
  padding: 2% 5%;
}

.project-description {
  text-align: justify;
  padding: 0 5%;
}

.project-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.project-links {
  display: inline-block;
  text-decoration: none;
  color: rgb(255, 106, 0);
  padding: 10px;
  margin: 0 5px; /* Adds space between the links */
}

.project-links:hover {
  color: blue;
}

.case-study-container {
  padding-top: 90px;
}

.img-case-study {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.case-study__screenshot {
  height: calc(100vh - 101.6px); /* Subtract the height of the navbar */
  width: 100vw;
  max-width: 100%; /* Prevents the image from being wider than the container */
}

/* Grid fallback */
/* .project-grid__item {
  display: inline-block;
  width: 33%;
  text-align: left;
} */

/* feature detection for browsers reccognising grid */
/* @supports (display: grid) {
 */
/* set grid container w/ general display values to be applied to all children
(doesn't work when same set to children) */
/* .project-grid {
    display: -ms-grid;
    display: grid; */

/* divides into 3 columns equal in size all available space using fraction unit.
  sets by default a grid-template-rows: auto */
/* -ms-grid-columns: 1fr 20px 1fr 20px 1fr;
    grid-template-columns: 1fr 1fr 1fr; */

/* blank cell-spacing gaps */
/* grid-gap: 20px;
    margin: 0%;
  } */

/* .project-grid__item {
    background-color: #ff6f0089;
    padding: 15px;
 */
/* why this 3 lines of code now? */
/* width: auto;
    min-height: auto;
    margin: 0;
  } */

/* .project-grid__item:last-child {
    -ms-grid-column: 3;
    grid-column: 3;
    grid-column-start: 3;
    -ms-grid-column-span: 0;
    grid-column-end: 3;
    -ms-grid-row: 1;
    grid-row: 1;
    grid-row-start: 1;
    -ms-grid-row-span: 2;
    grid-row-end: 3; */

/* or
  grid-column: 3 / 3;
  grid-row: 1 / 3; */
/* } */
/* } */

/* work project */
/* .project-grid {
  display: flex; */
/* grid-template-columns: 1fr 1fr 1fr; */
/* grid-gap: 10px;
  flex-wrap: wrap;
} */

/* responsive classes for different devices */
/* @media all and (max-width: 501px) {
  .project-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
} */

/* @media all and (min-width: 501px) and (max-width: 750px) {
  .project-grid {
    -ms-grid-columns: 1fr 20px 1fr;
    grid-template-columns: 1fr 1fr;
  }
}
 */
/* @media all and (max-width: 750px) {
  .project-grid {
    grid-gap: 10px;
  }

/* .project-grid__item:last-child {
  grid-column: auto / auto;
  grid-row: auto / auto;
} */

/* h1 {
    font-size: 22px;
  }
} */

/**************************************************************************** CONTACT SECTION ***************/
#contact-page {
  padding-top: 200px;
  margin-bottom: 10px;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 76%;
  margin: 20px auto;
}

.contact-grid-item {
  text-align: justify;
  margin: 20px;
  flex: 1 1 calc(100% - 50px); /* flex-grow, flex-shrink, flex-basis (Adjusts the width to 2 columns with gaps) */
  box-sizing: border-box; /* Ensures padding and border are included in the width calculation */
}

.contact-info {
  padding: 20px 0;
}

#User-name,
#User-email,
#User-msg {
  width: 100%;
  border-style: none;
  background-color: #17cbb314;
  padding: 0.5rem;
  margin: 15px auto 30px;
}

#User-msg {
  height: 5rem;
  margin-bottom: 5px;
}

.standard-label {
  font-weight: 700;
}

#call-icon {
  height: 26px;
  width: auto;
  margin-left: 4px;
  text-align: center;
  filter: invert(100%) sepia(5%) saturate(0%) hue-rotate(74deg) brightness(112%) contrast(101%); /* poperties for svg color: white */
}

/********************************************************************************************* FOOTER *********************************/
/* Flexbox: designs 1-dimensional layout, all content elements arranged in single row  */
.page-footer {
  clear: both; /* prevents footer affected by floated image: stays below, not next to it */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column; /* controls flow direction: top-to-bottom */
  text-align: center;
  background-color: #00ffdd96;
  /* #17cbb336 */
}

#medium-logo {
  width: 30px;
  height: 30px;
}

.social-media a {
  text-decoration: none; 
}

.impressum {
  font-size: 12px;
}

/**************************************** WEBKITS  *******************/
@media all and (min-width: 438px) {
  #goals-img,
  #transition-img {
    width: 400px;
    height: 250px;
    }
}

@media all and (max-width: 594px) {
  .skills-bar {
    padding-bottom: 5%;
    padding-top: 8%;
  }
}

@media (min-width: 658px) {

body {
  font-size: 18px;
  line-height: 1.5em;
}

#home-page, #about-page, #contact-page {
    padding-top: 180px;
}

#work-page {
  padding-top: 200px;
}

.profile-item {
  text-align: center;
}

.greeting-msg {
  font-size: 2em;
  line-height: 1.2em;
  text-align: left;
}

 .buttons-icon {
   text-align: left;
   margin: 0 auto;
}

.button {
  font-size: 20px;
  padding: 10px;
}

.home-msg {
  padding: 0 auto;
}

.skills-bar {
    padding-bottom: 5%;
    padding-top: 8%;
 }

.skills-bar img {
  height: 50px;
 } 

#tools-cards {
  margin: 0 20px;
 }

.tools-cards_col {
  max-width: 300px;
 }

.text-layout {
  margin: 0 auto;
  max-width: 71.3%;
 }

.grid__container {
  margin: 20px;
 }

.grid__item {
  padding-bottom: 20px;
  font-size: 18px;
 }

.contact-grid-item {
  margin: 20px;
  flex: 1 1 calc(50% - 50px);
  min-width: 274px;
 }

h3 {
  margin: 0px auto;
 } 
}

@media (min-width: 992px) and (max-width: 1200px) {

  .greeting-msg {
    font-size: 1.8em;
    line-height: 1.5em;
  }
}

@media all and (max-width: 1000px) {
  .case-study__screenshot {
    height: auto;
  }

  .goals-container {
    flex-direction: row; /* Default row direction for larger screens */
  }

  .goals-container .about-item {
    order: 2; 
    /* Place the image after the text */
    /* flex: 1 1 50%;  */
    /* Image takes 50% of the width */
  }

  .goals-container .about-item-text {
    order: 1; 
    /* Place the text before the image */
    /* flex: 1 1 50%;  */
    /* Text takes 50% of the width */
  }
}

@media all and (max-width: 800px) {
  .achievement-container,
  .hobbies-container{
    flex-direction: row; /* Default row direction for larger screens */
  }

  .achievement-container .about-item, 
  .hobbies-container .about-item {
    order: 2; 
    /* Place the image after the text */
    flex: 1 1 100%; 
  }

  .achievement-container .about-item, 
  .hobbies-container .about-item-text {
    order: 1; 
    /* Place the text before the image */
    flex: 1 1 100%; 
  }
}

@media (min-width: 786px) and (max-width: 992px) {

  .greeting-msg {
    font-size: 1.5em;
    margin-top: 20px;

  }
}

@media all and (min-width: 658px) and (max-width: 786px) {

  .skills-bar {
    padding-bottom: 5%;
    padding-top: 8%;
  }

  body {
    font-size: 17px;
    line-height: 1.5em;
  }

  .greeting-msg {
    font-size: 1.5em;
    text-align: left;
    margin-top: 20px;
   }
}

@media all and (min-width: 594px) and (max-width: 658px) {

  .greeting-msg {
    font-size: 1.5em;
    text-align: left;
    margin-top: 30px;
   }

  .buttons-icon {
    text-align: left;
  }

  .skills-bar {
    padding-bottom: 5%;
    padding-top: 8%;
  }
 }

