/* Custom styles for Charleton Errol */

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

/* Scroll reveal base state - always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Decorative background shapes */
.deco-circle-1 {
    position: absolute;
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(229, 99, 66, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.deco-circle-2 {
    position: absolute;
    bottom: 5%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 171, 68, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.deco-rect-1 {
    position: absolute;
    top: 30%;
    left: 5%;
    width: 60px;
    height: 60px;
    background: rgba(229, 99, 66, 0.06);
    transform: rotate(45deg);
    pointer-events: none;
}

.deco-rect-2 {
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(212, 171, 68, 0.15);
    transform: rotate(30deg);
    pointer-events: none;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #d94f2c;
}

/* Selection color */
::selection {
    background: #f9d5cc;
    color: #7a2b1a;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

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

/* Button hover lift effect */
a:hover {
    transition: all 0.2s ease;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}
