/*
 * smartPPA Website - Phase 3 Enhancements
 * Advanced design elements, animations, and performance optimizations
 */

/* Add primary blue color variable */
:root {
    --primary-blue: #2980b9; /* Nice medium blue */
}

/* Enhanced Floating Navigation */
.navbar {
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
    border-radius: 0 0 20px 20px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.navbar.scrolled {
    background-color: rgba(10, 12, 20, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    padding: 0.5rem 0 !important;
    box-shadow: 0 5px 20px rgba(24, 230, 77, 0.1) !important;
    border-bottom: 1px solid rgba(24, 230, 77, 0.1) !important;
}

/* Luminescent Blue Backgrounds */
.luminescent-bg {
    position: relative;
    overflow: hidden;
}

.luminescent-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(41, 128, 185, 0.15), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Enhanced Parallax Effects */
.parallax-section {
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transform: translateZ(-10px) scale(2);
    z-index: -1;
}

/* Smooth Transitions and Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Footer */
footer {
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
    border-radius: 20px 20px 0 0 !important;
    backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(24, 230, 77, 0.1) !important;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced Solution Cards */
.solution-card {
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(24, 230, 77, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-card .icon-wrapper {
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.solution-card:hover .icon-wrapper {
    transform: scale(1.1) !important;
    text-shadow: 0 0 15px rgba(24, 230, 77, 0.7) !important;
}

/* Responsive Optimizations */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(10, 12, 20, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 10px !important;
        border: 1px solid rgba(24, 230, 77, 0.1) !important;
        padding: 1rem !important;
        margin-top: 1rem !important;
    }
}

/* Hero Section Enhancement */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(10, 12, 20, 1), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Pulse Animation for CTA Buttons */
@keyframes subtle-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(24, 230, 77, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(24, 230, 77, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(24, 230, 77, 0);
    }
}

.btn-success {
    animation: subtle-pulse 3s infinite;
}

/* Performance Optimizations */
img, svg {
    max-width: 100%;
    height: auto;
}

/* Improved About Section */
.about-clean {
    position: relative;
    transition: all 0.3s ease;
}

.about-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(41, 128, 185, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.about-clean:hover::before {
    opacity: 1;
}

.about-clean .icon-wrapper {
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.about-clean:hover .icon-wrapper {
    transform: scale(1.1) !important;
    text-shadow: 0 0 15px rgba(24, 230, 77, 0.7) !important;
}

/* Note: Keeping luminescent blue backgrounds but restoring green icons */