*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}

/* header */
header{
    width: 100%;
    min-height: 100vh;
    background-color: #e5f0f3;
}
/* navbar */
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

/* logo */
.logo{
    width: 80px;
    height: 3%;
}
.logo img{
    width: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-position: center;
}

/* nav links */
.nav-links ul li{
    list-style-type: none;
    display: inline-block;
    margin: 8px 40px;
}
.nav-links ul li a{
    text-decoration: none;
    color: #ff7f8e;
    font-family: "Style Script", cursive;
    font-size: 2rem;
    font-weight: bold;
}

/* contact button */
.contact-btn button{
    outline: none;
    border: none;
    padding: 8px 15px;
    background-color: #ff7f8e;
    border-radius: 8px;
    font-family: "Style Script", cursive;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 3s ease;
}
button a{
    text-decoration: none;
    color: #000;
}
.contact-btn button:hover {
    background: linear-gradient(90deg, #ff7f8e, #ffc1a1);
}

/* banner content */
.banner{
    width: 100%;
    margin: 0;
    padding: 0;
    height: calc(100vh - 130px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    background-color: #e5f0f3;
}
.banner .curve{
    flex-basis: 32%;
    position: relative;
    left: 0;
    width: 450px;
    height: 450px;
    background-color: #dbd9d9;
    border-radius: 0% 50% 50% 0%;
    z-index: 1;
}
.curve img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    animation: moveImage 3s ease-in-out infinite alternate;
}
@keyframes moveImage {
    0% {
        transform: translate(-50%, -50%) translateX(0);
    }
    100% {
        transform: translate(-50%, -50%) translateX(25px);
    }
}
.banner-content {
    flex-basis: 68%;
    padding: 10px;
    text-align: justify;
    color: #202020;
    font-family: 'Poppins', sans-serif;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
    color: #ff7f8e;
}
.banner-content p {
    font-size: 1.2rem;
    line-height: 1.6;
}
.cakes-btn{
    margin: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cakes-btn button{
    padding: 10px 30px;
}

/* main */
#cakes{
    background-color: rgb(255, 215, 227);
    padding: 40px;
}
.cakes h2{
    font-size: 2rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
}
.our-cakes{
    display: flex;
    flex-wrap: wrap;
}
.cake-card{
    flex-basis: 31.7%;
    height: 250px;
    margin: 10px;
    margin-bottom: 10px;
    padding: 20px;
    border-radius: 8px;
}
.cake-card:nth-child(1){
    background-color: #ffc1a1;
}
.cake-card:nth-child(2){
    background-color: #dcff9c;
}
.cake-card:nth-child(3){
    background-color: #f583ff;
}
.cake-card:nth-child(4){
    background-color: #f5d469;
}
.cake-card:nth-child(5){
    background-color: #b3d6ff;
}
.cake-card:nth-child(6){
    background-color: #a7fc9c;
}
.cake-card .card-img{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.card-img img{
    overflow: hidden;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
}
.card-img img:hover{
    opacity: 0.7;
}
.card-img h3{
    font-size: 1.5rem;
    font-family: "Style Script", cursive;
}
.card-img h3 i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.cake-card:hover i {
    transform: rotate(30deg); 
}
.cake-content p{
    color: #202020;
    font-family: 'Poppins', sans-serif;
    text-align: justify;
}
/* parallax section */
.parallax-section{
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
}
#cake-parallax{
    background-image: url("../img/parallax-cakes.png");
}

/* popular cakes */
#popular-cakes{
    background-color: rgb(212, 253, 202);
    padding: 40px;
}
.popular-cakes h2{
    font-size: 2rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
}
.most-popular-cake{
    display: flex;
    flex-wrap: wrap;
}
.popular-cake-card{
    flex-basis: 31.7%;
    margin: 10px;
    margin-bottom: 10px;
    padding: 20px;
    border-radius: 8px;
}
.popular-cake-img{
    position: relative;
    overflow: hidden;
    height: 350px;
    border-radius: 10%;
}
.popular-cake-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    border-radius: 10%;
}
.popular-cake-img:hover img {
    transform: scale(1.1);
}
.popular-cake-content h2{
    font-size: 1.5rem;
    font-family: "Style Script", cursive;
    padding: 2px;
    margin-bottom: 0;
    text-align: center;
}
.popular-cake-content h4{
    font-family: 'Poppins', sans-serif;
    text-align: center;
}
/* quality section */
#quality{
    background-color: #e8ffc3;
    padding: 40px;
}
.quality h2{
    font-size: 2rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
}
.qualities{
    display: flex;
    flex: wrap;
}
.qualities .cake-img{
    flex-basis: 49%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cake-img .quality-curve{
    position: relative;
    width: 300px;
    height: 250px;
    background-color: #202020;
    border-radius: 10% 40% 8% 50%;
}
.quality-curve img{
    position: absolute;
    width: 100%;
    height: 100%;
    top:0;
    object-fit: cover;
    border-radius: 10% 40% 8% 50%;
}
.our-qualities{
    flex-basis: 49%;
    display: flex;
    flex-direction: column;
}
.quality-card{
    flex-basis: 100%;
    height: 100px;
    margin: 10px;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
}
.quality-card:nth-child(odd){
    background-color: #ffc983;
}
.quality-card:nth-child(even){
    background-color: #d097ff;
}
.quality-card i{
    font-size: 2.5rem;
}
.quality-card p{
    font-family: 'Poppins', sans-serif;
}

/* contact */
#contact{
    background-color: #f1f1f1;
    padding: 40px;
}
.contact h2{
    font-size: 2rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 30px;
}
.contact-us{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.address{
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
}
.social-media-links{
    display: flex;
    align-items: center;
}
.social-media-links a{
    text-decoration: none;
    color: #202020;
    margin-right: 10px;
    font-size: 1.2rem;
}
.social-media-links a:hover i{
    color: #ff7f8e;
}
footer{
    background-color: #fde3cd;
    font-family: 'Poppins', sans-serif;
    padding: 20px;
    text-align: center;
}


/* media queries */
@media screen and (max-width:1305px) {
    .banner .curve{
        background-color: #e5f0f3;
        border-radius: none;
        flex-basis: 20%;
        width: 250px;
        height: 250px;
    }
    .curve img{
        width: 250px;
        height: 250px;
    }
    .banner-content{
        flex-basis: 75%;
    }
    .cake-card{
        flex-basis: 48%;
    }
    .popular-cake-card{
        flex-basis: 48%;
    }
}
@media screen and (max-width:1150px) {
    .banner .curve{
        background-color: #e5f0f3;
        border-radius: none;
        flex-basis: 20%;
        width: 225px;
        height: 225px;
    }
    .curve img{
        width: 225px;
        height: 225px;
    }
    .map{
        flex-basis: 100%;
    }
    .map iframe{
        width: 100%;
    }
    .address{
        margin-top: 15px;
    }
}
@media screen and (max-width:1080px) {
    .banner .curve{
        background-color: #e5f0f3;
        border-radius: none;
        flex-basis: 20%;
        width: 200px;
        height: 200px;
    }
    .banner-content h2 {
        font-size: 2.3rem;
    }
    .curve img{
        width: 200px;
        height: 200px;
    }
    .banner-content{
        flex-basis: 75%;
    }
    .cake-card{
        flex-basis: 47%;
    }
    .popular-cake-card{
        flex-basis: 47%;
    }
}
@media screen and (max-width:920px) and (orientation: portrait){
    .banner{
        flex-direction: column;
        padding: 30px;
        height: auto;
    }
    .banner .curve {
        width: 100%; 
        height: 200px; 
        border-radius: 0;
        background-color: transparent; /* Remove background color for smaller screens */
    }
    .curve img {
        width: 150px;
        height: 150px;
    }
    .banner-content h2{
        margin-top: 60px;
    }
}
@media screen and (max-width:890px) {
    .cake-card{
        flex-basis: 100%;
    }
    .popular-cake-card{
        flex-basis: 100%;
    }
    .popular-cake-img{
        height: 450px;
    }
}
@media screen and (max-width:675px){
    header{
        height: auto;
    }
    .nav-links{
        display: none;
    }
    #cake-parallax{
        background-image: url("../img/cake-parallax.jpg");
    }
    #cakes,#quality,#popular-cakes,#contact{
        padding: 20px;
    }
    .card-img h3{
        font-size: 1rem;
    }
    .qualities{
        display: flex;
        flex-direction: column;
    }
    .qualities.reversed{
        flex-direction: column-reverse;
    }
}
@media screen and (max-width:450px) {
    .curve img {
        width: 130px;
        height: 130px;
    }
    .banner-content h2{
        margin-top: 70px;
        font-size: 1.5rem;
    }
    .banner-content p{
        font-size: 1rem;
    }
    .cake-card{
        height: 270px;
    }
    .card-img img{
        width: 95px;
        height: 95px;
    }
}
@media screen and (min-width: 300px) and (max-width: 1200px) and (orientation: landscape) {
    header{
        height: auto;
    }
    .nav-links ul li a{
        font-size: 1.2rem;
    }
    .banner .curve {
        width: 100px;
        height: 100px;
    }
    .curve img {
        width: 80px;
        height: 80px;
    }
    .banner-content h2 {
        font-size: 1rem;
    }
    .banner-content p {
        font-size: 0.7rem;
    }
    .cakes-btn button{
        padding: 7px 20px;
        font-size: 0.8rem;
    }
}
