/* Custom styles for American Pipe Cleaning Co. */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll indicator animation */
.scroll-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #FF6B6B);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

/* Mobile menu animations */
.menu-line {
    display: block;
    transition: all 0.3s ease;
}

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

#menu-toggle.active .menu-line:last-child {
    transform: rotate(-45deg) translate(0px, 0px);
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Service card hover effects */
.service-card {
    position: relative;
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Selection color */
::selection {
    background: #FF6B6B;
    color: white;
}

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

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

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

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

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FF6B6B;
    transition: width 0.3s ease;
}

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #FF6B6B !important;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
