/* Custom Styles for Rakesh Patel Medical Practice */

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

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

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

#mobile-menu.open .mobile-menu-link {
    animation: fadeInUp 0.4s ease forwards;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu toggle */
#menu-toggle.active .menu-line-1 {
    transform: rotate(45deg) translate(2px, 2px);
}

#menu-toggle.active .menu-line-2 {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-item {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-item.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible even without JS */
@media not all and (prefers-reduced-motion) {
    .reveal-item {
        opacity: 1;
        transform: none;
    }
}

/* Custom select styling */
select option {
    background: #0a1628;
    color: white;
}

/* Remove default select arrow and add custom */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: white;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0f1f3d 0%, #162a4a 100%);
}

/* Subtle hover effects for service cards */
.group:hover img {
    transform: scale(1.05);
}

/* Gold gradient text effect (for potential use) */
.text-gold-gradient {
    background: linear-gradient(135deg, #c9a84c 0%, #e0ca84 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Print styles */
@media print {
    #navbar,
    #contact-form,
    .reveal-item {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
