/* Base styles */
:root {
    --primary: #8B4513;
    --secondary: #D4A76A;
    --accent: #5D8AA8;
    --text: #333333;
    --bg-light: #F5F5F5;
}

/* Typography enhancements */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Text outline styles */
.text-outline {
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 10px rgba(0,0,0,0.9),
        0 0 20px rgba(0,0,0,0.7),
        0 0 30px rgba(0,0,0,0.5);
}

.text-outline-sm {
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 8px rgba(0,0,0,0.9),
        0 0 16px rgba(0,0,0,0.7),
        0 0 24px rgba(0,0,0,0.5);
}

/* Hero section styling */
.hero-pattern {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        radial-gradient(var(--secondary) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px;
    position: relative;
}

.hero-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(139, 69, 19, 0.2),
        rgba(212, 167, 106, 0.2)
    );
    pointer-events: none;
}

/* Parallax and banner effects */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 0.5s ease-out;
}

.banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.3s ease-out;
}

/* Card styling */
.museum-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
    overflow: hidden;
}

.museum-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.museum-card img {
    transition: transform 0.6s ease;
}

.museum-card:hover img {
    transform: scale(1.05);
}

/* Navigation enhancements */
nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Button styling */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: -35%;
    transform: skew(35deg);
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.btn:hover::after {
    width: 135%;
}

/* Reference section styling */
.reference-card {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.reference-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Back to top button */
#back-to-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Utility classes */
.hidden { 
    display: none !important; 
}

.visible { 
    display: block !important; 
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-pattern {
        background-attachment: scroll;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}
