/* Custom Styles for El Güero Phone Repair */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
    background: #9cc59e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4f804e;
}

/* Service Card Hover Animation */
.service-card {
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-8px);
}

/* Fade In Animation */
.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);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(45, 80, 48, 0.08);
}

/* Mobile Menu Transitions */
.menu-line {
    transition: all 0.3s ease-in-out;
}
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Input Focus Animation */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(79, 128, 78, 0.1);
}

/* Button Ripple Effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Selection Color */
::selection {
    background-color: #3d633d;
    color: #faf9f6;
}

/* Mobile Link Hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #3d633d;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Image hover zoom */
.overflow-hidden img {
    transition: transform 0.6s ease;
}
.overflow-hidden:hover img {
    transform: scale(1.03);
}
