/* Custom styles and animations */

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

/* Hero floating card animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

.floating-card-1 {
    animation: float1 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 4.5s ease-in-out infinite;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo-text {
    color: #1A1A1A !important;
    transition: color 0.3s ease;
}

.nav-scrolled .nav-logo-text {
    color: white !important;
}

.nav-link {
    color: #1A1A1A !important;
    transition: color 0.3s ease;
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-scrolled .nav-link:hover {
    color: #ee6f47 !important;
}

/* Mobile menu */
.mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

.hamburger-line {
    transition: all 0.3s ease;
}

.mobile-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 20px;
}

/* Menu tabs */
.menu-tab.active {
    background: #C0603A !important;
    color: white !important;
}

/* Gallery hover effect */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: #C0603A;
    color: white;
}
