* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    max-width: 100%;
    max-height: 100%;
    background-image: url(jeff-trierweiler-d5YOnQDFAsw-unsplash.jpg);
    background-size: cover;
    scroll-behavior: smooth;
    /* background: aqua; */
}

nav {
    width: 80%;
   min-height: 70px;
    /* border: 1px solid red; */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background: linear-gradient(to right bottom, 
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.3)
    );
    background-size: cover;
    /* opacity: 0.1; */
    margin: auto;
    margin-top: 20px;
    border-radius: 50px;
}
.logo {
    display: flex;
    color: white;
    padding-left: 10px;
    font-size: larger;
    width: 20%;
    max-width: 20%;
    border-right: 4px solid silver;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.logo span {
    background-color: linear-gradient(45deg, silver, gold, aqua);
    background-image: linear-gradient(silver, gold, aqua);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-text-fill-color: transparent;
    font-size: x-large;
}

ul {
     display: flex;
     list-style: none;
     text-decoration: none;
     flex-direction: row;
     width: 80%;
     justify-content: center;
     align-items: center;
     justify-content: space-evenly;
}

nav ul li a {
    text-decoration: none;
    background-color: silver;
    border-radius: 30px;
    padding: 10px;
    color: white;
}

nav ul li a:hover {
    color: black;
    background-color: whitesmoke;
    transition: all 0.4s ease;
    font-size: large;
}

.hero-section {
    width: 80%;
    max-width: 80%;
    height: 600px;
    background: linear-gradient(to right bottom, 
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
    );
    margin: auto;
    margin-top: 50px;
    border-radius: 40px;
    display: flex;
    flex-direction: row;
    position: relative;
}

.hero-info {
    position: absolute;
    width: 60%;
    max-width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    padding-left: 70px;
    gap: 30px;
    top: 0;
    left: 0;
    bottom: 0;
}

.hero-image {
    width: 40%;
    display: flex;
    position: relative;
    /* border: 1px solid red; */
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
}
h1 {
    background-color: linear-gradient(45deg, silver, gold, aqua);
    background-image: linear-gradient(silver, gold, aqua);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-text-fill-color: transparent;
    /* color: linear-gradient(silver, gold, aqua); */
}

.hero-info p {
    color: silver;
}

.hero-image img {
    overflow: hidden;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    /* border: 1px solid red; */
    margin: auto;
    /* position: absolute; */
    display: flex;
    /* top: 0; */
    /* right: 0; */
}

.download-cv {
    margin-top: 20px;
}

.download-cv2:hover {
    font-size: large;
   font-weight: bolder;
   transition: all 0.5s ease;
}

.download-cv2 {
    text-decoration: none;
    color: white;
    border-radius: 30px;
    background: linear-gradient(to right bottom, silver, gold, aqua);
    padding: 7px;
   
}

.about-container {
    width: 80%;
    height: 500px;
    margin: auto;
    margin-top: 90px;
    display: flex;
    flex-direction: column;
    /* position: relative; */
}

.about-container h2 {
    text-align: center;
    color: silver;
    font-weight: bold;
    font-size: xx-large;
}

.all-card-container {
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    justify-content: space-evenly;
    gap: 120px;
}

.first-card-container {
    position: relative;
    /* border: 1px solid red; */
    width: 250px;
    height: 350px;
    /* background-color: green; */
}

.first-card {
    position: absolute;
    width: 100%;
    height: 100%;
    /* background: red; */
    transition: all 0.7s ease;
    transform-style: preserve-3d;
    /* opacity: 0.5; */
}

.first-card:hover {
    transform: rotatey(180deg);
}

.frontcard {
    position: absolute;
    background: rgba(50, 50, 50, 0.5);
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    text-align: center;
    border-radius: 30px;
    opacity: initial;
}

.backcard { 
    position: absolute;
    background: rgba(50, 50, 50, 0.5);
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    text-align: center;
    border-radius: 30px;
    opacity: 1;
}


.second-card-container {
    position: relative;
    /* border: 1px solid red; */
    width: 250px;
    height: 350px;
}

.second-card {
    position: absolute;
    width: 100%;
    height: 100%;
    /* background: red; */
    transition: all 0.7s ease;
    transform-style: preserve-3d;
    /* opacity: 0.5; */
}

.second-card:hover {
    transform: rotatey(180deg);
}

.ndfrontcard {
    position: absolute;
    background: rgba(50, 50, 50, 0.5);
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    text-align: center;
    border-radius: 30px;
    opacity: initial;
}

.ndbackcard { 
    position: absolute;
    background: rgba(50, 50, 50, 0.5);
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    text-align: center;
    border-radius: 30px;
    opacity: 1;
}

.third-card-container {
    position: relative;
    /* border: 1px solid red; */
    width: 250px;
    height: 350px;
}

.third-card {
    position: absolute;
    width: 100%;
    height: 100%;
    /* background: red; */
    transition: all 0.7s ease;
    transform-style: preserve-3d;
    /* opacity: 0.5; */
}

.third-card:hover {
    transform: rotatey(180deg);
}

.rdfrontcard {
    position: absolute;
    background: rgba(50, 50, 50, 0.5);
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    text-align: center;
    border-radius: 30px;
    opacity: initial;
}

.rdbackcard { 
    position: absolute;
    background: rgba(50, 50, 50, 0.5);
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    text-align: center;
    border-radius: 30px;
    opacity: 1;
}

@media screen and (max-width: 700px) {
    body {
        box-sizing: border-box !important;
        padding: 0;
        margin: 0;
    }

    .mynav {
        display: block;
        text-align: center;
    }
    .logo {
        display: block;
        width: 100%;
}

    .mynav ul {
        display: block;
        text-align: center;
        width: 100%;
        line-height: 70px;
    }

    .hero-section {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        max-width: 80%;
    }

    .hero-info{
        display: block;
        text-align: center;
        width: 100%;
    }
    .all-card-container {
        display: flex;
        flex-direction: column;
    }
}