/* Custom styles and overrides */

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

/* Custom selection color */
::selection {
    background-color: #c5dfc9;
    color: #1c3d24;
}

/* Navbar scroll effect */
nav.scrolled {
    background-color: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #96c49e;
}

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

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Mobile menu animation */
#mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Subtle pattern for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(64, 125, 75, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Floating animation refinement */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

/* Fade animations with delay support */
[data-aos] {
    transition-property: opacity, transform;
}

/* Button ripple effect */
button::after,
a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

button:hover::after,
a:hover::after {
    opacity: 1;
}

/* Ensure images don't cause layout shift */
img {
    content-visibility: auto;
}

/* Print styles */
@media print {
    nav,
    .animate-float,
    .animate-float-delayed,
    .absolute.bottom-8 {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
