/* ===== Custom Styles for C & N Enterprise ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1209;
}
::-webkit-scrollbar-thumb {
    background: #3D2E1C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5C4430;
}

/* Selection color */
::selection {
    background: rgba(230, 112, 48, 0.3);
    color: #FDF9F3;
}

/* ===== Animation Keyframes ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===== Reveal Animations (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-up {
        transform: translateY(30px);
    }
    
    .reveal-left {
        transform: translateX(-30px);
    }
    
    .reveal-right {
        transform: translateX(30px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
    
    /* Staggered delays for grid items */
    .reveal-up:nth-child(2) { transition-delay: 100ms; }
    .reveal-up:nth-child(3) { transition-delay: 200ms; }
    .reveal-up:nth-child(4) { transition-delay: 300ms; }
}

/* Default state - always visible for accessibility */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* ===== Navbar scroll effect ===== */
nav.scrolled {
    background: rgba(13, 10, 6, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(166, 118, 78, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Gold shimmer effect ===== */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ===== Gradient text utility ===== */
.gradient-text {
    background: linear-gradient(135deg, #EC8D57, #E8C55A, #D9A055);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Card hover glow ===== */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(230, 112, 48, 0.15);
}

/* ===== Button pulse on focus ===== */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #EC8D57;
    outline-offset: 2px;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
}
