/* Body and Background */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 400vh;
    margin: 0;
    background-image: url("https://groga.com.tr/pictures/bg.jpg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* Title and Text Styles */
#title {
    color: white;
    font-family: "Sigmar";
    font-weight: 100;
    font-size: 20px;
    text-align: center;
    margin-top: 20px;
    position: absolute;
    top: 3px;
}

#text,
#text1 {
    font-family: "Pacifico";
    font-weight: 400;
    font-style: normal;
    color: white;
    text-align: center;
    font-size: 40px;
    position: absolute;
    transform: translate(-50%, -50%);
}

#text {
    top: 47%;
    left: 48%;
}

#text1 {
    top: 53%;
    left: 52%;
}
/* Cards Container */
#mainprojects{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 60%;
    height: 70%;
    margin: auto;
}
/* Contact Section */
#cnt1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: "Sigmar";
    font-size: 30px;
    color: white;
    width: 60%;
    height: 11%;
    background-color: rgba(107, 106, 106, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin-top: auto;
    margin-bottom: 50px;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 80px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
}

.cart {
    font-family: "Montserrat";
    width: 190px;
    height: 254px;
    background-image: linear-gradient(to top,black,#2e1a47,#5c4bba,#9b59b6);
    transition: all 0.4s;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.705);
    font-size: 30px;
    font-weight: 900;
}

.cart:hover {
    border-radius: 15px;
    cursor: pointer;
    transform: scale(1.2);
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.705);
    background-image: linear-gradient(to top,black,#2e1a47,#5c4bba,#9b59b6);
}

.first-content {
    height: 100%;
    width: 100%;
    font-size: 20px;
    transition: all 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    border-radius: 15px;
}

.cart:hover .first-content {
    height: 0px;
    opacity: 0;
}

.second-content {
    height: 0%;
    width: 100%;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 15px;
    transition: all 0.4s;
    font-size: 0px;
    transform: rotate(90deg) scale(-1);
}

.cart:hover .second-content {
    opacity: 1;
    height: 100%;
    font-size: 1.3rem;
    transform: rotate(0deg);
}
.projects{
    color: white;
    font-family: "Montserrat";
    font-size: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}
/*Projects page cards*/
.cards {
    display: flex;
    gap: 20px;
    right:50%;
    top: auto;
    justify-content: center;
    align-items: center;
    width: fit-content;  
    padding: 20px;
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    top: 50px;
    height: 500px; 
    width: 300px; 
    border-radius: 10px;
    color: white;
    font-family: "Montserrat";
    font-size: 20px;
    cursor: pointer;
    transition: 400ms;
    filter: blur(0);
    transform: scale(1);
}

.card.left {
    background-color: #2e1a47;
}

.card.middle {
    background-color: #5c4bba;
}

.card.right {
    background-color: #9b59b6;
}

/* Apply hover effects  */
.card:hover {
    transform: scale(1.2);
    filter: blur(0);
}

/* Apply blur  */
.cards:hover .card:not(:hover) {
    filter: blur(5px);
    transform: scale(0.9);
}

.cards .card p.tip {
    font-size: 1em;
    font-weight: 700;
    gap: 5px;
}

.cards .card p.second-text {
    font-size: 20px;
    padding: 5px;
}
.egg{
    color: black;
    bottom: 0px;
    right: 0px;

}

/* Erasmus title*/
#E_title{
    font-family: "Montserrat";
    font-size: 40px;
    color: white;
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: center;
    bottom: -140%;
    left: auto;
}
/* Erasmus Project Part */ 
.e_card {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    bottom: 12%;
    left: auto;
    width: 80%;
    background-color: #242824;
    font-family: Montserrat;
    font-size: 30px;
    padding: 15px;
    border-radius: 6px;
    gap: 0.5rem;
    height: max-content;
  }
  .bar {
    width: 40px;
    border-radius: 5px;
    background-image: linear-gradient(to top,black,#2e1a47,#5c4bba,#9b59b6);
    transition: all 0.5s ease-in-out;
  }
  .e_card:hover .bar {
    margin-right: 5px;
  }
  .card_form {
    position: relative;
    min-width: 5em;
    min-height: 5em;
    border-radius: 4px;
    background-image: linear-gradient(to top right,black,#2e1a47,#5c4bba,#9b59b6);
    transition: 0.2s ease-in-out;
    overflow: hidden;
  }
  .card_data {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .card_button {
    color: #9147ff;
    margin-top: auto;
    font-size: 0.9em;
    transition: 0.2s ease-in-out;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-weight: inherit;
    text-align: left;
  }
  .card_button:hover {
    color: #28aea5;
    text-decoration: underline;
  }
  .text {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: 0.5em;
    color: white;
  }
  .text_m {
    font-size: 0.9em;
  }
  .text_s {
    color: #9147ff;
    font-size: 0.6em;
  }
  .text_d {
    font-size: 0.7em;
    display: -webkit-box;
    padding-top: 5px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .cube {
    width: max-content;
    height: 10px;
    transition: all 0.2s;
    transform-style: preserve-3d;
  }
  .e_card:hover .cube {
    transform: rotateX(90deg);
  }
  .side {
    width: max-content;
    height: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
  }
  .top {
    transform: rotateX(-90deg) translate3d(0, 0, 0em);
  }
  .front {
    transform: translate3d(0, 0, 1em);
  }

  /* Navigation Bar */
#navbar {
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    width: 200px;
}

#navbar a {
    color: white;
    text-decoration: none;
    padding: 10px;
    font-family: "Sigmar", serif;
    font-size: 16px;
}

#navbar a:hover {
    color: #301683;
}

#navbar2 {
    position: fixed;
    top: 10px;
    left: 80px;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    width: 200px;
}

#navbar2 a {
    color: white;
    text-decoration: none;
    padding: 10px;
    font-family: "Sigmar", serif;
    font-size: 16px;
}

#navbar2 a:hover {
    color: #301683;
}

#navbar3 {
    position: fixed;
    top: 10px;
    left: 170px;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    width: 200px;
}

#navbar3 a {
    color: white;
    text-decoration: none;
    padding: 10px;
    font-family: "Sigmar", serif;
    font-size: 16px;
}

#navbar3 a:hover {
    color: #301683;
}

#navbar4 {
    position: fixed;
    top: 10px;
    left: 260px;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    width: 200px;
}

#navbar4 a {
    color: white;
    text-decoration: none;
    padding: 10px;
    font-family: "Sigmar", serif;
    font-size: 16px;
}

#navbar4 a:hover {
    color: #301683;
}

/* Social Media Links */
a {
    position: fixed;
    font-size: 30px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

#instagram-link {
    top: 20px;
    right: 20px;
    color: #E1306C;
    transition: all;
    transition-duration: 0.3s;
}

#linkedin-link {
    top: 20px;
    right: 80px;
    color: #0077b5;
    transition: all;
    transition-duration: 0.3s;
}
#github-link{
    top: 20px;
    right: 140px;
    color: #5716a6;
    transition: all;
    transition-duration: 0.3s;
}

#linkedin-link:hover {
    color: #006097;
    transform: scale(1.1);
}

#instagram-link:hover {
    color: #cb2d61;
    transform: scale(1.1);
}

#github-link:hover {
    color: #3e176b;
    transform: scale(1.1);
}