/* Base & Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

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

/* Selection */
::selection {
    background: #A8E6CF;
    color: #0A1628;
}

/* Focus Styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.5s ease, pointer-events 0.5s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Navbar Transition */
#navbar {
    transition: background-color 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 0;
    padding-bottom: 0;
}

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

/* Form Focus States */
input:focus,
textarea:focus {
    border-bottom-color: #A8E6CF !important;
}

/* Button Hover Effects */
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 230, 207, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    #about,
    #menu,
    #location,
    #contact {
        padding: 80px 1.5rem;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #contact-form,
    .animate-bounce {
        display: none;
    }
}
