/* Custom styles for Happy-Go-Lucky */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation scroll effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(10, 19, 35, 0.08);
}

/* Nav links */
.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.mobile-menu-link {
    position: relative;
    padding-left: 1rem;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d4a017;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-link:hover::before {
    opacity: 1;
}

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: #415faf;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: #0a1323;
    color: #d4a017;
}

.menu-tab:hover:not(.active) {
    background: #f0f3f9;
}

/* Scroll reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Hero parallax feel */
#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 20, 0.3) 0%, rgba(10, 19, 35, 0.5) 50%, rgba(5, 10, 20, 0.7) 100%);
    z-index: 1;
}

#hero > .relative {
    z-index: 2;
}

/* Button hover effects */
a:hover {
    transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #f0f3f9;
}

::-webkit-scrollbar-thumb {
    background: #0a1323;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334c8c;
}

/* Selection color */
::selection {
    background: #d4a017;
    color: #0a1323;
}

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

/* Gallery grid */
.grid-cols-2 .col-span-2 {
    grid-column: span 2;
}

.grid-cols-2 .row-span-2 {
    grid-row: span 2;
}

@media (max-width: 767px) {
    .grid-cols-2 .col-span-2 {
        grid-column: span 1;
    }
    
    .grid-cols-2 .row-span-2 {
        grid-row: span 1;
    }
}

/* Form styles (for future use) */
input, textarea {
    border: 2px solid #d9e0ef;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    width: 100%;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #d4a017;
}

/* Loading animation for page */
body {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Card hover glow */
.bg-navy-50:hover {
    box-shadow: 0 20px 60px rgba(10, 19, 35, 0.08) !important;
}

/* Gold accent line */
.gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4a017, #f0d070);
    border-radius: 2px;
}
