/* Custom styles for Krazy Kooters */

/* Base transitions */
.nav-link {
    position: relative;
}

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

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

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #E27D60 0%, #C05A44 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(226, 125, 96, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(226, 125, 96, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #76382A;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid #E27D60;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #E27D60;
    color: #fff;
    transform: translateY(-2px);
}

/* White button for dark backgrounds */
.btn-white {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #C05A44;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #FDF6F0;
}

/* Ghost button */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

.hero-badge {
    animation-delay: 0.2s;
}

#hero h1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

#hero h1 {
    animation-delay: 0.4s;
}

#hero p {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

#hero p {
    animation-delay: 0.6s;
}

#hero .flex.items-center.justify-center.gap-4 {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

#hero .flex.items-center.justify-center.gap-4 {
    animation-delay: 0.8s;
}

#hero .mt-16 {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

#hero .mt-16 {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
    padding-bottom: 0;
}

.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link:hover {
    padding-left: 8px;
}

/* Navbar scroll state */
header.scrolled {
    background: rgba(253, 248, 244, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

header.scrolled .nav-link {
    color: #5C2E22;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Selection color */
::selection {
    background: #F3B8A8;
    color: #5C2E22;
}

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

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

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

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #E27D60;
    outline-offset: 2px;
}

/* 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;
    }
    
    .reveal.hidden-reveal {
        opacity: 1;
        transform: none;
    }
}
