/* Custom Styles for Pointer Roofing & Construction */

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

/* Navbar Scroll Effect */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7c3aed, #9333ea);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #6b21a8, #7c3aed);
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Hero Gradient Animation */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(233, 213, 255, 0.4) 0%, 
        rgba(254, 243, 199, 0.3) 50%, 
        rgba(243, 232, 255, 0.4) 100%
    );
    pointer-events: none;
    z-index: 1;
}

#home > div:last-child {
    position: relative;
    z-index: 2;
}

/* Service Card Hover Effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Text Selection Color */
::selection {
    background-color: #c084fc;
    color: white;
}

::-moz-selection {
    background-color: #c084fc;
    color: white;
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Reduce Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #back-to-top,
    .animate-pulse {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .bg-gradient-to-br {
        background: Canvas !important;
    }
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2rem;
    }
    
    .grid-cols-1 {
        gap: 1.5rem;
    }
}

/* Accessibility: Focus Visible */
:focus-visible {
    outline: 3px solid #c084fc;
    outline-offset: 2px;
}

/* Loading State for Buttons */
button:disabled,
input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Smooth Image Loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
