/* Custom Properties */
:root {
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--glass-shadow);
}

/* Animations */
@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 12s infinite alternate ease-in-out; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float-slow { animation: float-slow 6s ease-in-out infinite; }
.animate-float-fast { animation: float-fast 4s ease-in-out infinite; }

/* Lock Animation */
@keyframes lock-color-pulse {
    0% { color: #3b82f6; transform: scale(1); }
    50% { color: #10b981; transform: scale(1.1); }
    100% { color: #3b82f6; transform: scale(1); }
}
@keyframes lock-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}
.animate-lock-color {
    animation: lock-color-pulse 4s infinite ease-in-out;
}
.icon-locked, .icon-unlocked {
    position: absolute;
    inset: 0;
    margin: auto;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.lock-container {
    animation: lock-shake 4s infinite ease-in-out;
}
.lock-container.is-unlocked .icon-locked { opacity: 0; transform: scale(0.5); }
.lock-container.is-unlocked .icon-unlocked { opacity: 1; transform: scale(1); }
.lock-container:not(.is-unlocked) .icon-locked { opacity: 1; transform: scale(1); }
.lock-container:not(.is-unlocked) .icon-unlocked { opacity: 0; transform: scale(0.5); }

/* Flip Cards */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.flip-card-back {
    transform: rotateY(180deg);
}

/* Hover Animated Cards */
.hover-card {
    transition: all 0.3s ease;
}
.hover-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

/* Overlay Cards */
.overlay-card {
    position: relative;
    overflow: hidden;
}
.overlay-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.overlay-card:hover::after {
    opacity: 0.8;
}
.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 10;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}
.overlay-card:hover .overlay-content {
    transform: translateY(0);
    opacity: 1;
}

/* Video Hover Button */
.video-hover-btn {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-card:hover .video-hover-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal */
.modal-active {
    overflow: hidden;
}

/* Base Styles */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.perspective-1000 { perspective: 1000px; }

/* Initial States for GSAP Reveals */
.reveal-up { opacity: 0; transform: translateY(30px); }
.bento-item { opacity: 0; transform: translateY(40px); }
.zigzag-item { opacity: 0; transform: translateX(-50px); }
.zigzag-item:nth-child(even) { transform: translateX(50px); }

/* Holographic 3D Interactive Cards */
.perspective-1500 {
    perspective: 1500px;
}
.holo-card {
    transform-style: preserve-3d;
    position: relative;
    z-index: 10;
}
.holo-card-inner {
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.1s ease-out;
    /* Deep background with a hint of glass */
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    will-change: transform;
}
.holo-card-inner::before {
    /* 3D Border Effect */
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        var(--deg, 135deg), 
        rgba(255,255,255,0.4), 
        rgba(255,255,255,0.0) 40%, 
        rgba(255,255,255,0.0) 60%, 
        rgba(255,255,255,0.2)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.holo-card-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    /* Soft white glare following mouse */
    background: radial-gradient(
        circle at var(--px, 50%) var(--py, 50%),
        rgba(255,255,255,0.2) 0%,
        transparent 50%
    );
    opacity: var(--o, 0);
    pointer-events: none;
    z-index: 20;
    mix-blend-mode: overlay;
    transition: opacity 0.5s ease;
}
.holo-card-shimmer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    /* Iridescent/Holographic gradient */
    background: radial-gradient(
        circle at var(--px, 50%) var(--py, 50%),
        rgba(100,200,255,0.4) 0%,
        rgba(255,100,255,0.4) 25%,
        rgba(100,255,200,0.4) 50%,
        transparent 80%
    );
    opacity: calc(var(--o, 0) * 0.6);
    pointer-events: none;
    z-index: 21;
    mix-blend-mode: color-dodge;
    transition: opacity 0.5s ease;
}
@keyframes holo-float-anim {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
.holo-float {
    animation: holo-float-anim 6s infinite ease-in-out;
    pointer-events: none;
}
/* Pop out the content inside the card */
.holo-card-inner > .relative.z-30 {
    transform: translateZ(0px);
}
.holo-card-inner .holo-float {
    transform: translateZ(0px);
}

/* Force buttons to be interactive */
.open-pricing-modal {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 9999 !important;
}

/* Sparkling Gradient Text Highlight & Particles */
.sparkle-title-wrapper {
    position: relative;
    display: inline-block;
}

.sparkle-text {
    background: linear-gradient(
        to right,
        #3b82f6, /* blue-500 */
        #a855f7, /* purple-500 */
        #ec4899, /* pink-500 */
        #06b6d4, /* cyan-500 */
        #3b82f6  /* blue-500 */
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-gradient-pan 4s linear infinite;
}

@keyframes text-gradient-pan {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.sparkle-star {
    position: absolute;
    pointer-events: none;
    animation: sparkle-twinkle 2s infinite ease-in-out;
}

@keyframes sparkle-twinkle {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(90deg); opacity: 1; }
    100% { transform: scale(0) rotate(180deg); opacity: 0; }
}
