/* ===== Custom Styles for Venice To Madrid ===== */

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

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: #166534;
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: #22c55e;
    border-radius: 50%;
    bottom: 20%;
    left: -50px;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: #15803d;
    top: 30%;
    left: 45%;
    transform: rotate(45deg);
    opacity: 0.06;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #166534;
    top: 60%;
    right: 5%;
    opacity: 0.06;
}

.geo-circle-3 {
    width: 100px;
    height: 100px;
    border: 3px solid #166534;
    border-radius: 50%;
    bottom: 15%;
    left: 10%;
    opacity: 0.1;
}

/* ===== Menu Card Hover ===== */
.menu-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(20, 83, 45, 0.08);
}

#navbar.scrolled .menu-line {
    background: #14532d;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Gallery Image Hover ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ===== Form Focus States ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* ===== Mobile Menu Button Animation ===== */
.menu-line {
    transition: transform 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

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

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 24px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .geo-square-1 {
        width: 70px;
        height: 70px;
    }
    
    .geo-triangle {
        border-left-width: 50px;
        border-right-width: 50px;
        border-bottom-width: 87px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
