/* Custom Styles for Greenwood Homestead */

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

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c9a227;
}

/* Selection Color */
::selection {
    background: #d4af37;
    color: #0a0a0a;
}

/* Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar Scroll Effect */
#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-blur: 10px;
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.1);
}

/* Hover Effects */
.nav-link {
    position: relative;
}

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

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

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Input Focus Effects */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Image Hover Zoom */
img {
    transition: transform 0.7s ease;
}

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

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

/* Mobile Link Hover */
.mobile-link {
    position: relative;
    padding-left: 0;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.mobile-link:hover::before {
    width: 20px;
}

/* Gold Gradient Text */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #f4e5a3 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative Corner */
.corner-decoration {
    position: relative;
}

.corner-decoration::before,
.corner-decoration::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: #d4af37;
    border-style: solid;
}

.corner-decoration::before {
    top: -10px;
    left: -10px;
    border-width: 2px 0 0 2px;
}

.corner-decoration::after {
    bottom: -10px;
    right: -10px;
    border-width: 0 2px 2px 0;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
}

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

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .text-amber-400 {
        color: #333 !important;
    }
}
