/* Custom styles for Dramatic Restoration */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* Selection color */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #f0f4f8;
}

/* Hero floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card-1 {
    animation: float 4s ease-in-out infinite;
}
.floating-card-2 {
    animation: float 4s ease-in-out infinite 1s;
}
.floating-card-3 {
    animation: float 5s ease-in-out infinite 0.5s;
}

/* Service card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2dd4bf, #14b8a6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(10, 26, 43, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

#mobileMenu.open {
    max-height: 400px;
}

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

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

/* Back to top button visibility */
#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* Ensure all text has proper contrast */
.text-midnight-200 {
    color: #d9e2ec;
}
.text-midnight-300 {
    color: #9fb3cc;
}
.text-midnight-400 {
    color: #829abc;
}
.text-midnight-500 {
    color: #627d98;
}

/* Ensure buttons have proper contrast */
.bg-mint-500 {
    background-color: #2dd4bf;
}
.bg-mint-400 {
    background-color: #5eead4;
}
.bg-midnight-950 {
    background-color: #0a1a2b;
}
.bg-midnight-900 {
    background-color: #102a43;
}
.bg-midnight-800 {
    background-color: #243b53;
}
