/* ===== Custom Styles for Charles B Dehlin Medical === */

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

/* Base body */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Geometric Hero Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.circle-1 {
    top: 8%;
    left: 5%;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(110, 231, 183, 0.5);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    top: 15%;
    right: 8%;
    width: 120px;
    height: 120px;
    background: rgba(110, 231, 183, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    bottom: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 7s ease-in-out infinite;
}

.circle-4 {
    bottom: 30%;
    right: 5%;
    width: 160px;
    height: 160px;
    border: 2px solid rgba(110, 231, 183, 0.4);
    border-radius: 50%;
    animation: float 9s ease-in-out infinite reverse;
}

.triangle-1 {
    top: 25%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(110, 231, 183, 0.2);
    animation: rotate 15s linear infinite;
}

.square-1 {
    bottom: 15%;
    left: 15%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    animation: rotate 20s linear infinite;
}

.ring-1 {
    top: 60%;
    right: 12%;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(110, 231, 183, 0.25);
    border-radius: 50%;
    animation: float 5s ease-in-out infinite;
}

.dot-grid {
    top: 40%;
    left: 3%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(110, 231, 183, 0.5) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.4;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Scroll Reveal (progressive enhancement) === */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* ===== Navbar Transitions ===== */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
}

.nav-scrolled .font-heading,
.nav-scrolled a:not(.bg-emerald-700):not(.bg-emerald-900) {
    color: #064e3b !important;
}

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

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

/* ===== Button Hover Glow ===== */
button[type="submit"]:hover {
    box-shadow: 0 10px 40px rgba(4, 120, 87, 0.3) !important;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfcf8;
}
::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .geo-shape {
        opacity: 0.08;
    }
    .circle-1 { width: 120px; height: 120px; }
    .circle-2 { width: 80px; height: 80px; }
    .circle-4 { width: 100px; height: 100px; }
    .triangle-1 { display: none; }
    .square-1 { display: none; }
}
