.making-content {
    top: -60px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    min-height: 500px;
    color: #928f88;
    height: 100vh;
    font-family: "Ruda", sans-serif;
}

.image-making {
    position: absolute;
    left:0%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
}

.image-making img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.making-cards-container {
    position: absolute;
    right: 10%;
    top: 53%;
    transform: translateY(-50%);
    width: 40%;
    padding: 30px;
    z-index: 2;
}
.card-container {
    width: 25vw; 
    height: 15.5vw; 
    min-width: 250px;
    min-height: 155px;
    max-width: 340px; 
    max-height: 210px;
    perspective: 1000px;
    margin-bottom: 2vw;
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
    border-radius: 15px;
    box-shadow:  0 20px 40px rgba(0, 0, 0, 0.5);
}
.card-2 {
    margin-left: 80px;
}
.card-container:hover .card {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(10, 4, 4, 0.2);
}

.card-front {
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: -20px;
}

.card-back {
    background-size: cover;
    background-position: center;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.card-front h3 {
    font-size: 1.4vw; 
    min-font-size: 18px; 
    max-font-size: 22px; 
    margin: 10px 0px;
}

.card-about {
    font-size: 1vw; 
    min-font-size: 14px; 
    min-line-height: 1.4;
    max-font-size: 16px; 
}
.click {
    font-size: 1.2vw;
    min-font-size: 18px; 
    max-font-size: 22px;
    font-weight: 900;
    padding-top: 20px;
    color: #5d5855;
}

.card-1 .card-back {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../assets/1.jpg');
}

.card-2 .card-back {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../assets/2.jpg');
}

.card-3 .card-back {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('../assets/3.jpg');
}


.card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-front::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #5d5855 0%, #fff 100%);
    animation: gradientAnimation 1s ease infinite;
    background-size: 200% 200%;
}

.card-2 .card-front::before {
    background: linear-gradient(90deg, #e0cdc2 0%, #4d4d4d 100%);
    animation: gradientAnimation2 1s ease infinite;
    background-size: 200% 200%;
}

.card-3 .card-front::before {
    background: linear-gradient(90deg, #5d5855 0%, #dcdcdc 50%, #a09e9a 100%);
    animation: gradientAnimation3 1.3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientAnimation2 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientAnimation3 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.vertical-text {
    font-family: "Rubik Mono One", monospace;
    font-size: 80px;
    font-weight: 900;
    color: #5d5855;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(90deg) translateX(50%);
    transform-origin: right center;
    white-space: nowrap;
    letter-spacing: 1px;
    z-index: 3;
    margin-right: -50px; 
}

.vertical-text::before {
    content: "";
    position: absolute;
    left: -50px;
    top: 50%;
    width: 40px;
    height: 2px;
    background: #5d5855;
    opacity: 0.5;
    transform: translateY(-50%);
}

.slogan {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #5d5855;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(90deg) translateX(50%);
    transform-origin: right center;
    white-space: nowrap;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-right: 20px; 
}
@media (max-width: 768px) {
    .making-content {
        height: auto;
        padding: 20px 10px;
        top: 0;
    }
    
    .image-making {
        position: relative;
        width: 100%;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 30px;
    }
    
    .making-cards-container {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        transform: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .card-container {
        width: 90%;
        max-width: 340px;
        margin-bottom: 30px;
        margin-left: 0 !important;
    }
    
   .title-wrapper {
        text-align: center;
        margin-bottom: 30px;
        width: 100%;
    }
    
   .vertical-text {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        text-align: center;
        font-size: 40px;
        white-space: normal;
        margin: 0px 0;
        rotate: 0deg;
        opacity: 1;
    }

    .slogan {
        position: relative;
        transform: none;
        rotate: 0deg;
        margin: 10px auto 0;
        font-size: 16px;
        white-space: normal;
        right: auto;
        top: auto;
        max-width: 80%;
        color: #928f88;
    }
    
    .vertical-text::before {
        display: none;
    }
    
    .card {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
    .card-front h3 {
        font-size: 18px !important; 
    }

    .card-about {
        font-size: 14px !important;; 
        
    }
        .click {
    font-size: 16px !important; 

}
}

@media (max-width: 992px) {

    
    .image-making {

        top: 60%;

    }
    
    .vertical-text {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        text-align: center;
        font-size: 50px;
        white-space: normal;
        margin: 0;
        rotate: 0deg;
        opacity: 1;
    }
    
    .slogan {
        position: relative;
        transform: none;
        rotate: 0deg;
        margin: 10px auto 0;
        font-size: 16px;
        white-space: normal;
        right: auto;
        top: auto;
        max-width: 80%;
        color: #928f88;
    }
}