/* Advanced Animations and 3D Effects for Elegant White Theme */

/* Animated gradient background overlay */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animated section background layers */
section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f6ff 100%);
    border-top: 1px solid rgba(194, 57, 179, 0.08);
    transition: all 0.6s ease;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(194, 57, 179, 0.02) 100%);
    pointer-events: none;
    animation: slideDown 0.8s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service and Product Cards - Entrance Animation */
.service-card,
.product-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f6ff 100%);
    border: 1px solid rgba(194, 57, 179, 0.15);
    box-shadow: 0 2px 15px rgba(194, 57, 179, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: cardFadeIn 0.6s ease forwards;
    position: relative;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:hover,
.product-card:hover {
    background: linear-gradient(135deg, rgba(194, 57, 179, 0.15) 0%, rgba(106, 76, 147, 0.1) 100%);
    border-color: rgba(194, 57, 179, 0.4);
    box-shadow: 0 8px 32px rgba(194, 57, 179, 0.25);
    transform: translateY(-8px) scale(1.02);
}

/* Icon floating animation */
.service-icon {
    animation: floatIcon 4s ease-in-out infinite;
    transition: all 0.4s ease;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.service-card:hover .service-icon {
    animation: none;
    transform: scale(1.2) rotate(10deg);
    color: #ff006e;
}

/* Button animations */
.glow-button,
.call-button,
.cta-button,
button,
.btn {
    background: linear-gradient(135deg, #6a4c93 0%, #c239b3 100%);
    color: #ffffff;
    border: 1px solid rgba(194, 57, 179, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.glow-button::before,
.call-button::before,
.cta-button::before,
button::before,
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.glow-button:hover::before,
.call-button:hover::before,
.cta-button:hover::before,
button:hover::before,
.btn:hover::before {
    left: 100%;
}

.glow-button:hover,
.call-button:hover,
.cta-button:hover,
button:hover,
.btn:hover {
    box-shadow: 0 8px 25px rgba(194, 57, 179, 0.28);
    transform: translateY(-3px);
}

/* Form inputs enhancement */
input,
textarea,
select {
    background: #f8f6ff !important;
    color: #2c1a3d !important;
    border: 1px solid rgba(194, 57, 179, 0.2) !important;
    transition: all 0.4s ease !important;
}

input:focus,
textarea:focus,
select:focus {
    background: #ffffff !important;
    border-color: rgba(194, 57, 179, 0.5) !important;
    box-shadow: 0 0 20px rgba(194, 57, 179, 0.15) !important;
    transform: translateY(-2px);
}

/* Hero section animations */
.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #2c1a3d 0%, #6a4c93 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroFade 0.8s ease forwards;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    color: #666666;
    animation: subtitleFade 1s ease forwards 0.2s;
    animation-fill-mode: backwards;
}

@keyframes subtitleFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Section styling */
.cta-section {
    background: linear-gradient(135deg, rgba(194, 57, 179, 0.08) 0%, rgba(106, 76, 147, 0.06) 100%);
    border: 1px solid rgba(194, 57, 179, 0.2);
    padding: 4rem;
    border-radius: 15px;
    text-align: center;
    animation: ctaAppear 0.8s ease forwards;
}

@keyframes ctaAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Footer animations */
footer {
    background: linear-gradient(135deg, #3a8d3e 0%, #2e7d34 100%);
    border-top: 1px solid rgba(76, 175, 80, 0.3);
    animation: footerSlide 0.8s ease forwards;
}

@keyframes footerSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer a {
    color: #ffffff;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #fafafa;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Loading screen styling */
.loading-screen {
    background: linear-gradient(135deg, #ffffff 0%, #f8f6ff 100%);
}

.loading-screen.fade-out {
    animation: loadingExit 0.8s ease forwards;
}

@keyframes loadingExit {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
        pointer-events: none;
    }
}

/* Spinner styling */
.spinner-ring {
    border: 4px solid rgba(194, 57, 179, 0.2);
    border-top: 4px solid #ff006e;
    border-right: 4px solid #c239b3;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-logo {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Text gradient animations */
h2 {
    background: linear-gradient(135deg, #ffffff 0%, #c239b3 50%, #ff006e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth transitions globally */
a, button, input, textarea, select {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover glow effect for links */
a {
    color: #2c1a3d;
}

a:hover {
    color: #ff006e;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.15);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .service-card,
    .product-card {
        animation: none;
    }

    button:hover {
        transform: translateY(-2px);
    }
}

/* Parallax effect for sections */
.parallax-section {
    background-attachment: fixed;
    background-size: cover;
    position: relative;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #c239b3, #ff006e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}
