/* Custom styles for Xmag Photography */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll reveal animations - only for below-fold content */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero section gradient overlay for text readability */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 46, 22, 0.85) 0%, rgba(22, 101, 52, 0.75) 50%, rgba(20, 83, 45, 0.85) 100%);
    z-index: 1;
}

#hero > div {
    position: relative;
    z-index: 2;
}

/* Navigation active state */
nav a.active {
    color: #16a34a;
    font-weight: 600;
}

/* Button hover effects */
button:hover, a:hover {
    transform: translateY(-2px);
}

button:active, a:active {
    transform: translateY(0);
}

/* Image hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Focus styles for accessibility */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

/* Print styles */
@media print {
    nav, button, form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
