/* ============================================
   Otooles Irish Pub & Grille — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

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

.shape-circle-1 {
    width: 300px;
    height: 300px;
    background: #fbbf24;
    border-radius: 50%;
    top: 10%;
    left: -5%;
    animation: float1 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 180px;
    height: 180px;
    background: #34d399;
    border-radius: 50%;
    top: 60%;
    right: 5%;
    animation: float2 10s ease-in-out infinite;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    background: #f472b6;
    border-radius: 50%;
    bottom: 15%;
    left: 15%;
    animation: float3 7s ease-in-out infinite;
}

.shape-square-1 {
    width: 100px;
    height: 100px;
    background: #a78bfa;
    top: 25%;
    right: 10%;
    animation: spin 20s linear infinite;
}

.shape-square-2 {
    width: 70px;
    height: 70px;
    background: #fb923c;
    border-radius: 16px;
    bottom: 25%;
    left: 8%;
    animation: spin 15s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #fbbf24;
    top: 45%;
    left: 5%;
    animation: float1 9s ease-in-out infinite;
    opacity: 0.08;
}

.shape-diamond-1 {
    width: 80px;
    height: 80px;
    background: #60a5fa;
    transform: rotate(45deg);
    top: 20%;
    right: 20%;
    animation: spin 18s linear infinite;
    opacity: 0.1;
}

.shape-circle-4 {
    width: 500px;
    height: 500px;
    background: #34d399;
    border-radius: 50%;
    bottom: -200px;
    right: -150px;
    opacity: 0.15;
    animation: float2 12s ease-in-out infinite;
}

.shape-square-3 {
    width: 150px;
    height: 150px;
    background: #fbbf24;
    top: 10%;
    left: -40px;
    transform: rotate(30deg);
    animation: spin 25s linear infinite;
    opacity: 0.1;
}

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

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

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

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

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: rgba(250, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ============================================
   Buttons & Interactive Elements
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #66bb6a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Form Styles
   ============================================ */
input::placeholder,
textarea::placeholder {
    color: #a5d6a7;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-circle-3 {
        width: 80px;
        height: 80px;
    }
    
    .shape-square-1,
    .shape-square-2 {
        display: none;
    }
    
    .shape-triangle-1,
    .shape-diamond-1 {
        display: none;
    }
}
