/* ============================================
   Bradley's Irish Pub — Custom Styles
   ============================================ */

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

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

body {
    background-color: #3d0c2c;
}

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

.shape-circle-1 {
    top: 15%;
    left: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #ffb300;
}

.shape-circle-2 {
    bottom: 10%;
    right: -8%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #d946a8;
}

.shape-triangle {
    top: 40%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 346px solid #ffb300;
    opacity: 0.03;
}

.shape-square {
    bottom: 30%;
    left: 8%;
    width: 180px;
    height: 180px;
    background: #d946a8;
    transform: rotate(45deg);
    opacity: 0.03;
}

.shape-ring {
    top: 60%;
    left: 50%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 40px solid #ffb300;
    opacity: 0.02;
}

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

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-15px) rotate(50deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-25px) scale(1.1); }
}

@keyframes float-4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-float-1 { animation: float-1 6s ease-in-out infinite; }
.hero-float-2 { animation: float-2 8s ease-in-out infinite; }
.hero-float-3 { animation: float-3 5s ease-in-out infinite; }
.hero-float-4 { animation: float-4 7s ease-in-out infinite; }

/* ============================================
   Scroll Reveal Animations
   Only apply when prefers-reduced-motion is not set
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-up { transform: translateY(0); }
    .reveal-left { transform: translateX(0); }
    .reveal-right { transform: translateX(0); }
}

/* Hidden state for JS-enhanced reveals */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up.hidden-reveal { opacity: 0; transform: translateY(30px); }
    .reveal-left.hidden-reveal { opacity: 0; transform: translateX(-30px); }
    .reveal-right.hidden-reveal { opacity: 0; transform: translateX(30px); }
}

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

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

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

/* Mobile menu */
.menu-line {
    transition: all 0.3s ease;
}

#menuToggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuToggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-link {
    transition: color 0.2s ease;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(61, 12, 44, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 179, 0, 0.1);
}

/* ============================================
   Buttons & Interactive Elements
   ============================================ */
button, a {
    cursor: pointer;
}

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

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #3d0c2c;
}

::-webkit-scrollbar-thumb {
    background: #7c1a58;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9a1d6e;
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: rgba(255, 179, 0, 0.3);
    color: #fff;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
}
