/* ============================================
   Gaines Bar — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(28, 25, 23, 0.08);
}

.nav-logo-text {
    color: #1C1917;
}

.nav-link {
    color: #1C1917;
    position: relative;
}

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

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

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: #d4623a;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #c24d2c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 98, 58, 0.3);
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #d4623a;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: #fdf0eb;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* ============================================
   Hero
   ============================================ */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: #fff;
}

.deco-circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.deco-circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.deco-circle-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

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

/* Scroll line animation */
.scroll-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -40%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

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

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

/* Hero text animation */
#hero h1 {
    animation: fadeInUp 0.8s ease 0.2s both;
}

#hero p {
    animation: fadeInUp 0.8s ease 0.4s both;
}

#hero .flex {
    animation: fadeInUp 0.8s ease 0.6s both;
}

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    color: #d4623a;
    transform: scale(1.05);
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ============================================
   Menu List Items
   ============================================ */
#menu li {
    transition: transform 0.2s ease;
}

#menu li:hover {
    transform: translateX(4px);
}

/* ============================================
   Gallery Images
   ============================================ */
#gallery img {
    transition: transform 0.7s ease;
}

/* ============================================
   Footer
   ============================================ */
footer a {
    text-decoration: none;
}

/* ============================================
   Utility
   ============================================ */
::selection {
    background: #f5c4b0;
    color: #6c291d;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #d4623a;
    outline-offset: 2px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
