/* Ocean Dynamic Fish Cards - Enhanced Design with Centered Content */

.info-card {
    flex: 0 0 300px;
    scroll-snap-align: center;
    background: linear-gradient(45deg, #0077be, #1e6091, #00a8cc, #4dd0e1, #006064, #26c6da);
    background-size: 400% 400%;
    color: white;
    border-radius: 24px;
    box-shadow: 
        0 15px 35px rgba(0, 119, 190, 0.4),
        0 5px 15px rgba(0, 168, 204, 0.2);
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Removed constant animation - only animate on hover */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
    
    /* CENTER ALL CONTENT */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    transition: left 0.8s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #4dd0e1, 
        #26c6da, 
        #00e5ff, 
        #26c6da, 
        #4dd0e1
    );
    animation: shimmerLine 2s ease-in-out infinite;
}

@keyframes oceanWaves {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 25%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 0% 75%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmerLine {
    0%, 100% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.1); }
}

.info-card:hover {
    /* Remove transforms that cause clipping - keep only visual effects */
    box-shadow: 
        0 20px 40px rgba(0, 119, 190, 0.5),
        0 8px 20px rgba(0, 168, 204, 0.3),
        0 0 25px rgba(77, 208, 225, 0.25);
    /* Only animate background on hover */
    animation: oceanWaves 3s ease infinite;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Enhanced Ocean-themed Icons */
.info-card-icon {
    font-size: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.info-card-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4dd0e1, #26c6da, #00e5ff);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover .info-card-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.info-card:hover .info-card-icon::before {
    opacity: 1;
}

/* Card Header - Icon and Title Aligned Side by Side */
.info-card-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the header content */
    margin-bottom: 1rem;
    gap: 0.75rem;
    width: 100%;
}

/* Enhanced Typography - Title positioned next to icon */
.info-card h5 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    text-align: left; /* Align title text to the left of the icon */
    flex: 0 0 auto; /* Don't let title stretch */
}

.info-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    font-weight: 400;
    text-align: center; /* Explicitly center the paragraph */
    max-width: 100%; /* Ensure text doesn't overflow */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .info-card {
        flex: 0 0 85vw;
        min-width: 250px;
        max-width: 300px;
        padding: 1.5rem;
        /* Keep centering on mobile */
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .info-card-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.8rem;
        flex-shrink: 0; /* Keep icon from shrinking on mobile */
    }
    
    .info-card h5 {
        font-size: 1.2rem;
        text-align: left; /* Keep title aligned next to icon */
    }
    
    .info-card p {
        font-size: 0.95rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .info-card {
        padding: 1.25rem;
        /* Keep centering on small mobile */
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .info-card-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
        flex-shrink: 0; /* Keep icon from shrinking on small mobile */
    }
    
    .info-card h5 {
        font-size: 1.1rem;
        text-align: left; /* Keep title aligned next to icon */
    }
    
    .info-card p {
        font-size: 0.9rem;
        text-align: center;
    }
}
/* ===== Add this to your cards.css file =====*/
/* FIX: Prevent text selection and dragging on ALL cards */

.info-card,
.ai-card {
  /* Prevent text selection */
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  
  /* Prevent dragging */
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  
  /* Mobile specific prevention */
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Apply to ALL child elements within cards */
.info-card *,
.ai-card *,
.info-card h5,
.info-card p,
.info-card-header,
.info-card-icon,
.ai-card h5,
.ai-card p,
.ai-card-button {
  /* Prevent text selection */
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  
  /* Prevent dragging */
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  
  /* Mobile specific prevention */
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Also apply to the entire cards container */
.cards-container,
.cards-slider,
#cardsSlider {
  /* Prevent text selection */
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  
  /* Prevent dragging */
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  
  /* Mobile specific prevention */
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}