/* 
   VALENTINE'S DAY FEATURED BOARD - FLOATING IMAGES STYLES
   Includes floating images, heart animations, and Valentine's text
*/

/* Featured Board Wrapper */
.featured-board-wrapper {
    position: relative;
    min-height: 700px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

/* Valentine's Day Text - Fixed Horizontal Position */
.valentines-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 228, 233, 0.95));
    padding: 20px 60px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(216, 27, 96, 0.3);
    backdrop-filter: blur(10px);
}

.valentines-text h3 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: #D81B60;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.valentines-text p {
    font-size: 1.1rem;
    color: #E91E63;
    font-style: italic;
    letter-spacing: 1px;
    margin: 0;
}

/* Floating Images Container */
.floating-images-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 20px;
}

/* Floating Image Base Styles */
.floating-image {
    position: absolute;
    width: 280px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 10;
}

/* Initial positions for each floating image */
.floating-image[data-index="0"] {
    top: 50px;
    left: 10%;
}

.floating-image[data-index="1"] {
    top: 100px;
    right: 15%;
}

.floating-image[data-index="2"] {
    bottom: 80px;
    left: 15%;
}

.floating-image[data-index="3"] {
    bottom: 50px;
    right: 10%;
}

/* Featured (Large) State */
.floating-image.featured {
    width: 500px;
    z-index: 50;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
}

/* Hover State - Becomes Featured */
.floating-image:hover {
    z-index: 60;
}

/* Board Card in Floating Images - Keep existing hover effects */
.floating-image .board-card {
    background: linear-gradient(to bottom right, var(--white), #FFF0E0);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(216, 27, 96, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(216, 27, 96, 0.2);
    height: 100%;
}

.floating-image:hover .board-card,
.floating-image.featured .board-card {
    box-shadow: 0 20px 60px rgba(216, 27, 96, 0.4);
    border-color: #D81B60;
}

.floating-image .board-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease, height 0.4s ease;
}

.floating-image.featured .board-card img {
    height: 350px;
}

.floating-image:hover .board-card img {
    transform: scale(1.05);
}

.floating-image .board-card-content {
    padding: 20px;
    text-align: center;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.floating-image.featured .board-card-content {
    opacity: 1;
    max-height: 300px;
    padding: 25px;
}

.floating-image .board-card h3 {
    margin-bottom: 10px;
    color: #D81B60;
    font-size: 1.5rem;
}

.floating-image.featured .board-card h3 {
    font-size: 1.8rem;
}

.floating-image .board-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Floating Heart Particles */
.heart-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: floatHeart 8s infinite ease-in-out;
}

/* Individual heart animations with different delays and positions */
.heart-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.heart-2 {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.heart-3 {
    left: 35%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.heart-4 {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 10s;
}

.heart-5 {
    left: 65%;
    animation-delay: 1.5s;
    animation-duration: 7.5s;
}

.heart-6 {
    left: 75%;
    animation-delay: 2.5s;
    animation-duration: 8.5s;
}

.heart-7 {
    left: 85%;
    animation-delay: 0.5s;
    animation-duration: 9.5s;
}

.heart-8 {
    left: 95%;
    animation-delay: 3.5s;
    animation-duration: 8s;
}

/* Heart Float Animation */
@keyframes floatHeart {
    0% {
        bottom: -10%;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        bottom: 110%;
        transform: translateX(20px) rotate(15deg);
        opacity: 0;
    }
}

/* Floating Animation for Images */
@keyframes floatAround {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(20px, -15px);
    }

    50% {
        transform: translate(-10px, 10px);
    }

    75% {
        transform: translate(15px, 5px);
    }
}

/* Apply subtle floating to non-featured images */
.floating-image:not(.featured) {
    animation: floatAround 6s infinite ease-in-out;
}

.floating-image[data-index="0"]:not(.featured) {
    animation-delay: 0s;
}

.floating-image[data-index="1"]:not(.featured) {
    animation-delay: 1.5s;
}

.floating-image[data-index="2"]:not(.featured) {
    animation-delay: 3s;
}

.floating-image[data-index="3"]:not(.featured) {
    animation-delay: 4.5s;
}

/* About Logo Styles */
.about-logo {
    transition: transform 0.3s ease;
}

.about-logo:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .floating-images-container {
        height: 550px;
    }

    .floating-image {
        width: 240px;
    }

    .floating-image.featured {
        width: 450px;
    }
}

@media (max-width: 992px) {
    .featured-board-wrapper {
        min-height: 600px;
        padding: 100px 20px 40px;
    }

    .valentines-text {
        padding: 15px 40px;
    }

    .valentines-text h3 {
        font-size: 2rem;
    }

    .valentines-text p {
        font-size: 1rem;
    }

    .floating-images-container {
        height: 500px;
    }

    .floating-image {
        width: 200px;
    }

    .floating-image.featured {
        width: 380px;
    }

    .floating-image.featured .board-card img {
        height: 280px;
    }

    /* Adjust positions for smaller screens */
    .floating-image[data-index="0"] {
        top: 30px;
        left: 5%;
    }

    .floating-image[data-index="1"] {
        top: 80px;
        right: 5%;
    }

    .floating-image[data-index="2"] {
        bottom: 60px;
        left: 5%;
    }

    .floating-image[data-index="3"] {
        bottom: 30px;
        right: 5%;
    }
}

@media (max-width: 768px) {
    .featured-board-wrapper {
        min-height: 500px;
        padding: 90px 10px 30px;
    }

    .valentines-text {
        padding: 12px 30px;
    }

    .valentines-text h3 {
        font-size: 1.6rem;
    }

    .valentines-text p {
        font-size: 0.9rem;
    }

    .floating-images-container {
        height: 450px;
    }

    .floating-image {
        width: 160px;
    }

    .floating-image.featured {
        width: 320px;
    }

    .floating-image.featured .board-card img {
        height: 220px;
    }

    .floating-image .board-card img {
        height: 140px;
    }

    .heart {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .featured-board-wrapper {
        min-height: 450px;
    }

    .valentines-text h3 {
        font-size: 1.4rem;
    }

    .floating-images-container {
        height: 400px;
    }

    .floating-image {
        width: 130px;
    }

    .floating-image.featured {
        width: 280px;
    }

    .floating-image.featured .board-card img {
        height: 180px;
    }

    .floating-image .board-card img {
        height: 120px;
    }

    .floating-image.featured .board-card-content {
        padding: 15px;
    }

    .floating-image .board-card h3 {
        font-size: 1.2rem;
    }

    .floating-image.featured .board-card h3 {
        font-size: 1.4rem;
    }

    .floating-image .board-card p {
        font-size: 0.85rem;
    }
}