/* Custom styles for Campton Commons */

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

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #4f4f4f;
}

/* Reveal animations - progressive enhancement, content visible by default */
.reveal-element {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Hero staggered animations */
@media (prefers-reduced-motion: no-preference) {
    .reveal-element:nth-child(1) { transition-delay: 0.1s; }
    .reveal-element:nth-child(2) { transition-delay: 0.2s; }
    .reveal-element:nth-child(3) { transition-delay: 0.3s; }
    .reveal-element:nth-child(4) { transition-delay: 0.4s; }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gradient text utility */
.text-gradient-coral {
    background: linear-gradient(135deg, #ffb4a0, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

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

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

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

/* Image loading placeholder */
img {
    background-color: #2a2a2a;
}
