/* Additional Custom Styles for SATS Website */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(79, 172, 254, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(79, 172, 254, 0.8), 0 0 30px rgba(79, 172, 254, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(79, 172, 254, 0.5);
    }
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
    animation: glow 2s infinite;
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    border-radius: 50px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #4facfe;
    transform: translateY(-2px);
}

/* Enhanced Card Styles */
.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced Typography */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 2px;
}

/* Enhanced Navigation */
.navbar-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4facfe;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #4facfe;
}

/* Enhanced Statistics */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #4facfe;
    margin-bottom: 0.5rem;
    display: block;
}

/* Enhanced Icons */
.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.icon-wrapper:hover::before {
    transform: translateX(100%);
}

/* Enhanced Footer */
.footer-link {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #4facfe;
    transform: translateX(5px);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .stat-card {
        margin-bottom: 1.5rem;
    }
}

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform 0.3s ease;
}

/* Enhanced Gradients */
.gradient-text {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    position: relative;
    background: white;
    border-radius: 20px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.focus-visible:focus {
    outline: 2px solid #4facfe;
    outline-offset: 2px;
}

/* QR Code Styles */
.qr-code-container {
    position: relative;
    display: inline-block;
}

.qr-code-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #4facfe, #00f2fe, #4facfe);
    border-radius: 15px;
    z-index: -1;
    animation: qr-glow 3s ease-in-out infinite;
}

@keyframes qr-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.qr-code-container img {
    border: 3px solid white;
    border-radius: 10px;
    background: white;
    padding: 5px;
}

/* Enhanced Hero Background */
.hero-bg-overlay {
    background: linear-gradient(
        135deg,
        rgba(79, 172, 254, 0.8) 0%,
        rgba(0, 242, 254, 0.6) 50%,
        rgba(79, 172, 254, 0.8) 100%
    );
}

.hero-medical-pattern {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

/* Download Section Enhancements */
.download-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.download-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* QR Code Animation on Hover */
.qr-code-container:hover img {
    animation: qr-pulse 0.6s ease-in-out;
}

@keyframes qr-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Medical Icons Animation */
.medical-icon {
    animation: medical-float 4s ease-in-out infinite;
}

.medical-icon:nth-child(2) {
    animation-delay: 1s;
}

.medical-icon:nth-child(3) {
    animation-delay: 2s;
}

@keyframes medical-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

/* Enhanced Background Image Styles */
.hero-bg-image {
    background-image:
        radial-gradient(circle at 30% 20%, rgba(79, 172, 254, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 242, 254, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%),
        url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    filter: blur(0.5px);
    transition: opacity 0.3s ease;
}

/* Medical themed background pattern */
.hero-bg-pattern {
    background-image:
        /* Medical cross patterns */
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.1) 3px, transparent 3px),
        radial-gradient(circle at 45% 15%, rgba(79, 172, 254, 0.2) 4px, transparent 4px),
        radial-gradient(circle at 75% 45%, rgba(0, 242, 254, 0.15) 2px, transparent 2px),

        /* Heartbeat line pattern */
        linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.1) 49%, rgba(255, 255, 255, 0.1) 51%, transparent 52%),

        /* Medical equipment silhouettes */
        radial-gradient(ellipse at 30% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 30%, rgba(79, 172, 254, 0.1) 0%, transparent 35%),

        /* Subtle grid pattern */
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

    background-size:
        200px 200px, 150px 150px, 180px 180px, 120px 120px,
        100% 2px,
        400px 300px, 350px 250px,
        50px 50px, 50px 50px;

    background-position:
        0 0, 100px 50px, 200px 100px, 50px 150px,
        0 50%,
        0 0, 200px 150px,
        0 0, 0 0;

    animation: medical-pattern-float 20s ease-in-out infinite;
}

@keyframes medical-pattern-float {
    0%, 100% {
        background-position:
            0 0, 100px 50px, 200px 100px, 50px 150px,
            0 50%,
            0 0, 200px 150px,
            0 0, 0 0;
    }
    50% {
        background-position:
            20px 10px, 120px 60px, 220px 110px, 70px 160px,
            0 50%,
            20px 10px, 220px 160px,
            0 0, 0 0;
    }
}

/* Alternative medical background images */
.hero-bg-medical {
    background-image: url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.hero-bg-ambulance {
    background-image: url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

/* QR Code Responsive Design */
@media (max-width: 768px) {
    .qr-code-container img {
        width: 120px;
        height: 120px;
    }

    .download-card {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .qr-code-container {
        page-break-inside: avoid;
    }
}

/* MINIMALIST HERO SECTION STYLES */

/* Enhanced Float Animation with Beautiful Effects */
.simple-float {
    animation: simple-float 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}



@keyframes simple-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(2deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

/* Beautiful Color Variations */
.text-blue-500 { color: #3b82f6 !important; }
.text-emerald-500 { color: #10b981 !important; }
.text-rose-500 { color: #f43f5e !important; }
.text-violet-500 { color: #8b5cf6 !important; }
.text-amber-500 { color: #f59e0b !important; }
.text-cyan-500 { color: #06b6d4 !important; }
.text-pink-500 { color: #ec4899 !important; }
.text-indigo-500 { color: #6366f1 !important; }
.text-lime-500 { color: #84cc16 !important; }
.text-orange-500 { color: #f97316 !important; }
.text-sky-500 { color: #0ea5e9 !important; }
.text-fuchsia-500 { color: #d946ef !important; }
.text-teal-500 { color: #14b8a6 !important; }
.text-red-500 { color: #ef4444 !important; }
.text-green-500 { color: #22c55e !important; }
.text-purple-500 { color: #a855f7 !important; }
.text-yellow-500 { color: #eab308 !important; }

/* Darker Variations for Additional Icons */
.text-blue-600 { color: #2563eb !important; }
.text-emerald-600 { color: #059669 !important; }
.text-rose-600 { color: #e11d48 !important; }
.text-violet-600 { color: #7c3aed !important; }
.text-amber-600 { color: #d97706 !important; }
.text-cyan-400 { color: #22d3ee !important; }
.text-pink-400 { color: #f472b6 !important; }
.text-indigo-400 { color: #818cf8 !important; }
.text-lime-400 { color: #a3e635 !important; }
.text-orange-400 { color: #fb923c !important; }

/* Glow Effect on Hover */
.simple-float:hover {
    transform: scale(1.2) !important;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2))
            drop-shadow(0 0 20px currentColor);
}

/* Simple Pulse Animation */
.simple-pulse {
    animation: simple-pulse 2s ease-in-out infinite;
}

@keyframes simple-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Minimalist Button Hover */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Clean Transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Simple Shadow */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* Responsive adjustments for minimalist design */
@media (max-width: 768px) {
    .simple-float {
        animation-duration: 3s;
    }

    .simple-pulse {
        animation-duration: 1.5s;
    }
}
