/* ============================================
   The Corner Saloon — Custom Styles
   ============================================ */

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

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

body {
    min-height: 100vh;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ============================================
   Geometric Background Elements
   ============================================ */
.geometric-bg {
    z-index: 0;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    top: 15%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.geo-circle--2 {
    bottom: 20%;
    right: 8%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    animation: float 6s ease-in-out 2s infinite;
}

.geo-square {
    position: absolute;
    pointer-events: none;
}

.geo-square--1 {
    top: 40%;
    right: 3%;
    width: 80px;
    height: 80px;
    background: rgba(20, 184, 166, 0.06);
    border-radius: 16px;
    transform: rotate(45deg);
    animation: float 10s ease-in-out 1s infinite;
}

.geo-square--2 {
    bottom: 30%;
    left: 4%;
    width: 60px;
    height: 60px;
    background: rgba(251, 191, 36, 0.06);
    border-radius: 12px;
    transform: rotate(20deg);
    animation: float 7s ease-in-out 3s infinite;
}

.geo-triangle {
    position: absolute;
    pointer-events: none;
}

.geo-triangle--1 {
    top: 60%;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(20, 184, 166, 0.05);
    animation: float 9s ease-in-out 0.5s infinite;
}

.geo-dots {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(20, 184, 166, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    width: 120px;
    height: 120px;
    top: 25%;
    right: 15%;
}

.geo-line {
    position: absolute;
    pointer-events: none;
}

.geo-line--1 {
    bottom: 15%;
    right: 20%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
    transform: rotate(-30deg);
}

/* ============================================
   Hero Animations (NO opacity:0 — always visible)
   ============================================ */
.hero-badge {
    animation: slideDown 0.8s ease-out forwards;
    opacity: 1;
}

.hero-headline {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 1;
}

.hero-sub {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-scroll {
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

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

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all duration-500;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Mobile Menu */
#mobile-menu {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

#bar1 {
    width: 100%;
}

#bar2 {
    width: 100%;
}

#bar3 {
    width: 70%;
}

/* Hamburger Animation */
.mobile-menu-open #bar1 {
    transform: translateY(4px) rotate(45deg);
}

.mobile-menu-open #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-open #bar3 {
    width: 100%;
    transform: translateY(-4px) rotate(-45deg);
}

.mobile-link {
    position: relative;
}

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   Only active when JS is available and user 
   prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* If JS is disabled, all content is already visible — no issue */

/* ============================================
   Card Hover Effects
   ============================================ */
.group:hover .group-hover\\:scale-150 {
    transform: scale(1.5);
}

/* ============================================
   Image Hover Zoom
   ============================================ */
.group img.group-hover\\:scale-105 {
    transition: transform 0.7s ease;
}

/* ============================================
   Button Micro-interactions
   ============================================ */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Form Focus States
   ============================================ */
input:focus, textarea:focus {
    outline: none;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-circle--1,
    .geo-circle--2,
    .geo-square--1,
    .geo-square--2,
    .geo-triangle--1,
    .geo-dots,
    .geo-line--1 {
        display: none;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .geometric-bg,
    .animate-float,
    .animate-float-delayed,
    .animate-pulse-slow {
        display: none !important;
    }
    
    body {
        color: #0f172a;
        background: white;
    }
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: #99f6e4;
    color: #042f2e;
}

::-moz-selection {
    background: #99f6e4;
    color: #042f2e;
}
