/* Custom Color Palette */
:root {
    --charcoal-dark: #1a1a1a;
    --charcoal-medium: #2d2d2d;
    --charcoal-light: #4a4a4a;
    --coral-50: #fff5f0;
    --coral-100: #ffe8de;
    --coral-200: #ffd4bf;
    --coral-300: #ffba96;
    --coral-400: #ff9166;
    --coral-500: #ff6b35;
    --coral-600: #e85a28;
    --coral-700: #c44a20;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--charcoal-dark);
    background-color: var(--stone-50);
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-lato {
    font-family: 'Lato', sans-serif;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(-6deg);
    }
    50% {
        transform: translateY(-20px) rotate(-6deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(3deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--coral-500);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--coral-500);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral-600);
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Back to Top Button */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Print Styles */
@media print {
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
