/* Custom Styles for Pulmonary Medical Associates */

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

/* Geometric Background Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.6;
    pointer-events: none;
}

.geo-circle-1 {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    border: 3px solid rgba(251, 191, 36, 0.2);
    border-radius: 50%;
}

.geo-circle-2 {
    bottom: 15%;
    left: 3%;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(251, 191, 36, 0.15);
    border-radius: 50%;
}

.geo-square-1 {
    top: 40%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: rgba(251, 191, 36, 0.08);
    border-radius: 16px;
    transform: rotate(45deg);
}

.geo-dots {
    top: 20%;
    left: 10%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.3) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.5;
}

.geo-dots-2 {
    bottom: 10%;
    right: 5%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(138, 61, 132, 0.2) 2px, transparent 2px);
    background-size: 14px 14px;
    opacity: 0.6;
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8a3d84, #fbbf24);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Condition Cards */
.condition-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(43, 16, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

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

/* Focus styles for accessibility */
input:focus, select:focus, textarea:focus, button:focus, a:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .condition-card {
        transition: none;
    }
    
    .service-card::before {
        transform: scaleX(1);
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

::-webkit-scrollbar-track {
    background: #2b1028;
}

::-webkit-scrollbar-thumb {
    background: #8a3d84;
    border-radius: 5px;
}

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

/* Print styles */
@media print {
    nav, #backToTop, #contactForm, #formSuccess {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-plum-950, .bg-plum-900 {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}
