/* Private Options Website Styles */

/* Focus styles */
:focus-visible {
    outline: 3px solid #00A3A3;
    outline-offset: 2px;
}

/* Mega menu transitions */
.mega-menu {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Modal transitions */
.modal {
    transition: opacity 0.25s ease;
}

.modal-content {
    transition: transform 0.25s ease;
}

/* Spinner animation */
.spinner {
    border-top-color: #00A3A3;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade in up animation */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.animate-fade-in.is-visible {
    opacity: 1;
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale-up {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-scale-up.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Improved contrast for better accessibility */
.text-gray-600 {
    color: #4b5563;
}

/* Responsive image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Focus management for modal */
.modal[aria-hidden="true"] {
    pointer-events: none;
}

.modal[aria-hidden="false"] {
    pointer-events: auto;
}

/* Enhanced Card and Button Styles */
.service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 163, 163, 0.1);
    transition: all 0.5s ease;
}

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

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

.service-card:hover {
    border-color: rgba(0, 163, 163, 0.3);
    transform: translateY(-8px) scale(1.05);
}

.btn-enhanced {
    background: linear-gradient(135deg, #00A3A3 0%, #008080 100%);
    transition: all 0.3s ease;
}

.btn-enhanced:hover {
    transform: scale(1.05);
}

.text-gradient {
    background: linear-gradient(135deg, #0B1F3F 0%, #00A3A3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-white {
    background: linear-gradient(135deg, #FFFFFF 0%, #00A3A3 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 163, 163, 0.3);
}

/* New keyframes for enhanced animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 163, 163, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 163, 163, 0.6);
    }
}

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

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

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.icon-hover {
    transition: transform 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.1);
}

/* Page transitions */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll, .animate-fade-in, .animate-slide-right, .animate-slide-left, .animate-scale-up {
        animation: none;
        transition: none;
    }
    .modal, .modal-content, .mega-menu {
        transition: none;
    }
    .float-animation, .pulse-glow {
        animation: none;
    }
}