/* ============================================
   Jeff Hart MD — Premium Dark Luxury Theme
   Teal + Slate + Gold Accent Palette
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: #060d14;
    color: #f0f4f8;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
}

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1520;
}
::-webkit-scrollbar-thumb {
    background: #1e3a52;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(6, 13, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.mobile-nav-link {
    position: relative;
}
.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2dd4bf, #d4af37);
    transition: width 0.3s ease;
}
.mobile-nav-link:hover::after {
    width: 100%;
}

/* ---------- Floating Cards ---------- */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: 0s;
}
.floating-card:nth-child(3) {
    animation-delay: -2s;
}
.floating-card:nth-child(4) {
    animation-delay: -4s;
}

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

.card-gold {
    animation-delay: 0s;
}
.card-teal {
    animation-delay: -2s;
}
.card-accent {
    animation-delay: -4s;
}

/* ---------- Scroll Reveal ---------- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Service Cards Hover ---------- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

/* ---------- Form Inputs ---------- */
input::placeholder,
textarea::placeholder {
    color: #64748b;
}

/* ---------- Map Filter ---------- */
iframe[src*="google.com/maps"] {
    border-radius: 0 0 1rem 1rem;
}

/* ---------- Responsive Typography ---------- */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    #navbar,
    .floating-card,
    #contact-form,
    iframe {
        display: none !important;
    }
    body {
        background: #fff;
        color: #111;
    }
}
