/* ===== Custom Styles for Scott K Gray PA ===== */

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

/* ===== Reveal animations (progressive enhancement) ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ===== Hero blobs ===== */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.6), transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 243, 208, 0.5), transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: -3s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.4), transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== Card hover ===== */
.card-hover {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ===== Navbar scroll state ===== */
.nav-scrolled #navbar {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(40, 78, 40, 0.08);
}

.nav-scrolled .nav-text-color {
    color: #182f18;
}

.nav-scrolled .nav-subtext-color {
    color: #4d834d;
}

.nav-scrolled .nav-link-color {
    color: #366636;
}

.nav-scrolled .nav-link-color:hover {
    color: #284e28;
}

/* ===== Mobile menu ===== */
.mobile-nav-link {
    color: #182f18;
}

/* ===== Selection ===== */
::selection {
    background: #c6dfc6;
    color: #182f18;
}

/* ===== Focus styles ===== */
a:focus-visible, button:focus-visible {
    outline: 2px solid #4d834d;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #71a471;
}
