:root {
    --text: #fafafa;
    --subtext: #DED4D4;
    --background: #1f1f1f;
    --container: #272626;
    --primary: #c2afb0;
    --secondary: #5f5248;
    --accent: #928570;
    --headlinegradient: linear-gradient(90deg, #fafafa 0%, #5f5248 100%);
    --headlinegradientunderline: linear-gradient(90deg, #5f5248 0%, #fafafa 100%);
    --boxgradient: linear-gradient(90deg, #5f5248 0%, #fafafa 100%);
    --boxbackground:rgba(22, 22, 22, 0.7);
    --shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
    --wh: #fafafa;
    --footer: #000000;
    --boxbg: #CFCFCF;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background-color: var(--background); 
  font-family: "Montserrat", sans-serif;
  color: #ffffff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

p {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  color: var(--wh);
  font-size: 30px;
  font-weight: 400;
}

/* Sidebar */
.scroll-line {
  position: fixed;
  top: 0;
  left: 75px;
  width: 2px;
  height: 100vh;
  background-color: var(--primary);
  z-index: 9999;
  box-shadow: var(--shadow);
}

.circle {
  position: fixed;
  z-index: 9998;
  margin-left: -12px;
  width: 26px;
  height: 26px;
  border-radius: 50%; 
  background-color: var(--boxbg); 
}
.side-title {
  text-shadow: var(--shadow);
  margin-left: 20px;
  font-size: 22px;
}

.side-title:hover {
  color: var(--primary);
}





/* Background Image */
.welcome-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/background.avif'); 
  background-size: cover;
  background-position: top center;
  z-index: -1;
  overflow: hidden;
}


/* Headline */
.welcome-container {
  font-family: "Montserrat", sans-serif;
  position: relative;
  text-align: left;
  margin-left: 14%;
  margin-top: 18%;
}

.welcome-stroke {
  font-size: 80px;
  background: var(--headlinegradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  margin-bottom: 5px; 
  text-transform: capitalize;
}

.welcome-stroke::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px; 
  width: 55%;
  height: 4px; 
  background: var(--headlinegradientunderline);
}

.welcome-subtitle {
  font-size: 25px; 
  color: var(--primary);
  position: relative;
}

.welcome-subtitle span {
  display: inline;
  padding: 0 5px;
}


.welcome-subtitle span:not(:last-child)::after {
  content: " |";
}

.theme-toggle-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  background-color: var(--wh);
}


/* About */
.spacer {
  text-align: center;
  margin: 20px auto;
}

.welcome-spacer {
  margin-top: 28%;    
}

h3 {
  display: inline-block;
  position: relative;
}

h3::after {
  margin-left: 400px;
  left: 100%;
}

h3::before, h3::after {
  content: "";
  position: absolute;
  border-top: 2px solid var(--primary);;
  top: 50%;
  width: 200px;
}

h3::before {
  margin-right: 400px;
  right: 100%;
}

/* Responsive */
@media (max-width: 1400px) {
  h3::before, h3::after {
      all: unset;
  }
}

.title {
  font-family: "Montserrat", sans-serif;
  font-style: normal;    
  color: #FBFBFB;
  font-weight: 500;
  font-size: 50px;
}

.underline{
  border-bottom: 2px solid var(--secondary);
  width: 200px;
}


/* About Content */
.box-text {
  margin-left: 12%;
  color: var(--wh);
}

.title-box {
  margin-bottom: 20px;
  margin-top: 10%;
  margin-left: 12%;
  font-style: normal;    
  color: var(--wh);
  font-weight: 600;
  font-size: 50px;
}

.text-red {
  color: var(--primary);
  text-shadow: var(--boxbackground);
}

.box-text {
  margin-left: 12%;
  color: var(--wh);
  font-style: normal;  
}



/* Skills content */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 15px;
  justify-content: center;
  max-width: 1000px; 
  margin: 0 auto; 
  padding: 10px;
}

.grid-definer {
  position: relative; 
  background-color: #e0e0e0;
  border-radius: 8px; 
  padding: 4px;
}

.small {
  grid-column: span 1;
}

.large {
  grid-column: span 2;
}

.skills {
  background: var(--boxgradient);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.inner-content {
  background-color: var(--boxbackground);
  border-radius: 20px;
  padding: 40px;
  flex-grow: 1;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.box-titel {
  text-shadow: var(--shadow);
  margin-left: 20px;
  color: var(--wh);
  font-weight: 600;
  text-decoration: underline 2px solid var(--secondary);
  border-bottom: 2px solid var(--wh);
  width: 20px;
}

.skills-text, .button-skills-text {
  font-family: Arial, sans-serif;
  color: var(--wh);
  font-weight: 300;
  font-size: 25px;
  margin-left: 20px;
}

/* Responsive Skills section */
@media (max-width: 1024px) {
  .grid-container {
      grid-template-columns: 1fr 1fr;
  }

  .large {
      grid-column: span 2;
  }

  .circle-box {
      left: 250px; 
  }
}

@media (max-width: 768px) {
  .grid-container {
      grid-template-columns: 1fr;
  }

  .small, .large {
      grid-column: span 1;
  }

  .circle-box {
      left: 500px; 
  }
}

@media (max-width: 600px) {
  .grid-container {
      grid-template-columns: 1fr;
  }

  .small, .large {
      grid-column: span 1;
  }
}

/* Hobbys section */
.project-vertical-spacer {
  margin-top: 7%;
}


/* Hobbys content */
.project-tender {
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
  display: flex;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}

.gradient-bg {
  background: var(--boxgradient);
  text-align: center;
  border-radius: 20px;
  width: 255px;
  padding: 3px 42px;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow);
}

.project {
  position: relative; 
  background: var(--p-b);
  text-align: center;
  border-radius: 20px;
  width: 250px;
  padding: 40px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow);
  overflow: hidden; 
}

.img-bg {
  max-width: 400px;
  height: auto;
  background: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
}

.hb {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px; 
  background-color: rgba(39, 39, 39, 0.6);
  border-radius: 0 0 20px 20px; 
}

.p-content {
  margin-left: 2rem;
  text-align: left;
  background: none;
  color: var(--background);
  position: absolute;
  z-index: 3; 
}

.p-title{
  color: var(--wh);
  background: none;
  font-size: 2rem;
}

.p-title::selection {
  background: var(--purple);
  color: var(--background);
}


.p-info{
  color: var(--wh);
  background: none;
  font-size: 1rem;
}

.p-info::selection {
  background: var(--purple);
  color: var(--background); 
}



/* Responsive Image*/

.image-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.image-grid.single-column {
  grid-template-columns: 1fr;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.image-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.7);
}

@media (max-width: 1024px) {
  .image-grid {
      grid-template-columns: 1fr;
  }
}

/* Download Button */

.download-button {
  background: rgb(255, 255, 255);
  color: #000;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-left: 45%;
  margin-top: 2%;
}

.download-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(255, 255, 255, 0.7);
}

.download-button:active {
  transform: scale(0.98);
}

/* Footer content */
footer {
  border-top: 2px solid var(--secondary); 
  background-color: var(--footer); 
  color: var(--text);
  padding: 20px 0;
  margin-top: 5%;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap;
}

.footer-section {
  margin: 10px 0; 
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  text-align: center;
}

.footer-left {
  text-align: left;
  margin-left: 5%; 
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

.footer-content a {
  font-size: 20px;
  text-decoration: none;
  color: var(--wh);
  margin: 0 10px;
}

.footer-content a:hover {
  text-decoration: underline;
}