/* Custom styles beyond Tailwind */

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf9f7;
}
::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a3a3a3;
}

/* Selection color */
::selection {
    background-color: #ff6b29;
    color: #ffffff;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #ff6b29;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background-color: #ebe8e1;
}

/* Subtle gradient overlay for hero text areas */
.hero-text-gradient {
    background: linear-gradient(135deg, rgba(250,249,247,1) 0%, rgba(250,249,247,0.95) 100%);
}

/* Card hover lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10,10,10,0.1);
}

/* Animated underline for links */
.animated-underline {
    position: relative;
    display: inline-block;
}
.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ff6b29;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.animated-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Noise texture overlay (subtle) */
.noise-overlay {
    position: relative;
}
.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}
.noise-overlay > * {
    position: relative;
    z-index: 2;
}

/* Parallax-lite for hero image */
.hero-img-parallax {
    will-change: transform;
}

/* Mobile menu animation */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 5rem;
}

/* Navbar glass effect */
.nav-glass {
    background: rgba(250, 249, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 212, 212, 0.5);
}

/* Coral accent line animation */
.coral-line {
    position: relative;
    display: inline-block;
}
.coral-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6b29, #ffb685);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.coral-line:hover::after {
    transform: scaleX(1);
}

/* Reduced motion */
@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;
    }
}
