/* Custom styles beyond Tailwind */

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

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

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

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

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

/* Selection color */
::selection {
    background: rgba(194, 124, 86, 0.3);
    color: #e3d5c1;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(15, 13, 12, 0.95);
    backdrop-filter: blur(20px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(194, 124, 86, 0.1);
}

/* Mobile menu open state */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile link animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero gradient animation */
@keyframes gradientShift {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

.hero-glow {
    animation: gradientShift 8s ease-in-out infinite;
}

.hero-glow:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.hero-glow:nth-child(3) {
    animation-delay: -5s;
    animation-duration: 12s;
}

/* Pulse animation for approach numbers */
@keyframes softPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

/* Image hover zoom */
img {
    transition: transform 0.6s ease;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #c27c56 !important;
    box-shadow: 0 0 0 1px rgba(194, 124, 86, 0.2);
}

/* Button ripple effect */
button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

button:hover::after {
    opacity: 1;
}

/* Decorative line animation */
@keyframes lineGrow {
    from { width: 0; }
    to { width: 4rem; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-glow {
        display: none;
    }
}
