/* Custom styles for Tan Terrace MD */

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

/* Base styles */
body {
    font-family: 'Raleway', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero animations */
.hero-badge {
    animation: fadeInDown 0.8s ease-out forwards;
}

.hero-badge {
    opacity: 0;
    transform: translateY(-20px);
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

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

.mobile-menu .mobile-link {
    animation: slideIn 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu button animation */
.menu-line {
    transition: all 0.3s ease;
}

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

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

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2a5251;
}

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
}

/* Print styles */
@media print {
    nav,
    #contact,
    .reveal {
        display: none;
    }

    body {
        color: #000;
        background: white;
    }
}
