/* Custom styles for HCH Obstetrics and Gynecology */

/* Floating animation for geometric shapes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile menu link styles */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(245, 234, 208, 0.5);
}

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

/* Smooth focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Card hover effects */
.reveal:hover {
    transform: translateY(-4px);
}

/* Geometric shape animations */
.geo-circle {
    animation: float 8s ease-in-out infinite;
}

.geo-rectangle {
    animation: spin-slow 20s linear infinite;
}

/* Ensure hero content is always visible */
#hero h1,
#hero p,
#hero a,
#hero .inline-flex {
    opacity: 1 !important;
    transform: none !important;
}

/* Print styles */
@media print {
    nav, #mobile-menu, #menu-overlay, #back-to-top {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Reduced motion */
@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;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .geo-circle,
    .geo-rectangle {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .reveal:hover {
        transform: none;
    }
}
