/* ===== Custom Styles for Carolina Foothills Dental ===== */

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

/* Custom Selection */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #ffffff;
}

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

.animate-fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: both;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.5), transparent);
}

/* ===== Navbar ===== */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
.mobile-menu-open #bar1 {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-open #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-open #bar3 {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.5rem;
}

.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

/* ===== Gold Gradient Text ===== */
.gold-gradient {
    background: linear-gradient(135deg, #C9A84C, #F0D878, #C9A84C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Input Focus Styles ===== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* ===== Button Ripple Effect ===== */
button, .cta-button {
    position: relative;
    overflow: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 168, 76, 0.5);
}

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

/* ===== Loading State ===== */
.page-loaded #hero {
    opacity: 1;
}

#hero {
    opacity: 0;
    transition: opacity 0.6s ease;
}
