* {
    box-sizing: border-box;
}

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: rgb(225, 226, 226);
    margin: 0;
    padding: 0;
    height: 100%;
}

hr.dotted {
    border-top: 10px dotted rgb(158, 201, 207);
}


/*frame*/
.frame {
    background-color: rgb(158, 201, 207);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    margin: 50px auto;
    overflow: auto;
}

/*Header*/
.cover {
    width: 100%;
    height: 200px;
    background-image: url(assets/cover.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;

}

.container {
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.photo {
    display: block;
    object-fit: cover;
    margin: auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-top: -150px;
    box-shadow: 2px 4px 15px rgb(2, 2, 2);
}

h1 {
    margin-top: 10px;
    font-size: 2.5em;
    color: rgb(86, 123, 129);
    text-align: center;
    font-family: cursive;
}

.social {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.social a:hover img {
    transform: scale(1.2);
    opacity: 0.5;
}

.social a:visited img {
    transform: scale(1);
    opacity: 0.8;
}

.social a:active img {
    transform: scale(0.9);
}

.link-grid a:first-child {
    background-color: rgb(66, 101, 107);
    color: white;
    border-radius: 15px;
    padding: 10px;
    transition: 0.3s;
}
.link-grid a:first-child:hover {
    background-color: rgb(9, 158, 174);
    transform: scale(1.05);
}

.link-grid a:last-child {
    border: 2px solid rgb(86, 123, 129);
    color: rgb(86, 123, 129);
    border-radius: 15px;
    padding: 10px;
    background-color: rgb(255, 255, 255);
    transition: 0.3s;
}

.link-grid a:nth-child(3) {
    background-color: rgba(43, 119, 111, 0.792);
    border-radius: 12px;
    padding: 10px;
}

.about ul li:nth-of-type(1) {
    border-left: 4px solid rgb(30, 106, 111);
    padding: 5px 10px;
    border-radius: 5px;
}


/*content*/
.link {
    background-color: rgb(169, 150, 135);
    display: block;
    justify-content: center;
    text-align: center;
    width: 200px;
    height: 50px;
    border-radius: 15px;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 12px;
}

.link:hover {
    background-color: rgb(167, 186, 147);
    transform: scale(1.05);
}

.link-grid {
    column-gap: 40px;
    margin-top: 30px;
    row-gap: 10px;
    display: grid;
    justify-content: center;
    padding: 10px;
    grid-template-columns: repeat(2, auto);
}

.right {
    float: right;
    width: 140px;
    margin: 10px;
    border-radius: 20px;
    box-shadow: 2px 2px 5px rgb(2, 2, 2);
}


.about-title {
    display: flex;
    align-content: center;
    margin-left: 30px;
    margin-top: 10px;
}

.about {
    display: grid;
    justify-content: center;
    margin: 30px;
    margin-top: 0;
    gap: 1px;
    clear: left;
}

.about ul {
    margin: 0;
}


.description {
    margin-top: 0;
    font-size: 19px;
    padding-right: 20px;
}

.list ul{
    list-style: none;
    padding: 15px;
    margin:0;
}

/*email*/
.email-sect {
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 10px;
}

input[type="email"] {
    width: 80%;
    padding: 10px;
    margin-bottom: 15px;
    border: 3px solid #8baad4;
    border-radius: 10px;
    font-size: 16px;
}

label[for="email"] {
    display: flex;
    font-weight: bold;
    justify-content: center;
}

.subs {
    background-color: #8baad4;
    display: flex;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    width: 100px;
    height: 50px;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    transition: background-color 0.3s ease-in-out;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
}

.subs:hover {
    background-color: rgb(86, 123, 129)
}

form {
    display: flex;
    align-items: center;
    width: 80%;
    flex-direction: column;
    gap: 10px;

}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    color: rgb(86, 123, 129);
}

/*Header*/
    /*Navigation bar*/
.barnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(86, 123, 129);
    border-radius: 20PX;
    padding: 15px 30px;
    gap: 20px;
}

.logo {
    color: white;
    font-size: 1.3rem;
    font-family: cursive;
}

.nav-links{
    display: flex;
    gap:30px
}

.barnav a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 8px 20px;
    text-decoration: none;
    font-size: 17px;
    border-radius: 20px;
}

.barnav a:hover {
    background-color: rgb(167, 186, 147);
    border-radius: 20px;
}

.barnav a.active {
    background-color: rgb(115, 94, 55);
    border-radius: 20px;
}

.magnifier {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 30px;
    padding: 5px 10px
}

.magnifier input {
    border: none;
    padding: 5px;
    width: 200px;
}

.magnifier button {
    background: none;
    border: none;
    cursor: pointer;
}

.magnifier img {
    width: 17px;
    height: 17px;
    transition: 0.2s;
}

/*hero section*/
body.home .hero{
    position:relative;
    height: 100vh;
    width:100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.home .heroimg{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit:cover;
    object-position: center;
    border-radius: 20px;
}

body.home .herotext{
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 600px;
    padding:0 20px
}

body.home .herotext p{
    font-size: 1.2em;
}

body.home .herotext h1{
    font-size: 4em;
    color:#ffffff;
}

body.home .hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}

.button{
    border-radius: 5px;
    background-color: rgb(167, 186, 147) ;
    border: none;
    color:#ffffff;
    text-align: center;
    font-size: 20px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding:20px;
    width:200px;
    transition: all 0.4s;
    cursor:pointer;
    margin:5px;
}

.button span{
    cursor:pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.button span:after{
    content:'\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition:0.4s;
}

.button:hover span{
    padding-right: 25px;
}

.button:hover span:after{
    opacity:1;
    right:0;
}

.rightbig{
    float: right;
    width: 300px;
    border-left: 10px;
    border-right: 10px;
    border-radius: 20px;
    box-shadow: 2px 2px 5px rgb(2,2,2);
    margin-top: -20px;
}

.leftbig{
    float: left;
    width: 300px;
    border-left: 10px;
    border-right: 10px;
    border-radius: 20px;
    box-shadow: 2px 2px 5px rgb(2,2,2);
}

.textright{
    flex:1;
    color:black;
    font-size:19px;
}


/*My best work section*/
.highlights{
    position: relative;
    width: 90%;
    max-width: 900px;
    margin:auto;
    overflow: hidden;
}

.slides{
    display: flex;
    width:200%;
    transition:transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.group{
    display:flex;
    width:50%;
    justify-content:space-between;
}

.img{
    width: 30%;
    text-align: center;
}

.img p{
    margin-top:10px;
    color:black;
    text-align: center;
}

.img img{
    width:100%;
    height:300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 2px 2px 5px rgb(2,2,2);
}

input[type="radio"]{
    display:none;
}

#p1:checked ~ .slides{
    transform: translateX(0);
}

#p2:checked ~ .slides{
    transform: translateX(-50%);
}

#p1a:checked ~ .slides{
    transform: translateX(0);
}

#p2a:checked ~ .slides{
    transform: translateX(-50%);
}

#p1b:checked ~ .slides{
    transform: translateX(0);
}

#p2b:checked ~ .slides{
    transform: translateX(-50%);
}


.control{
    position:absolute;
    display:flex;
    top:40%;
    transform: translateY(-50%);
    width: 100%;
    justify-content: space-between;
    pointer-events: none;
}

.arrow{
    font-size: 30px;
    color:black;
    cursor:pointer;
    user-select: none;
    background-color: rgb(167, 186, 147);
    border-radius:10px;
    padding:10px 15px;
    pointer-events: all;
    transition: linear 0.3s;
}

.arrowleft:hover,
.arrowright:hover{
    background:#8baad4;
}

.arrowleft{
    margin-left: 15px;
}

.arrowright{
    margin-right:15px
}

#p1:checked ~ .control .arrowleft {
    pointer-events: auto;
}

#p2:checked ~ .control .arrowright {
    pointer-events: auto;
}


/*informtion 2*/
.about-title h2{
    margin-bottom: 15px;
    color:black
}

.description2{
    float:right
}

.textandimage{
    display:flex;
    align-items: center;
    justify-content: space-between;
    gap:40px;
    max-width: 1000px;
    margin:60px auto;
    padding:20px;
}

/*Flip card*/
.wrap{
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap:50px;
    width:90%;
    max-width:1000px;
    margin:40px auto;
    flex-wrap: nowrap;
}


.flip {
    background-color: transparent;
    width: 250px;
    height: 320px;
    perspective: 1000px;
    border-radius: 20px;
}

.inner {
    position: relative;
    text-align: center;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip:hover .inner {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.back {
    background-color: rgb(158, 201, 207);
    transform: rotateY(180deg);
    border-radius: 20px;
    display: flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
}

.back a{
    display:inline-block;
    margin:5px;
    text-decoration: none;
    border:none;
}

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

/*More Information*/
.info-list{
    list-style:none;
    padding:0;
    line-height: 1.6;
    font-size: 19px;
}

.info-list li{
background-color: #8baad4;
padding:8px 12px;
border-radius:10px;
margin-bottom:8px;
box-shadow:0 2px 4px rgba(0,0,0,0.1);
}

/*Footer*/
footer{
    background-color: rgb(86, 123, 129);
    padding: 40px 0 20px;
    color: #ffffff;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    border-top: 2px solid rgb(53, 77, 81);
}

.containerfoot{
    width: 90%;
    max-width: 1000px;
    margin:auto;
    display:flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
}

.logo{
    flex: 1 1 200px;
    text-align: left;
}

.logo p{
    font-size: 30px;
}

.contact{
    flex:1 1 200px;
}

.contact a{
    color:#caccd0;
    text-decoration: none;
}

.contact a:hover{
    text-decoration: underline;
}

.linkfoot{
    flex:1 1 200px;
}

.linkfoot ul{
    list-style: none;
    padding: 0;
    margin:0;
}

.linkfoot li{
    margin:14px;
}

.socialfoot{
    flex: 1 1 200px;
    text-align: center;
}

.sociallogos{
    display: flex;
    justify-content: center;
    align-items: center;
    gap:25px;
}

.socialfoot img:hover{
    transform:scale(1.1);
}

.last{
    text-align: center;
    padding-top: 10px;
    margin-top: 50px;
    border-top: 1px;
    font-size: 12px;
    color:#caccd0;;
}

/*My creations page start*/
/*hero section*/
.hero2{
    display:flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    overflow: hidden;
    background-color: #caccd0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.hero2content{
    display:flex;
    padding: 0 60px;
    justify-content: center;
    align-items: center;
}

.herotext2{
    max-width: 500px;
    font-size: 20px;
}

.hero2wrap{
    flex:1.1;
    height:100%
}

.hero2img{
    width: 100%;
    height: 100%;
    object-fit:cover;
}

#buttonc{
    display: flex;
    align-items: center;
    margin: 0 auto;
}

/*More information*/
.coverl{
    margin: 20px;
    font-size: 20px;
}

.cltitle{
    text-align: center;
}

/*Cards about my skills*/
.cards{
    text-align: center;
    padding: 60px 20px;
    background-color: rgb(211, 216, 207);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.cards h2{
    font-size: 30px;
    font-style: oblique;
    margin-top: -30px;
}

.containerscard{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap:20px;
    padding:40px;
}

.card{
    background:rgb(167, 186, 147) ;
    border-radius: 10px;
    padding:20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover{
    transform: translateY(-5px);
    box-shadow:  2px 4px rgba(0,0,0,0.1);
}

/*FAQ*/
.faqcontainer {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.faqitem {
    margin-bottom: 15px;
    border-bottom: 1px solid #eeee;
    padding-bottom: 10px;
}

.faq-question {
    font-weight: bold;
    cursor: pointer;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faqitem input{
    display: none;
}

.faq-question::after{
    content:'+';
    font-size: 1.3em;
    color:#8baad4;
}

.faqanswer{
    overflow: hidden;
    max-height: 0;
}


.faqitem input:checked ~ .faqanswer{
    max-height: 200px;
    padding:10px 0;
}

/*UGC Portfolio*/
.hero3{
    display:flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    height: 100vh;
    overflow: hidden;
    background-color: #caccd0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.hero3content{
    display:flex;
    padding: 0 60px;
    justify-content: center;
    align-items: center;
}

.herotext3{
    max-width: 500px;
    font-size: 20px;
}

.hero3wrap{
    flex:1.1;
    height:100%
}

.hero3img{
    width: 100%;
    height: 100%;
    object-fit:cover;
}

#buttonc{
    display: flex;
    align-items: center;
    margin: 0 auto;
}

/*Process*/
.process{
    display:flex;
    justify-content: space-between;
    align-items: start;
    margin: 20px auto;
    max-width: 1000px;
}

.step{
    text-align: center;
    flex: 1;
    position: relative;
    padding: 20px;
}

.step span{
    display: inline-block;
    background: rgb(167, 186, 147);
    border-radius: 50%;
    padding:15px 20px;
    font-weight: bold;
    font-size: 2em;
}

.step:last-child::after{
    display: none;
}

/*list*/
.styletable{
    width:100%;
    margin: 10px auto;
    display:flex;
    justify-content: center;
    margin-bottom: 50px;
}

.styletable th{
    background-color: #657d9f;
    color:white;
    text-align: center;
}

.styletable th, td{
    padding: 15px 20px;
}

.styletable tr:nth-child(even){
    background-color: #bec5d1ee;
}
