/* Custom styles for Black Lake Bible Camp & Retreat Center */

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

/* Base transitions */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(18, 48, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Primary button */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* Secondary button */
.btn-secondary {
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.05);
}

/* Navigation links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-link {
    position: relative;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #047857;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Image hover overlay */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Selection color */
::selection {
    background: rgba(4, 120, 87, 0.2);
    color: #042f23;
}

/* Subtle pattern for cream sections */
.bg-cream-50 {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(4, 120, 87, 0.02) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 20%, rgba(4, 120, 87, 0.03) 0%, transparent 50%);
}

/* Parallax-like effect for hero */
#hero {
    background-attachment: fixed;
}

/* Mobile menu animation */
#menu-icon span:nth-child(1) {
    transform-origin: center;
}

#menu-icon span:nth-child(3) {
    transform-origin: center;
}

body.menu-open #menu-icon span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

body.menu-open #menu-icon span:nth-child(2) {
    opacity: 0;
}

body.menu-open #menu-icon span:nth-child(3) {
    transform: translateX(8px) rotate(-45deg);
    width: 1.5rem;
}

/* Print styles */
@media print {
    #navbar,
    .btn-primary,
    .btn-secondary {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
