/* Custom Styles for Custom Custodial Inc */

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c5a028;
}

/* Selection */
::selection {
    background: #d4af37;
    color: #0a1628;
}

/* Hero Animations */
.hero-anim {
    animation: heroFadeUp 1s ease forwards;
}
.hero-anim:nth-child(1) { animation-delay: 0.2s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.6s; }
.hero-anim:nth-child(4) { animation-delay: 0.8s; }

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}
.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Service Cards */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0%, transparent 100%);
}

/* Mobile Menu */
.mobile-nav-link {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    border-color: #d4af37 !important;
}

/* Select styling */
select option {
    background: #0a1628;
    color: #fff;
    padding: 12px;
}

/* Navbar scroll effect handled in JS */

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Thin line accents */
.line-accent {
    position: relative;
}
.line-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 1px;
    background: #d4af37;
}

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero-anim {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .animate-scroll-indicator {
        animation: none;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 2rem !important;
    }
    
    #about .relative > div:first-child img {
        height: 350px !important;
    }
    
    .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 1.5rem;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .animate-scroll-indicator {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
