/* ============================================
   Quakertown Family Dental Center
   Premium Dark Luxury — Midnight + Mint + Gold
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #050A14;
    color: #ffffff;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050A14;
}
::-webkit-scrollbar-thumb {
    background: #1E2D45;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2DD4BF;
}

::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #ffffff;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(5, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 45, 69, 0.5);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2DD4BF;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

#mobile-menu-btn.open .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu-btn.open .mobile-menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.open .mobile-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 24px;
}

.mobile-menu-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ============================================
   Decorative Gold Lines
   ============================================ */
.gold-line {
    position: absolute;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.15), transparent);
}

.gold-line.vert {
    width: 1px;
    height: 120px;
}

.gold-line.horiz {
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.15), transparent);
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ============================================
   Scroll Dot Animation
   ============================================ */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    100% { top: 48px; opacity: 0; }
}

.scroll-dot {
    animation: scrollDot 1.5s ease-out infinite;
}

/* ============================================
   Card Glow Effect
   ============================================ */
.card-glow:hover .card-glow-inner {
    box-shadow: 0 0 60px rgba(45, 212, 191, 0.05);
}

/* ============================================
   Button Focus States
   ============================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2DD4BF;
    outline-offset: 2px;
}

/* ============================================
   Select Arrow
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232DD4BF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

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