/* Custom styles that extend beyond Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Subtle texture on the body */
body {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(245, 232, 222, 0.3) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 20%, rgba(224, 168, 142, 0.08) 0%, transparent 50%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf6ee;
}
::-webkit-scrollbar-thumb {
    background: #d4c4b3;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8a28e;
}

/* Selection color */
::selection {
    background: #f5e8de;
    color: #3d322a;
}

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

/* Mobile menu animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

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

/* Hamburger animation */
#menu-btn.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}
#menu-btn.active #bar2 {
    opacity: 0;
}
#menu-btn.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
}

/* Image hover effects */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Print styles */
@media print {
    header, footer, #mobile-menu, .reveal { display: none; }
    body { background: white; }
    a { color: #333; }
}
