/* Custom styles for Sekhri, Sharanya website */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8f7f5;
}
::-webkit-scrollbar-thumb {
    background: #a49c90;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7a7068;
}

/* Selection color */
::selection {
    background: #0d7377;
    color: #ffffff;
}

/* Navbar transition */
#navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Hover underline animation for links */
a:not([class*="bg-"]):not([class*="px-"]):not([class*="py-"]):not([class*="rounded"]):not([class*="w-"]):not([class*="h-"]):not([class*="inline-flex"]):not([class*="block"]):not([class*="text-xs"]) {
    position: relative;
}

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

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #0d7377;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

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

#mobileMenu.closing {
    animation: slideUp 0.2s ease forwards;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .group:hover img {
        transform: none;
    }
}

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

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

/* Print styles */
@media print {
    header,
    footer,
    #contactForm,
    iframe {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
