/* Custom Styles for HeritageStoryEncy */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #3A2E1F;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Heritage card styles */
.heritage-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.heritage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.3);
}

.heritage-card img {
    transition: transform 0.3s ease;
}

.heritage-card:hover img {
    transform: scale(1.05);
}

/* Category card styles */
.category-card {
    transition: all 0.3s ease;
}

/* Story card styles */
.story-card {
    background: linear-gradient(135deg, #ffffff 0%, #fef9f3 100%);
    border-left: 4px solid #D4AF37;
    transition: all 0.3s ease;
}

.story-card:hover {
    border-left-width: 8px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
    transform: translateX(5px);
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #D4AF37;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive image */
.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F5F1E8;
}

::-webkit-scrollbar-thumb {
    background: #8B4513;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #654321;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

#mobile-menu.hidden {
    max-height: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
}

/* Form styles */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* Button hover effects */
button, .btn {
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
}

/* Text selection */
::selection {
    background-color: #D4AF37;
    color: #3A2E1F;
}

/* Hero Section Background */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(139, 69, 19, 0.3), rgba(139, 69, 19, 0.7));
    z-index: 1;
}

/* Mobile optimization for hero background */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
}

/* Print styles */
@media print {
    nav, footer {
        display: none;
    }
}

