html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

/* Custom Animations */
@keyframes float {
    0% { transform: perspective(2000px) rotateY(-10deg) rotateX(5deg) translateY(0px); }
    50% { transform: perspective(2000px) rotateY(-10deg) rotateX(5deg) translateY(-20px); }
    100% { transform: perspective(2000px) rotateY(-10deg) rotateX(5deg) translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* 3D Depth Effect using box-shadow */
.phone-3d {
    box-shadow: 
        -15px 15px 30px rgba(0,0,0,0.3), /* Deep shadow */
        -2px 2px 0px #1f2937, /* Fake thickness (Dark Gray) */
        -4px 4px 0px #111827; /* Fake thickness (Black) */
    transition: all 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    opacity: 0; /* Start hidden */
    animation: fadeInUp 0.8s ease-out forwards;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Shine Effect */
@keyframes shine {
    100% { left: 125%; }
}
.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
}
.group:hover .shine-effect {
    animation: shine 0.75s;
}

/* Border Shine Animation - Sequential Loop */
@keyframes shine-sequence {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) rotate(0deg); 
    }
    10% { opacity: 1; }
    40% { opacity: 1; }
    50% { 
        opacity: 0; 
        transform: translate(-50%, -50%) rotate(360deg); 
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) rotate(360deg); 
    }
}

.mockup-shine-wrapper {
    position: absolute;
    inset: -4px; /* Outside the border */
    border-radius: 2.8rem; /* Matches outer radius roughly */
    padding: 3px; /* Thickness of shine */
    overflow: hidden;
    z-index: 30;
    pointer-events: none;
    
    /* Mask to creates a border-only view */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.mockup-shine-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: conic-gradient(transparent 85%, #3b82f6 100%);
    transform: translate(-50%, -50%);
    opacity: 0; /* Default hidden */
}

.mockup-shine-beam.cycle-1 {
    animation: shine-sequence 6s linear infinite;
    animation-delay: 0s;
}

.mockup-shine-beam.cycle-2 {
    animation: shine-sequence 6s linear infinite;
    animation-delay: 3s; /* Starts when cycle-1 ends its active phase */
}
