/* ===== Custom Styles for Kellams G R & Associates ===== */

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(114, 47, 55, 0.08);
}

/* ===== Hero Decorations ===== */
.hero-decor {
    animation: float 8s ease-in-out infinite;
}

.hero-decor:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
}

.hero-decor:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 6s;
}

.hero-decor:nth-child(4) {
    animation-delay: -1s;
    animation-duration: 9s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

/* Scroll line animation */
@keyframes scroll-line {
    0% { top: -16px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 48px; opacity: 0; }
}

.animate-scroll-line {
    animation: scroll-line 1.8s ease-in-out infinite;
}

/* ===== Service Cards ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Mobile nav link fade-in */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Selection Color ===== */
::selection {
    background: rgba(114, 47, 55, 0.15);
    color: #722F37;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #722F37;
}

/* ===== Focus Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===== Print Styles ===== */
@media print {
    #navbar,
    #mobile-menu,
    .animate-scroll-line {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-burgundy-900,
    .bg-burgundy-950 {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}
