/* Custom styles for TranscendIT Health */

/* Smooth scroll offset for fixed navbar */
html {
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #7B2CBF;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a21caf;
}

/* Selection color */
::selection {
    background: rgba(123, 44, 191, 0.4);
    color: #f5d0fe;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(8, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 44, 191, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card hover glow */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(ellipse at top, rgba(123, 44, 191, 0.08), transparent 70%);
    pointer-events: none;
}
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card:hover::before {
    opacity: 1;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #f59e0b, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero image subtle float */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.hero-float {
    animation: float 6s ease-in-out infinite;
}

/* Pulse dot */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Form input focus glow */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
}
</script>
