/* Custom styles for Christopher Scott Miami Cancer Institute */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fefce8;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e04a28, #f49f85);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c93519, #e04a28);
}

/* Geometric animations */
@keyframes float {
    0%, 100% {
        transform: rotate(-45deg) translateY(0px);
    }
    50% {
        transform: rotate(-45deg) translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.geometric-shape-1 {
    animation: float 6s ease-in-out infinite;
}

.geometric-shape-2 {
    animation: pulse 4s ease-in-out infinite;
}

.geometric-shape-3 {
    animation: pulse 5s ease-in-out infinite;
}

/* Card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(224, 74, 40, 0.25);
}

/* Button animations */
.btn-primary {
    background: linear-gradient(135deg, #e04a28 0%, #c93519 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c93519 0%, #a82715 100%);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(224, 74, 40, 0.4);
}

.btn-secondary {
    border: 2px solid #e04a28;
    color: #e04a28;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: #e04a28;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(224, 74, 40, 0.3);
}

/* Navigation active state */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, #e04a28, #f49f85);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #e04a28;
}

/* Fade-in animations for scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid #e04a28;
    outline-offset: 2px;
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

.rounded-2xl:hover img,
.rounded-3xl:hover img {
    transform: scale(1.05);
}

/* Gradient text effect */
.text-gradient {
    background: linear-gradient(135deg, #e04a28 0%, #f49f85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle shadow for cards */
.shadow-lg {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 500px;
}

/* Testimonial cards */
.bg-white.rounded-2xl {
    border: 1px solid rgba(228, 201, 160, 0.3);
}

.bg-white.rounded-2xl:hover {
    border-color: rgba(224, 74, 40, 0.3);
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #e04a28;
    box-shadow: 0 0 0 3px rgba(224, 74, 40, 0.1);
}

/* Custom selection color */
::selection {
    background: rgba(224, 74, 40, 0.2);
    color: #711e15;
}
