/* ===== Custom Styles for Never Satisfied Builds ===== */

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

body {
    overflow-x: hidden;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

/* Navbar scrolled state */
nav.scrolled {
    background: rgba(250, 250, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled .nav-link {
    color: #2d4a3e;
}

nav.scrolled .font-serif.text-forest-900 {
    color: #1a2b25;
}

nav.scrolled .font-sans.text-forest-600 {
    color: #3d634a;
}

/* Hero Section */
#hero {
    position: relative;
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 74, 62, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.service-card:hover::before {
    opacity: 1;
}

/* Scroll Reveal Animations */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-section[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile Menu */
#mobile-menu {
    backdrop-filter: blur(20px);
}

.mobile-menu-link {
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #C8A96E;
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::after {
    width: 60%;
}

/* Floating Card Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1a2b25;
}

/* Selection Color */
::selection {
    background: #2d4a3e;
    color: #F5F0E8;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C8A96E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card {
        transition: none;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
    }
}

/* Tablet */
@media (max-width: 768px) {
    .font-serif.text-4xl {
        font-size: 2.25rem;
    }
    
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
}

/* Large Desktop */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
