/* Custom styles for Williams Investment Co */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Ensure all text has proper contrast */
.text-midnight-900 {
    color: #0a1e38;
}

.text-midnight-800 {
    color: #0f2848;
}

.text-midnight-700 {
    color: #14365c;
}

.text-midnight-600 {
    color: #1e4a78;
}

.text-midnight-500 {
    color: #2e6498;
}

.text-midnight-200 {
    color: #a5bdd6;
}

.text-mint-600 {
    color: #1f7d53;
}

.text-mint-500 {
    color: #369a6e;
}

.text-mint-400 {
    color: #5bb88e;
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #369a6e 0%, #5bb88e 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1f7d53 0%, #369a6e 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(54, 154, 110, 0.3);
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(10, 30, 56, 0.25);
}

/* Image reveal effect */
.image-reveal {
    overflow: hidden;
}

.image-reveal img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-reveal:hover img {
    transform: scale(1.05);
}

/* Navigation scroll effect */
.nav-scrolled {
    background-color: rgba(10, 30, 56, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Scroll indicator animation */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Reveal animation for scroll-triggered elements */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #369a6e !important;
    box-shadow: 0 0 0 3px rgba(54, 154, 110, 0.2) !important;
}

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

::-webkit-scrollbar-track {
    background: #0a1e38;
}

::-webkit-scrollbar-thumb {
    background: #14365c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e4a78;
}

/* Accessibility: Ensure links are distinguishable */
a:focus {
    outline: 2px solid #5bb88e;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .fixed,
    .mobile-menu,
    .scroll-indicator {
        display: none !important;
    }
}
