body {
    margin: 0;
    padding: 0;
    background-color: #DFCFCF;
    color: #C7A8BC;
    font-family: "Archivo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-size: 16px;
    font-style: normal;
    font-variation-settings:
      "wdth" 100;
}

.title{
    font-size: 15.625rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floating 6s ease-in-out infinite;
    text-shadow: 4px 4px 6px #00000075;
}

@keyframes floating {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(-50%, -52%) rotate(-2deg) scale(1.01);
    }
    50% {
        transform: translate(-50%, -54%) rotate(1deg) scale(1);
    }
    75% {
        transform: translate(-50%, -51%) rotate(2deg) scale(1.01);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
}

@keyframes floatingAlt {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    20% {
        transform: translate(-50%, -53%) rotate(1.5deg) scale(1.01);
    }
    45% {
        transform: translate(-50%, -55%) rotate(-1.5deg) scale(0.99);
    }
    70% {
        transform: translate(-50%, -52%) rotate(2deg) scale(1.02);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
}

.menu{
    list-style-type: none;
    text-transform: uppercase;
    margin-top:50px;
}

.menu li a{
    color: #C7A8BC;
    text-decoration: none;
    font-size: 2.5rem;
    position: relative;
    transition: transform .2s;
    display: inline-block;
    text-shadow:1px 4px 4px #00000066;
}

.menu li a:hover{
    transform: scale(1.1) rotate(-5deg);
    text-decoration: underline;
    text-decoration-color: #998191;
    text-underline-offset: 10px;
}

.menu li a.active{
    text-decoration: underline;
    text-decoration-color: #998191;
    text-underline-offset: 10px;
}

.index .section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.index .section-1 {
    background-image: url('../img/bg1.png');
    align-items: start;
    justify-content: left;
}

.index .section-2 {
    background-image: url('../img/bg2.png');
}

.index .section-3 {
    background-image: url('../img/bg3.png');
}

.index .section-4 {
    background-image: url('../img/bg4.png');
    position: relative;
}

.index .section-5 {
    background-image: url('../img/bg5.png');
    justify-content: left;
    align-items: end;
}

section {
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: start;       /* Align image to top */
    flex-direction: column;
    padding: 0; margin: 0;
}

footer{
    margin-top: -40px;
    padding-top: 25px;;
    height: 0;
    position: absolute;
    width: 100%;
    padding: 0px 0px 0px 50px;
    color:#A38398;
    z-index: 5;
}

.index footer{
    margin-top:0;
}

section.header{height: 100vh;}

section .menu{
    position: absolute;
    top: 0;
}

.portfolio section img{
    width: 100vw;         /* Full width of the screen */
    height: auto;         /* Height adjusts to maintain aspect ratio */
    display: block;       /* Removes small spacing under img */
}

.portfolio .header{
    background-image: url('../img/portfolio1.jpg');
    height: 100vh;
    background-size: cover;
    background-position: center;
}

.contacts{
    background-image: url('../img/contacts.png');
    background-size: cover;
}

.about{
    background-image: url('../img/about.png');
    background-size: cover;
    background-color: #fff;
}

.about p{
    color: #A38398;
    font-size: 35px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: justify;
    padding: 0 20vh;
    display: block;
}

.contacts .title, .about .title{
    top: 14%;
}

.contacts section.header, .about section.header{
    height: auto;
}

.contacts section .menu, .about section .menu{
    position: relative;
}

.contacts .phone, .about .postcard{
    height: 80vh;
}

.about .pcard{
    position: absolute;
    width: 26vw;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatingAlt 10s ease-in-out infinite;
    z-index:10;
}

.postcard img:nth-child(2) {
    top: 42%;
    right: 55%;
    width: 10vw;
    animation: float2 6s ease-in-out infinite;
    position: absolute;
    z-index: 1;
}

.postcard img:nth-child(3) {
    top: 62%;
    right: 66%;
    width: 6vw;
    animation: float1 6s ease-in-out infinite;
    position: absolute;
}

.postcard img:nth-child(4) {
    top: 91%;
    right: 45%;
    width: 10vw;
    animation: float1 6s ease-in-out infinite;
    position: absolute;
    z-index: 11;
}

.postcard img:nth-child(5) {
    top: 72%;
    right: 20%;
    width: 12vw;
    animation: float1 6s ease-in-out infinite;
    position: absolute;
}

.contacts .case{
    position: absolute;
    width: 26vw;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatingAlt 10s ease-in-out infinite;
}

.phone img:nth-child(2) {
    top: 49%;
    right: 17%;
    width: 12vw;
    animation: float2 6s ease-in-out infinite;
    position: absolute;
}

.phone img:nth-child(3) {
    top: 77%;
    right: 55%;
    width: 20vw;
    animation: float1 6s ease-in-out infinite;
    position: absolute;
}

.blobs1{position: relative;height: 500px;}
.blobs2{position: relative;height: 200px;}
.blobs3{position: relative;height: 400px;}

.blobs1 img:nth-child(1) {
    top: 54%;
    right: 18%;
    width: 10vw;
    animation: float1 6s ease-in-out infinite;
    position: absolute;
}

.blobs1 img:nth-child(2) {
    top: 50%;
    right: 38%;
    width: 20vw;
    animation: float3 6s ease-in-out infinite;
    position: absolute;
}

.blobs2 img:nth-child(1) {
    top: 25%;
    right: 54%;
    width: 18vw;
    animation: float1 6s ease-in-out infinite;
    position: absolute;
}

.blobs2 img:nth-child(2) {
    top: 50%;
    right: 51%;
    width: 15vw;
    animation: float2 6s ease-in-out infinite;
    position: absolute;
}

.blobs3 img:nth-child(1) {
    top: 49%;
    right: 67%;
    width: 15vw;
    animation: float1 6s ease-in-out infinite;
    position: absolute;
    rotate: 54deg;
    z-index: 2;
}

.blobs3 img:nth-child(2) {
    top: -25%;
    right: 63%;
    width: 9vw;
    animation: float2 6s ease-in-out infinite;
    position: absolute;
    rotate: 180deg;
    z-index: 1;
}

.blobs3 img:nth-child(3) {
    top: 40%;
    right: 25%;
    width: 15vw;
    animation: float3 6s ease-in-out infinite;
    position: absolute;
    rotate: 105deg;
}

.contacts p, .contacts a{
    color: #A38398;
    font-size: 40px;
    text-transform: uppercase;
    text-decoration: none;
}

.contacts p{
    line-height: 100%;
}

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

.socials .icons img{
    width: 50px;
}

.icons{
    gap: 50px;
}

.icons img{
    transition: transform 0.1s ease-in-out;
}

.icons img:hover{
    transform: scale(1.1) rotate(-5deg);
}

.blobs img {
    position: absolute;
    width: 350px; /* Adjust size */
    height: auto;
    transform: translate(-50%, -50%);
}

/* Random positions for the blobs */
.blobs img:nth-child(1) {
    top: 16%;
    right: -7%;
    width: 25vw;
    animation: float1 6s ease-in-out infinite;
}

.blobs img:nth-child(2) {
    top: 15%;
    right: 29%;
    width: 20vw;
    animation: float2 6s ease-in-out infinite;
}

.blobs img:nth-child(3) {
    bottom: -31%;
    left: 39%;
    width: 26vw;
    animation: float3 6s ease-in-out infinite;
    z-index: 6;
}

.blobs img:nth-child(4) {
    bottom: -7%;
    left: 20%;
    width: 10vw;
    animation: float1 6s ease-in-out infinite;
}

.blobs img:nth-child(5) {
    bottom: 4%;
    right: 16%;
    width: 12vw;
    animation: float2 6s ease-in-out infinite;
}

.blobs img:nth-child(6) {
    bottom: -46%;
    right: -13%;
    animation: float3 6s ease-in-out infinite;
    width: 30vw;
    z-index: 7;
}

.blobs img:nth-child(7) {
    top: 16%;
    left: 17%;
    width: 25vw;
    animation: float1 6s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) rotate(-5deg);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) rotate(4deg);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-15px);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) rotate(2deg);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-5px);
    }
}

.rights{
    margin-bottom: 50px;
    margin-left: 100px;   
    font-size: 1rem;
}

@media (max-width: 1399.98px) {
    .title{
        font-size: 12rem;
    }
}

@media (max-width: 1199.98px) {
    .menu li a{
        font-size: 2rem;
    }
    .title{
        font-size: 8rem;
    }
}

@media (max-width: 991.98px) {
    .contacts .title, .about .title{
        top: 10%;
    }
    .contacts .menu, .about .menu{
        position: absolute;
        top: 120px;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .about p{
        font-size: 30px;
        padding: 0 10vh;
    }
}


@media (max-width: 767.98px) {
    .section {
        height: 40vh;
    }
    .section-1 {
        height: 100vh;
    }
    
    .contacts .case{
        width: 50vw;
        top: 69%;
    }
    
    .about .pcard{
        width: 50vw;
        top: 69%;
    }

    .blobs1 {
        height: 20vh;
    }
    
    .rights {
        margin: 0 auto;
    }    

    .blobs img:nth-child(2) {
        top: 5%;
        right: 3%;
        width: 44vw;
    }

    .blobs img:nth-child(3) {
        bottom: -10%;
        left: 39%;
        width: 29vw;
    }
    
    .blobs img:nth-child(4) {
        bottom: 6%;
        left: 22%;
        width: 27vw;
        animation: float1 6s ease-in-out infinite;
    }

    .blobs img:nth-child(5) {
        bottom: 4%;
        right: -3%;
        width: 32vw;
    }

    .blobs img:nth-child(6) {
        bottom: 23%;
        right: -11%;
        width: 30vw;
    }
}

@media (max-width: 575.98px) {
    .title{
        font-size: 5rem;
    }
        
    .contacts .case{
        width: 75vw;
        top: 69%;
    }
        
    .about .pcard{
        width: 75vw;
        top: 69%;
    }

    .contacts p, .contacts a, .about p, .about a{
        font-size: 25px;
    }
        
    .about p{
        font-size: 20px;
        padding: 0 5vh;
    }

    .postcard img:nth-child(2) {
        top: 45%;
        right: 62%;
        width: 19vw;
    }

    .postcard img:nth-child(3) {
        top: 67%;
        right: 71%;
        width: 15vw;
    }

    .postcard img:nth-child(4) {
        top: 89%;
        right: 38%;
        width: 23vw;
    }

    .postcard img:nth-child(5) {
        top: 72%;
        right: -7%;
        width: 19vw;
    }

    .blobs1 img:nth-child(1) {
        top: 50%;
        right: 9%;
        width: 19vw;
    }

    .blobs1 img:nth-child(2) {
        top: 53%;
        right: 36%;
        width: 30vw;
        animation: float3 6s ease-in-out infinite;
        position: absolute;
    }

    .blobs3 img:nth-child(1) {
        top: 48%;
        right: 67%;
        width: 25vw;
    }

    .blobs3 img:nth-child(2) {
        top: 2%;
        right: 60%;
        width: 15vw;
    }

    .blobs3 img:nth-child(3) {
        top: 41%;
        right: 28%;
        width: 30vw;
    }

    .phone img:nth-child(2) {
        top: 46%;
        right: 0%;
        width: 18vw;
    }

    .phone img:nth-child(3) {
        top: 71%;
        right: 55%;
        width: 24vw;
    }
}




@media (min-width: 576px) {}

@media (min-width: 768px) {}

@media (min-width: 992px) {    
    .portfolio .title{
        top: 14%;
    }
}

@media (min-width: 1200px) {}

@media (min-width: 1400px) {}
