/* Custom Styles for Aaron Weeks Building Maintenance */

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

body {
    font-feature-settings: "cv01", "cv02", "cv03";
}

/* Typography */
.font-serif {
    line-height: 1.1;
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scroll Indicator Animation */
@keyframes scroll-down {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(200%);
    }
}

.animate-scroll {
    animation: scroll-down 1.5s ease-in-out infinite;
}

/* Navigation Active State */
.nav-link-active {
    color: #581C1C;
}

/* Custom Selection Color */
::selection {
    background-color: #581C1C;
    color: #FDF2E9;
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease-in-out;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Hover Card Effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Form Focus Styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 1px #581C1C;
}

/* Button Hover Effect */
button,
a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gallery Image Hover */
.aspect-square {
    overflow: hidden;
}

.aspect-square img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.aspect-square:hover img {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .animate-scroll {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
