/* ===== Custom Styles for Hermitage Lodge 356 ===== */

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

/* ===== Geometric Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #e8733a;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #d4920b;
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    top: 40%;
    right: 10%;
    animation: float 5s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #e8733a;
    top: 20%;
    left: 8%;
    transform: rotate(15deg);
    animation: spin-slow 20s linear infinite;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #d4920b;
    bottom: 20%;
    right: 5%;
    transform: rotate(-20deg);
    animation: spin-slow 15s linear infinite reverse;
}

.square-1 {
    width: 100px;
    height: 100px;
    background: #1a908a;
    top: 60%;
    left: 15%;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
}

.square-2 {
    width: 60px;
    height: 60px;
    background: white;
    top: 15%;
    right: 20%;
    transform: rotate(30deg);
    animation: spin-slow 12s linear infinite;
}

.diamond-1 {
    width: 80px;
    height: 80px;
    background: #e8733a;
    bottom: 30%;
    right: 15%;
    transform: rotate(45deg);
    animation: float 9s ease-in-out infinite reverse;
}

.dots-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Reveal Animations (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays */
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background: rgba(253, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 90, 30, 0.08);
}

#navbar.scrolled .nav-link {
    color: #1a5a1e;
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
    max-height: 400px;
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f0;
}
::-webkit-scrollbar-thumb {
    background: #85c97e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a5a1e;
}

/* ===== Selection color ===== */
::selection {
    background: #85c97e;
    color: #081d09;
}

/* ===== Focus visible ===== */
:focus-visible {
    outline: 3px solid #85c97e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 640px) {
    .geo-shape {
        opacity: 0.05;
    }
    .circle-1 {
        width: 250px;
        height: 250px;
    }
}
