/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    from { box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff; }
    to { box-shadow: 0 0 20px #8000ff, 0 0 30px #8000ff, 0 0 40px #8000ff; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animated Background */
.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(0,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle, rgba(128,0,255,0.1) 0%, transparent 50%),
                radial-gradient(circle, rgba(0,128,255,0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.animated-bg::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: conic-gradient(from 0deg at 50% 50%, 
                transparent 0deg, 
                rgba(0,255,255,0.05) 60deg, 
                transparent 120deg, 
                rgba(128,0,255,0.05) 180deg, 
                transparent 240deg, 
                rgba(0,128,255,0.05) 300deg, 
                transparent 360deg);
    animation: float 30s ease-in-out infinite reverse;
}

/* Animated particles */
.animated-bg .particle {
    position: absolute;
    background: linear-gradient(45deg, #00ffff, #8000ff);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 10s ease-in-out infinite;
}

.animated-bg .particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.animated-bg .particle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.animated-bg .particle:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.2), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card.selected {
    background: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(128,0,255,0.1));
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
}

/* Star Ratings */
.star {
    transition: all 0.2s ease;
    cursor: pointer;
}

.star.filled {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
    transform: scale(1.1);
}

.star:hover {
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(255,215,0,0.8);
}

/* Review Cards */
.review-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,255,255,0.2);
    border-color: rgba(0,255,255,0.3);
}

.review-stars {
    color: #ffd700;
    font-size: 18px;
}

.review-service {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(0,255,255,0.2), rgba(128,0,255,0.2));
    border-radius: 20px;
    font-size: 12px;
    margin-top: 8px;
}

/* Filter Buttons */
.filter-btn.active {
    background: linear-gradient(135deg, #00ffff, #8000ff);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #8000ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8000ff, #00ffff);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,255,255,0.3);
    border-radius: 50%;
    border-top-color: #00ffff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

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

/* Neon Text Effects */
.neon-text {
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor,
        0 0 40px currentColor;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Typewriter Effect */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 3s steps(40) 1s 1 normal both;
}

/* Hover Glow Effects */
.hover-glow:hover {
    box-shadow: 
        0 0 20px rgba(0,255,255,0.5),
        0 0 40px rgba(128,0,255,0.3),
        0 0 60px rgba(0,128,255,0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #00ffff, #8000ff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
}

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