/* Cover photo styles */

main {
    margin-top: 100vh; /* Push content below the cover photo */
}

.cover-photo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../resources/images/John_Smith_1.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cover-content {
    max-width: 400px;
    padding: 2rem;
    margin-left: 7%;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

.cover-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cover-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #e9e9e9;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #00e1e8;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
    font-weight: bold;
}

.btn:hover {
    background-color: #00e1e8;
    color: #000000;
}

/* Collections title */
.collections-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 2rem 0;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlight {
    color: #00e1e8; /* Gold color */
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.collections-title:hover .highlight::after {
    transform: scaleX(1);
}

/* Portfolio Collections */
.portfolio-collections {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.collection-card {
    width: 300px;
    height: 300px;
    margin: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.collection-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-card:hover img {
    transform: scale(1.1);
}

.card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background-color: rgba(50, 50, 50, 0.8);
    color: #ffffff;
    text-align: center;
    transition: opacity 0.3s ease;
}

.collection-card:hover .card-title {
    opacity: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .cover-photo {
        align-items: flex-end;
    }

    .cover-content {
        margin-left: 5%;
        margin-right: 5%;
        padding: 1.5rem;
        margin-bottom: 5vh;
    }

    .cover-content h2 {
        font-size: 2rem;
    }

    .cover-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
    }

    .collections-title {
        font-size: 2rem;
    }

    .collection-card {
        width: calc(100% - 2rem);
        height: 200px;
    }
}
