/* Custom Styles for EDIF Website */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

::-webkit-scrollbar-thumb {
    background: #C5A059;
    border-radius: 4px;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Service Card Hover Effects */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(197, 160, 89, 0.1);
}

/* Input Focus Styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #C5A059 !important;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Mobile Menu Styles */
#mobileMenu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger Animation */
#menuToggle.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle.active #bar2 {
    opacity: 0;
}

#menuToggle.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Links Animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobileMenu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Select Dropdown Styling */
select option {
    background: #0B0C10;
    color: #E8DCC4;
}

/* Selection Color */
::selection {
    background: #C5A059;
    color: #0B0C10;
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid #C5A059;
    outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .bg-brand-charcoal\/50 {
        background: white !important;
        border: 1px solid #ccc !important;
    }
}
