/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.reveal-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Scroll Line Animation */
@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(200%);
    }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #719f82;
}

/* Selection Color */
::selection {
    background: #c7dfd1;
    color: #0f1a15;
}

/* Focus Styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Image Hover Effects */
img {
    transition: transform 0.7s ease;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Input placeholder styles */
input::placeholder,
textarea::placeholder {
    color: #9fc2ab;
    opacity: 0.7;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 0 rgba(49, 79, 64, 0.1);
}

/* Gallery grid gap fix */
.grid {
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid {
        gap: 1.5rem;
    }
}
