:root {
  --primary-color: #267491;
  --secondary-color: #082d3a;
  --background-light: rgba(167, 184, 181, 0.3);
}

body {
    font-family: "Noto Serif Georgian", serif;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--primary-color);
}

h3 {
    font-family: "Open Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    height: 100%;
    margin-bottom: 20px;
}

h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary-color);
}

p {
    margin-bottom: 15px;
}

.ryplaContainer {
    max-width: 1100px;
    padding: 0;
}

.section {
    padding: 150px 0 150px 0;
}

@media (max-width: 768px) { 
    .ryplaContainer {
        width: 100%;
        padding: 0 25px 0 25px;
    }

    .section {
        padding: 100px 0 100px 0;
        hyphens: auto;
        text-align: justify;
    }

    h3 {
        text-align: left;
    }
}

.container-fluid {
    padding: 0;
}

/* Header */ 

header .ryplaContainer{
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 0 0 30px 0;
}

.navbar-nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: solid 2px var(--primary-color);
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.brand_logo {
    width: 230px;
}

@media (max-width: 768px) { 
    
    header .ryplaContainer {
        flex-direction: column-reverse;
    }

    nav.navbar.container.navbar-expand-lg > div.container-fluid {
        justify-content: flex-end;
        margin-top: 30px;
        padding: 0;
    }

    .navbar-toggler {
        margin-right: 20px;
    }
    
    .brand_logo {
        display: grid;
        align-items: start;
        margin-left: 20px;
    }

    .navbar-nav {
        flex-direction: column;
        border-bottom: none;
    }

    .nav-link {
        text-align: right;
        border-bottom: solid 1px var(--primary-color);
        margin-right: 20px;
    }
}


/* title section */

#title_section {
    padding: 0 0 30px 0;
    text-align: center;
}

.title_img {
    width: 80%;
}

@media (max-width: 768px) { 

    .title_img {
        width: 100%;
        margin-bottom: 25vh;
    }

}

/* services section */

#services_section {
    background-color: var(--background-light);
}

/* about section */

#about_section {
    padding-top: 150px;
    position: relative;
}

.about_grid {
    display: grid;
    grid-template-columns: 25% 37.5% 37.5%;
    grid-auto-rows: auto;
}

.about_grid p {
    height: 100%;
}

.about_pic {
    display: flex;
    align-items: center;
}

.about_grid img {
    border-radius: 50%;
    max-width: 195px;
    border: 1px solid var(--secondary-color);
}

.about_text {
  grid-area: 1 / 2 / 2 / 4;
}

.about_text p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) { 

    .about_grid {
        display: block;
    }

    .about_pic {
        display: flex;
        justify-content: center;
        margin-bottom: 40px;
    }

}

/* CV Part */

.cv_grid {
  display: grid;
  height: auto;
  grid-template-columns: 30% 70%;
  grid-auto-rows: auto;
}

.history {
    display: flex;
    grid-column: 2;
    margin-top: 30px;
}

.work_experience {
  text-align: right;
  grid-template-rows: repeat(9, auto);
  margin-right: 30px;
}

.work_experience, .education {
    display: grid;
    gap: 10px;
    height: 1000px;
}

.education {
    grid-template-rows: repeat(9, 1fr);
    margin-left: 30px;
}

.when, .where {
    margin: 0;
    line-height: 1.2;
}

.what {
  margin: 0;
}

.where {
    font-weight: 400;
    text-decoration: underline;
}

.what {
    color: var(--primary-color);
}

.vertical_line {
    width: 1px;
    height: 100%;
    background-color: var(--secondary-color);
    margin: 30px 40px 0 40px;
}

.edu-1{
    grid-row: 2;
}

.edu-2{
    grid-row: 5;
}

.edu-3{
    grid-row: 8;
}

.edu-4{
    grid-row: 9;    
}

@media (max-width: 768px) { 

    .cv_grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .work_experience {
        margin-right: 10px;
    }

    .education {
        margin-left: 10px;
        text-align: left;
    }
}

.decoration {
    position: absolute;
    z-index: -1; 
    pointer-events: none; 
}

.square {
    left: 30%;
    top: 60%;
    width: 700px;
    height: 700px;
    background-color: #cfc5bc4d;
    transform: translate(-50%, -50%) rotate(45deg);
} 

/**** Contact Section ****/

#contact_section {
    background-color: var(--background-light);
    padding-top: 150px;
    padding-bottom: 150px;
  }
  
  .contact_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  .contact_form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .contact_form label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
  }


  .contact_form input,
.contact_form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--secondary-color);
  border-radius: 5px;
  font-family: "Noto Serif Georgian", serif;
  font-size: 1rem;
}

  
  .contact_form button {
    width: 150px;
    padding: 10px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
  }

  .contact_form button:hover {
    background-color: var(--primary-color);
  }
  
  .contact_image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #cfc5bc4d;
    height: 100%;
  }
  
  .contact_image img {
    max-width: 100%;
    border: 1px solid var(--secondary-color);
  }

  @media (max-width: 768px) { 

    #contact_section {
        padding-bottom: 70px;
    }

    .contact_container {
        display: block;
    }
    
    .contact_form label {
        text-align: start;
    }

    .contact_form button {
        width: 100%;
        margin-bottom: 40px;
    }

    .contact_image {
       display: none;
    }
  }

  /**** eMail form pupup ****/

  .popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
  }
  
  .popup.fade-out {
    opacity: 0;
  }

/**** Footer ****/

footer {
    background-color: var(--secondary-color);
    height: 30vh;
    padding: 20px 5%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
}

footer p, footer a {
    color: #cfc5bc;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.contact_info {
    display: flex;
    gap: 10px;
    flex-direction: column;
    justify-content: center;
    grid-area: 1 / 1 / span 2 / 2;
}

footer a:hover {
    color: #a7b8b5; 
}

.impressum {
    grid-column: 3;
    text-align: right;
}

.adept {
    grid-row: 2;
    grid-column: 3;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    footer {
        display: block;
        height: 35vh;
    }

    .impressum {
        display: block;
        text-align: left;
        margin-top: 10px;
    }

    .adept {
        display: block;
        text-align: center;
        margin: 20px 0 10px 0;
    }
}

/* Cookie */

.cookie-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 9999;
  }

  .cookie-icon img {
    width: 60%;
    height: 60%;
  }

/* Impressum */

#impressum_section {
    overflow: hidden;
    position: relative;
    padding-top: 70px;
}

.rhombus {
  background: #a7b8b5;
  opacity: 30%;
  margin: 100px auto;
  width: 50%;
  height: 110%;
  top: 2%;
  transform: skewX(-40deg)
}

@media (max-width: 768px) { 
    .rhombus {
        width: 100%;
    }

}