/* ============================================
   CLUB RIDERZ SPORTS BAR — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #fefef7;
    color: #022c22;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #065f46; }
::-webkit-scrollbar-thumb { background: #10b981; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #34d399; }

/* --- Selection --- */
::selection {
    background: #10b981;
    color: #fefef7;
}

/* --- Navbar --- */
.nav {
    background: rgba(254, 254, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 95, 70, 0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
    background: rgba(254, 254, 247, 0.98);
    box-shadow: 0 4px 30px rgba(6, 95, 70, 0.1);
}

/* --- Mobile Menu --- */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu.hidden {
    display: none;
}

/* --- Hero --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 30%, #065f46 60%, #047857 100%);
}

.hero-gradient {
    background: radial-gradient(ellipse at 30% 50%, rgba(16, 185, 129, 0.3) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(253, 224, 71, 0.15) 0%, transparent 50%);
}

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

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 3px solid #34d399;
    top: -100px;
    right: -100px;
    animation: float1 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #fef08a;
    bottom: 10%;
    left: 5%;
    animation: float2 10s ease-in-out infinite;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #6ee7b7;
    top: 25%;
    left: 10%;
    animation: float3 6s ease-in-out infinite;
}

.geo-diagonal-1 {
    width: 200px;
    height: 200px;
    background: #fef08a;
    top: 15%;
    right: 15%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-diagonal-2 {
    width: 100px;
    height: 100px;
    border: 2px solid #34d399;
    bottom: 20%;
    right: 25%;
    transform: rotate(30deg);
    animation: spin 15s linear infinite reverse;
}

.geo-dot-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 70px;
    top: 40%;
    right: 8%;
}

.geo-dot-group span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    opacity: 0.6;
}

.geo-dot-group span:nth-child(even) {
    background: #fef08a;
}

.geo-ring {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px dashed rgba(110, 231, 183, 0.3);
    bottom: -150px;
    left: -100px;
    animation: spin 30s linear infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 30px) rotate(10deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, 15px); }
}

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

/* --- Hero Animations --- */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-headline {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-sub {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #fef08a;
    color: #022c22;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(254, 240, 138, 0.3);
}

.btn-primary:hover {
    background: #fde047;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(254, 240, 138, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fefef7;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 32px;
    border-radius: 60px;
    border: 2px solid rgba(254, 254, 247, 0.3);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    border-color: #fef08a;
    color: #fef08a;
    transform: translateY(-2px);
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    background: #065f46;
    color: #fefef7;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(6, 95, 70, 0.3);
}

.btn-dark:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 95, 70, 0.4);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #065f46;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 32px;
    border-radius: 60px;
    border: 2px solid #065f46;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-dark:hover {
    background: #065f46;
    color: #fefef7;
    transform: translateY(-2px);
}

/* --- Tags --- */
.tag-emerald {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
}

.tag-light {
    background: rgba(254, 240, 138, 0.15);
    border: 1px solid rgba(254, 240, 138, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
}

/* --- Feature Cards --- */
.feature-card {
    perspective: 1000px;
}

.feature-card-inner {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.feature-card:hover .feature-card-inner {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(52, 211, 153, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
    background: rgba(16, 185, 129, 0.25);
    transform: scale(1.05);
}

/* --- Gallery --- */
.gallery-track {
    display: flex;
    gap: 16px;
    animation: scrollGallery 40s linear infinite;
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-288px * 6)); }
}

.gallery-track:hover {
    animation-play-state: paused;
}

/* --- About Image --- */
.about-img-wrapper {
    position: relative;
}

.about-img-main {
    box-shadow: 0 25px 80px rgba(6, 78, 59, 0.2);
}

.about-img-accent {
    animation: float2 6s ease-in-out infinite;
}

/* --- Location Info --- */
.location-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Contact Form --- */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 18px;
    color: #fefef7;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: rgba(238, 253, 245, 0.3);
}

.form-input:focus {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
}

textarea.form-input {
    resize: none;
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* These are enhanced by JS for scroll-triggered animation */
.reveal-up.js-animated {
    animation: revealUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.reveal-left.js-animated {
    animation: revealLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.reveal-right.js-animated {
    animation: revealRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes revealLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes revealRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Staggered delays */
.reveal-up:nth-child(1) { animation-delay: 0s; }
.reveal-up:nth-child(2) { animation-delay: 0.1s; }
.reveal-up:nth-child(3) { animation-delay: 0.2s; }
.reveal-up:nth-child(4) { animation-delay: 0.3s; }
.reveal-up:nth-child(5) { animation-delay: 0.4s; }
.reveal-up:nth-child(6) { animation-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .geo-circle-1 { width: 250px; height: 250px; }
    .geo-circle-2 { width: 150px; height: 150px; }
    .geo-diagonal-1 { width: 100px; height: 100px; }
    .geo-ring { width: 200px; height: 200px; }
    
    .about-img-accent {
        width: 80px;
        height: 80px;
        bottom: -12px;
        left: -12px;
    }
    
    .about-img-accent svg {
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gallery-track {
        animation: none;
        flex-wrap: wrap;
    }
}
