/* Black Joy Group - Custom Styles */

/* ============================================
   GRID PATTERN BACKGROUND
   ============================================ */
.bg-grid-white\/\[0\.02\] {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* ============================================
   SMOOTH SCROLL
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   HERO SECTION ANIMATIONS
   ============================================ */

/* Softhouse Word Glow Effect - NEW! */
@keyframes softhouseGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(250, 204, 21, 0.5),
                     0 0 30px rgba(250, 204, 21, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(250, 204, 21, 0.8),
                     0 0 60px rgba(250, 204, 21, 0.5),
                     0 0 80px rgba(250, 204, 21, 0.3);
    }
}

.softhouse-glow {
    animation: softhouseGlow 2s ease-in-out infinite;
}

/* Fade In Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-up {
    animation: fadeIn 1s ease-out;
}

.fade-in-up.delay-200 {
    animation: fadeIn 1s ease-out 0.2s;
    animation-fill-mode: backwards;
}

.fade-in-up.delay-400 {
    animation: fadeIn 1s ease-out 0.4s;
    animation-fill-mode: backwards;
}

.fade-in-up.delay-600 {
    animation: fadeIn 1s ease-out 0.6s;
    animation-fill-mode: backwards;
}

.fade-in-up.delay-800 {
    animation: fadeIn 1s ease-out 0.8s;
    animation-fill-mode: backwards;
}

/* Hero Background Blobs */
@keyframes blobFloat1 {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2) translate(20px, 20px);
        opacity: 0.5;
    }
}

@keyframes blobFloat2 {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3) translate(-20px, -20px);
        opacity: 0.5;
    }
}

.hero-blob-1 {
    animation: blobFloat1 8s ease-in-out infinite;
}

.hero-blob-2 {
    animation: blobFloat2 10s ease-in-out 1s infinite;
}

/* Hero Image Glow */
@keyframes imageGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

.hero-image-glow {
    animation: imageGlow 3s ease-in-out infinite;
}

/* Stats Card Hover */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Scroll Indicator */
@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes scrollDot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.scroll-indicator {
    animation: scrollBounce 1.5s ease-in-out infinite;
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* ============================================
   TOPBAR ANIMATIONS
   ============================================ */
@keyframes topbarIconBounce {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(10deg) scale(1.1);
    }
    50% {
        transform: rotate(-10deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

.topbar-icon {
    animation: topbarIconBounce 2s ease-in-out 3s infinite;
}

.topbar-icon:hover {
    animation-play-state: paused;
}

.topbar-link:hover {
    color: #facc15 !important;
}

.topbar-link:hover .topbar-icon,
.topbar-link:hover span,
.topbar-link:hover strong {
    color: #facc15 !important;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

#whatsapp-btn {
    animation: pulse 2s infinite;
}

#whatsapp-btn:hover {
    animation: none;
    transform: scale(1.1);
}

.whatsapp-badge {
    animation: badgePulse 1s infinite;
}

/* ============================================
   GENERAL ANIMATIONS
   ============================================ */

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3) !important;
}

/* Hover Card Effect */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(250, 204, 21, 0.15) !important;
}

/* Hover Scale */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Icon Rotate on Hover */
.icon-rotate {
    transition: transform 0.6s ease;
}

.hover-lift:hover .icon-rotate,
.group:hover .icon-rotate {
    transform: rotate(360deg);
}

/* Icon Wiggle on Hover */
@keyframes iconWiggle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    50% {
        transform: rotate(10deg) scale(1.1);
    }
    75% {
        transform: rotate(-10deg) scale(1.1);
    }
}

.icon-wiggle {
    transition: all 0.5s ease;
}

.group:hover .icon-wiggle {
    animation: iconWiggle 0.5s ease;
}

/* Arrow Movement */
@keyframes arrowMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

.arrow-move {
    display: inline-block;
    animation: arrowMove 1.5s ease-in-out infinite;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MOVING BLOBS
   ============================================ */
@keyframes movingBlob1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

@keyframes movingBlob2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-100px, -50px) scale(1.1);
    }
}

.moving-blob-1 {
    animation: movingBlob1 20s ease-in-out infinite;
}

.moving-blob-2 {
    animation: movingBlob2 15s ease-in-out infinite;
}

/* ============================================
   CTA GLOW ANIMATION
   ============================================ */
@keyframes ctaGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.cta-glow {
    animation: ctaGlow 4s ease-in-out infinite;
}

/* ============================================
   BUTTON & LINK HOVER EFFECTS
   ============================================ */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Input Focus Effects */
input:focus,
textarea:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
}

/* ============================================
   CARD GLOW EFFECT
   ============================================ */
.group:hover::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, #facc15, #8b5cf6, #7c3aed);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

/* ============================================
   TEXT GLOW EFFECTS
   ============================================ */
.text-yellow-400 {
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}

.text-white {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ============================================
   BORDER GLOW ANIMATION
   ============================================ */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(139, 92, 246, 0.2);
    }
    50% {
        border-color: rgba(139, 92, 246, 0.5);
    }
}

.border-purple-500\/20:hover {
    animation: borderGlow 2s infinite;
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */
img[src=""] {
    display: none;
}

/* ============================================
   TRANSITIONS
   ============================================ */
a,
button,
input,
textarea {
    transition: all 0.3s ease;
}

/* ============================================
   SECTION POSITIONING
   ============================================ */
section {
    position: relative;
}

/* ============================================
   BACKDROP BLUR SUPPORT
   ============================================ */
@supports (backdrop-filter: blur(10px)) {
    #header,
    #topbar {
        backdrop-filter: blur(10px);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    #topbar,
    #header,
    #whatsapp-btn,
    footer {
        display: none;
    }
}

/* ============================================
   GRADIENT TEXT
   ============================================ */
.bg-clip-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
