/* Custom styles to enhance the design */

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

/* Hero section with scrolling background */
.hero-bg {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Hero section overlay animation */
.hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
}

/* Typography refinements */
.font-serif {
    letter-spacing: -0.02em;
}

/* Mobile Menu Styles */
.hamburger-icon span {
    transform-origin: center;
}

.hamburger-icon.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:last-child {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#mobile-menu.show {
    max-height: 300px;
}

/* Mobile menu links */
.mobile-menu-link {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    border-left-color: #f7f5f3;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Image hover effects */
.image-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Custom decorative elements */
.decorative-line {
    position: relative;
}

.decorative-line::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #f4a574;
}

/* Parallax effect for hero */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

/* Animation for elements coming into view */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Custom checkmark animation */
.checkmark {
    animation: checkmark-appear 0.5s ease-in-out;
}

@keyframes checkmark-appear {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Text selection colors */
::selection {
    background-color: #f4a574;
    color: white;
}

::-moz-selection {
    background-color: #f4a574;
    color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9bb088;
}