/* Welcome Page Optimized CSS */
.hero-bg {
    background: linear-gradient(135deg, #2E8B57 0%, #20B2AA 100%);
    position: relative;
    overflow: hidden;
    padding: 30px 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx=".5" cy=".5" r=".5"><stop offset="0%" stop-color="%23ffffff" stop-opacity=".1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

.hero-bg .container > div {
    animation: fadeInUp 1s ease-out;
}

.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); transform: scale(1); }
}

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

@keyframes statsFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.stats-card:nth-child(2) { animation-delay: 1s; }
.stats-card:nth-child(3) { animation-delay: 2s; }
.stats-card:nth-child(4) { animation-delay: 3s; }

.gradient-text {
    background: linear-gradient(135deg, #2E8B57 0%, #20B2AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s ease;
}

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

.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .hero-bg {
        min-height: auto;
        padding: 25px 0;
        overflow-x: hidden;
    }
    .display-3 {
        font-size: 2.2rem;
    }
    .lead {
        font-size: 1.1rem;
    }
    .btn-lg {
        padding: 15px 30px !important;
        font-size: 16px !important;
    }
    .col-md-6 h2 {
        margin-top: 60px !important;
    }
}

@media (min-width: 1200px) {
    .hero-bg {
        padding: 30px 0;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .hero-bg {
        padding: 35px 0;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .hero-bg {
        padding: 30px 0;
    }
}