/* Rehv Labs Custom Styles */

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0F172A;
}
::-webkit-scrollbar-thumb {
    background: #1E3A5F;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0891B2;
}

/* Selection */
::selection {
    background: rgba(6, 182, 212, 0.3);
    color: white;
}

/* Glassmorphism base */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-hover:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #A5F3FC, #22D3EE, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Neon glow */
.neon-glow {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3),
                0 0 40px rgba(6, 182, 212, 0.1),
                0 0 60px rgba(6, 182, 212, 0.05);
}

.neon-glow-hover:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4),
                0 0 60px rgba(6, 182, 212, 0.2),
                0 0 90px rgba(6, 182, 212, 0.1);
}

/* Card 3D tilt effect */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Morphing button */
.morph-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.morph-btn:hover {
    transform: scale(1.05);
    border-radius: 16px;
}

/* Shimmer effect */
.shimmer {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.1) 50%, 
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

/* Magnetic cursor effect area */
.magnetic-area {
    cursor: none;
}

/* Ripple effect button */
.ripple-btn {
    position: relative;
    overflow: hidden;
}

.ripple-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10%);
    background-position: center;
    background-size: 0% 0%;
    background-repeat: no-repeat;
    transition: all 0.5s ease-out;
    pointer-events: none;
}

.ripple-btn:active::after {
    background-size: 1000% 1000%;
    opacity: 0;
    transition: none;
}

/* Floating animation for cards */
@keyframes float-card {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(0.5deg); }
    66% { transform: translateY(-5px) rotate(-0.5deg); }
}

.float-card {
    animation: float-card 6s ease-in-out infinite;
}

.float-card-delayed {
    animation: float-card 6s ease-in-out 2s infinite;
}

/* Page transition */
.page-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease-out;
}

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(6, 182, 212, 0.2);
    border-top-color: #06B6D4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Gradient border */
.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), transparent, rgba(6, 182, 212, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Animated gradient background */
.animated-gradient {
    background: linear-gradient(-45deg, 
        #0F172A, 
        #164E63, 
        #0F172A, 
        #155E75
    );
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Grid pattern */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #06B6D4;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure reveal sections are visible even if GSAP fails to load */
.reveal {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Service card base visibility */
.service-card,
.portfolio-card,
.testimonial-card,
.blog-card,
.faq-item,
.stat-item,
.floating-card {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
