/* Business Card Styles - Final Layout */


@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Saira:ital,wght@0,100..900;1,100..900&display=swap');



#card_section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.section_title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
}

#cards {
    margin: 50px 100px 0 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card-container {
    width: 300px;
    height: 500px;
    perspective: 1000px;
    cursor: pointer;
    margin-right: 25px;
    margin-bottom: 25px;
}

.card {
    position: relative;
    width: 300px;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-container:hover .card {
    transform: rotateY(-180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 280px;
    height: 470px;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card-front {
    background-color: #fff;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-family: 'Montserrat', sans-serif;
    
}

.card-header {
    text-align: center;
    margin-bottom: 15px;
}

.card-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 1px;
}

.tagline {
    text-transform: lowercase;
    letter-spacing: 2px;
    color: #1a1a2e;
    font-size: 14px;
    margin-top: 10px;
    font-family: "Saira", sans-serif;
}

.heart {
    color: #29a8df;
}

/* Description in the middle */
.card-description-front {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0;
}

.company-info {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    font-family: 'Saira', sans-serif;
    margin-bottom: 10px;
}

/* Footer with photo and name */
.card-footer {
    margin-top: auto;
    padding-top: 20px;
}

.profile-wrapper {
    display: flex;
    align-items: center;
}

.profile-image-container {
    margin-right: 15px;
}

.card-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #29a8df;
}

.profile-details {
    flex: 1;
}

.card-name {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.card-position {
    font-size: 14px;
    color: #555;
    font-family: 'Montserrat', sans-serif;
}

.card-back {
    background-color: #fff;
    transform: rotateY(180deg);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-family: 'Montserrat', sans-serif;
}

.card-description {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    text-align: left;
    height: 100%;
    overflow: auto;
}

.card-description h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #29a8df;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.bold {
    font-weight: bold;
    color: #1a1a2e;
}

.description {
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.website, .linkedin {
    margin-bottom: 8px;
    font-size: 13px;
    word-break: break-all;
}

.contact-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.contact-info p {
    font-size: 13px;
    margin: 5px 0;
}

@media (max-width: 800px) {
    #cards {
        margin: 30px 20px;
    }
    
    .card-container {
        width: 220px;
        height: 420px;
        margin-bottom: 70px;
    }
    
    .card-image {
        width: 70px;
        height: 70px;
    }
    
    .card-description h2 {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    #cards {
       
        flex-direction: column;
        align-items: center;
        
    }
    
    .card-container {
        display:flex;
        flex-direction: column;
        margin-right: 0;
        margin-bottom: 70px;
    }
    
    .profile-wrapper {
        justify-content: flex-start;
    }
}
/* Responsive styles for 700px */
@media (max-width: 799px) {
    #cards {
        margin: 30px 15px;
    }
    
    .card-container {
        width: 250px;
        height: 450px;
    }
    
    .card-front, .card-back {
        width: 240px;
        height: 420px;
    }
    
    .card-logo {
        width: 180px;
        height: 180px;
    }
    
    .card-name {
        font-size: 16px;
    }
    
    .card-position {
        font-size: 13px;
    }
    
    .tagline {
        font-size: 13px;
    }
    
    .company-info {
        font-size: 14px;
    }
}

/* Responsive styles for 650px */
@media (max-width: 650px) {
    #cards {
        margin: 25px 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .card-container {
        width: 250px;
        height: 440px;
        margin-right: 0;
        margin-bottom: 40px;
    }
    
    .card-front, .card-back {
        width: 240px;
        height: 410px;
    }
    
    .card-logo {
        width: 160px;
        height: 160px;
        margin-bottom: 0;
    }
    
    .profile-wrapper {
        justify-content: center;
    }
    
    .card-image {
        width: 65px;
        height: 65px;
    }
    
    .card-description h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .contact-info p {
        font-size: 12px;
        margin: 4px 0;
    }
    
    .website, .linkedin {
        font-size: 12px;
    }
    
    .section_title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}