/* Custom CSS for Eraaxis Global Consult */

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

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

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.3s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Mobile menu toggle animation */
#navToggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#navToggle.active span:nth-child(2) {
    opacity: 0;
}

#navToggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

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

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

::-webkit-scrollbar-thumb {
    background: #002B5B;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #002B5B, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button hover effects */
.btn-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 43, 91, 0.2);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Testimonial carousel */
.testimonial-track {
    transition: transform 0.5s ease-in-out;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

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

/* Success message slide in */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    animation: slideDown 0.4s ease-out;
}

/* Gold accent line */
.accent-line {
    position: relative;
    padding-left: 20px;
}

.accent-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #D4AF37;
    border-radius: 2px;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-menu-open {
        max-height: 500px;
        transition: max-height 0.3s ease-in-out;
    }

    .mobile-menu-closed {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
}

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
}

/* Accessibility improvements */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
    background: #002B5B;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}
