/* ============================================
   Gastro Center of Maryland — Custom Styles
   ============================================ */

/* Base styles */
html {
    scroll-behavior: smooth;
}

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

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.04;
}

.geo-circle-1 {
    top: 15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: #c42929;
    border-radius: 50%;
}

.geo-circle-2 {
    top: 45%;
    right: -8%;
    width: 500px;
    height: 500px;
    background: #ff5c42;
    border-radius: 50%;
}

.geo-circle-3 {
    bottom: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: #c42929;
    border-radius: 50%;
}

.geo-triangle {
    top: 60%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 208px solid #ff5c42;
    opacity: 0.03;
}

.geo-rect {
    top: 25%;
    right: 25%;
    width: 100px;
    height: 100px;
    background: #c42929;
    transform: rotate(45deg);
    opacity: 0.03;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar styles */
#navbar.scrolled {
    background: rgba(255, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(196, 41, 41, 0.08);
}

#navbar.scrolled .nav-link {
    color: #5c1313;
}

#navbar.scrolled .nav-link:hover {
    color: #a61e1e;
    background: #fdf0f0;
}

/* Active nav link */
.nav-link.active {
    color: #a61e1e;
    background: #fdf0f0;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a61e1e;
}

/* Print styles */
@media print {
    .geo-shape,
    #back-to-top,
    .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
