/* Custom styles for Snipes Electrical Services */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1a3a66;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* Selection color */
::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #f0fdf9;
}

/* Base transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.hero-card-1 {
    animation: float 6s ease-in-out infinite;
}
.hero-card-2 {
    animation: float-slow 8s ease-in-out infinite;
}
.hero-card-3 {
    animation: float 7s ease-in-out infinite;
}

/* Pulse glow for CTA elements */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(45, 212, 191, 0.2); }
    50% { box-shadow: 0 0 40px rgba(45, 212, 191, 0.4); }
}

.cta-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover shimmer effect */
.card-shimmer {
    position: relative;
    overflow: hidden;
}
.card-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent 40%,
        rgba(45, 212, 191, 0.03) 50%,
        transparent 60%
    );
    transform: rotate(45deg);
    transition: transform 0.6s;
}
.card-shimmer:hover::after {
    transform: rotate(45deg) translate(20%, 20%);
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobile-menu.open {
    max-height: 500px;
    padding-top: 0;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Service card icon glow on hover */
.service-icon-glow:hover svg {
    filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.6));
    transition: filter 0.3s ease;
}
