/* ============================================
   Nig's Bar — Custom Styles
   Forest Green + Off-White · Vibrant Modern
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

/* ---------- Navbar ---------- */
#navbar {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.97);
    box-shadow: 0 4px 20px rgba(27, 67, 50, 0.08);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
    box-shadow: inset 0 -1px 0 rgba(27, 67, 50, 0.1);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* ---------- HERO Geometric Shapes ---------- */
.hero-geo {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
}

.hero-geo--circle-1 {
    width: 600px;
    height: 600px;
    background: #D4A373;
    top: -200px;
    right: -100px;
    border-radius: 50%;
}

.hero-geo--circle-2 {
    width: 300px;
    height: 300px;
    background: #1B4332;
    bottom: 10%;
    left: -80px;
    border-radius: 50%;
}

.hero-geo--rect {
    width: 120px;
    height: 120px;
    background: #D4A373;
    top: 25%;
    left: 5%;
    border-radius: 20px;
    transform: rotate(30deg);
    opacity: 0.15;
}

.hero-geo--triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #1B4332;
    opacity: 0.08;
    bottom: 15%;
    right: 8%;
    position: absolute;
}

/* ---------- ABOUT Section Geometric Shapes ---------- */
.about-geo {
    position: absolute;
    pointer-events: none;
}

.about-geo--circle-1 {
    width: 400px;
    height: 400px;
    background: rgba(212, 163, 115, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.about-geo--circle-2 {
    width: 250px;
    height: 250px;
    background: rgba(27, 67, 50, 0.08);
    border-radius: 50%;
    bottom: -50px;
    right: 10%;
}

.about-geo--line {
    width: 200px;
    height: 4px;
    background: linear-gradient(to right, transparent, #D4A373, transparent);
    bottom: 20%;
    right: 5%;
    border-radius: 2px;
}

/* ---------- VIBE Section Geometric Shapes ---------- */
.vibe-geo {
    position: absolute;
    pointer-events: none;
}

.vibe-geo--circle-1 {
    width: 500px;
    height: 500px;
    background: rgba(212, 163, 115, 0.08);
    border-radius: 50%;
    top: -150px;
    right: -100px;
}

.vibe-geo--circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(27, 67, 50, 0.1);
    border-radius: 50%;
    bottom: -50px;
    left: 5%;
}

.vibe-geo--square {
    width: 100px;
    height: 100px;
    background: rgba(212, 163, 115, 0.15);
    border-radius: 16px;
    top: 30%;
    left: 3%;
    transform: rotate(45deg);
}

/* ---------- CONTACT Section Geometric Shapes ---------- */
.contact-geo {
    position: absolute;
    pointer-events: none;
}

.contact-geo--circle-1 {
    width: 350px;
    height: 350px;
    background: rgba(212, 163, 115, 0.1);
    border-radius: 50%;
    bottom: -100px;
    left: -80px;
}

.contact-geo--circle-2 {
    width: 180px;
    height: 180px;
    background: rgba(27, 67, 50, 0.12);
    border-radius: 50%;
    top: 10%;
    right: 5%;
}

/* ---------- Scroll Reveal Animations ---------- */
/* Default: content is VISIBLE (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS adds the 'is-visible' class, trigger the animation */
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Reduced motion: disable transitions entirely */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img:hover,
    .group:hover > div > img {
        transform: none;
    }
}

/* Only apply initial hidden state when JS is available (enhanced) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        transform: translateY(30px);
    }
    .reveal-left {
        transform: translateX(-30px);
    }
    .reveal-right {
        transform: translateX(30px);
    }
}

/* ---------- Hero Geometric Animations ---------- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(30deg); }
    50% { transform: translateY(-20px) rotate(35deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.03); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-geo--rect {
        animation: float-slow 8s ease-in-out infinite;
    }
    .hero-geo--circle-1 {
        animation: float-medium 10s ease-in-out infinite;
    }
    .hero-geo--circle-2 {
        animation: float-fast 7s ease-in-out infinite;
    }
}

/* ---------- Button Focus States ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Selection ---------- */
::selection {
    background: #1B4332;
    color: #FDFCF8;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFCF8;
}
::-webkit-scrollbar-thumb {
    background: #aed0b0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1B4332;
}
