/* Custom styles for JAH WAY'S Home Repair */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Clip diagonal for hero */
.clip-diagonal {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: #0d9488;
    border-radius: 50%;
    top: 10%;
    right: -100px;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: #0d9488;
    border-radius: 50%;
    bottom: 20%;
    left: -50px;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #0d9488;
    top: 50%;
    left: 10%;
    transform: rotate(15deg);
}

.shape-square {
    width: 120px;
    height: 120px;
    background: #0d9488;
    top: 70%;
    right: 5%;
    transform: rotate(45deg);
}

/* Mobile menu animations */
.menu-line {
    display: block;
}

#mobileMenuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobileMenuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 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);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal.hidden-reveal {
        opacity: 1;
        transform: translateY(0);
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

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