/* Floating Cards Styles */
.hero-visual {
    position: relative;
    height: 600px;
    width: 100%;
    margin-top: 2rem;
}

.floating-card {
    position: absolute;
    background: transparent;
    border: none;
    border-radius: 20px;
    padding: 0;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    max-width: 300px;
    overflow: hidden;
}

/* Style for the images inside floating cards */
.floating-card img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, z-index 0.4s ease;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.03) !important;
    z-index: 10;
}

.floating-card:hover img {
    transform: none; /* Reset the image transform since we're transforming the parent */
}

.floating-card i {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #00f3ff, #ff6b9d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.floating-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1a1a2e;
    font-weight: 600;
}

.floating-card p {
    font-size: 0.9rem;
    color: #4a4a6a;
    line-height: 1.5;
    margin: 0;
}

/* Card positioning */
.card-1 {
    width: 320px;
    top: 30px;
    right: 30px;
    transform: rotate(5deg);
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.card-2 {
    width: 330px;
    bottom: 140px;
    left: 30px;
    transform: rotate(-3deg);
    animation: float 8s ease-in-out infinite 1s;
    z-index: 2;
}

.card-3 {
    width: 310px;
    bottom: 30px;
    right: 30px;
    transform: rotate(2deg);
    animation: float 7s ease-in-out infinite 0.5s;
    z-index: 1;
}

.hover-glow {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.3) !important;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(0.5deg); }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-visual {
        height: 500px;
    }
}

@media (max-width: 1024px) {
    .hero-visual {
        position: relative;
        height: auto;
        min-height: 600px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        margin: 2rem 0;
        padding: 1rem;
    }
    
    .floating-card {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        margin: 15px 0;
        width: 100% !important;
        max-width: 400px;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        padding: 0 1rem;
    }
    
    .floating-card {
        padding: 20px;
    }
    
    .floating-card h3 {
        font-size: 1.1rem;
    }
    
    .floating-card p {
        font-size: 0.85rem;
    }
}
