/* Custom styles if needed, but Tailwind handles most things now */
@property --gradient-start {
    syntax: '<percentage>';
    initial-value: 75%;
    inherits: false;
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* Flip Text Animation */
.flip-text-container {
    display: inline-flex;
    position: relative;
    height: 1.5em;
    overflow: hidden;
    vertical-align: bottom;
    color: #F472B6; /* Pink-400 */
    min-width: 200px; /* Ensure space for longest word */
}

.flip-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: rotateX(90deg);
    transform-origin: center center;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center; /* Center text on mobile */
}

@media (min-width: 768px) {
    .flip-text {
        justify-content: flex-start; /* Left align on desktop */
    }
}

.flip-text.active {
    opacity: 1;
    transform: rotateX(0deg);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Glass Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dark .glass-card {
    background: rgba(31, 41, 55, 0.7); /* Gray-800 with opacity */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Slot Machine Text Effect */
@keyframes slot-roll-in {
    0% {
        transform: translateY(-1.5em);
        opacity: 0;
        filter: blur(5px);
    }
    50% {
        opacity: 1;
        filter: blur(2px);
    }
    80% {
        transform: translateY(0.1em);
        filter: blur(0);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slot-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-1.5em);
    white-space: pre; /* Preserve spaces */
}

.slot-char.animate {
    animation: slot-roll-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Moving Laser Outline Animation */
#hero-image-container {
    position: relative;
    z-index: 0; /* Create stacking context */
}

#hero-image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Use rgba for transparent to avoid gray interpolation */
    background: conic-gradient(from 0deg, rgba(244, 114, 182, 0) 0%, rgba(244, 114, 182, 0) var(--gradient-start), #F472B6 100%);
    animation: laser-spin-once 5s linear forwards;
    z-index: -1;
}

@keyframes laser-spin-once {
    0% {
        transform: rotate(0deg);
        --gradient-start: 75%;
    }
    25% {
        --gradient-start: 75%;
    }
    100% {
        transform: rotate(360deg);
        --gradient-start: 100%;
    }
}