/* ========================================
   Space Coast Health and Wellness
   Custom Styles
======================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    overflow-x: hidden;
}

/* ========================================
   Decorative Circles
======================================== */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.deco-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.deco-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.deco-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(160, 71, 170, 0.2) 0%, transparent 70%);
    top: 40%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.deco-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(232, 160, 32, 0.12) 0%, transparent 70%);
    bottom: -50px;
    right: 20%;
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* ========================================
   Navbar
======================================== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(123, 45, 142, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #E8A020, #A047AA);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

#navbar.scrolled .nav-link {
    color: #7B2D8E;
}

#navbar.scrolled .nav-link:hover {
    color: #E8A020;
}

#navbar.scrolled a.nav-link {
    color: #7B2D8E;
}

/* ========================================
   Mobile Menu
======================================== */
.mobile-link {
    position: relative;
    padding-left: 0;
    border-bottom: 1px solid rgba(123, 45, 142, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ========================================
   Service Cards
======================================== */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* ========================================
   Testimonial Cards
======================================== */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Scroll Animations
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

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

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

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Back to Top
======================================== */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    pointer-events: all;
}

/* ========================================
   Form Focus Styles
======================================== */
input:focus,
select:focus,
textarea:focus {
    border-color: #A047AA !important;
    box-shadow: 0 0 0 4px rgba(160, 71, 170, 0.15) !important;
}

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 768px) {
    .deco-circle {
        display: none;
    }
}

/* ========================================
   Accessibility
======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
