/* ============================================
   DR. DENNIS S. DIGAMON — CUSTOM STYLES
   ============================================ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Selection color */
::selection {
    background: #059669;
    color: #fefdf8;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(254, 253, 248, 0.92);
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.97);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* ============================================
   HERO
   ============================================ */
/* No special hero styles needed — handled via Tailwind */

/* ============================================
   SECTION REVEAL ANIMATIONS
   Only for below-the-fold content
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        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; }
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover::after {
    transform: scaleX(1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-primary:hover::before {
    opacity: 1;
}

/* ============================================
   INPUTS
   ============================================ */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   FLOATING STATS CARDS (Hero)
   ============================================ */
.floating-card {
    animation: float 6s ease-in-out infinite;
}
.floating-card:nth-child(2) {
    animation-delay: -2s;
}
.floating-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
}
#backToTop:not(.visible) {
    transform: translateY(10px);
}

/* ============================================
   MOBILE MENU
   ============================================ */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
