/* Custom styles for Sergio's Outdoor Service */

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(212, 160, 23, 0.3);
    color: #FFF9E6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #1E3A66;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #D4A017;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(4, 11, 24, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .logo-text {
    color: #fff;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A017, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 160, 23, 0.05);
}

/* Mobile menu */
.mobile-link {
    position: relative;
    padding-left: 0;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #D4A017;
    transition: width 0.3s ease;
}

.mobile-link:hover::before {
    width: 16px;
}

/* Hamburger animation */
#menuIcon span:nth-child(1) {
    width: 100%;
}

#menuIcon span:nth-child(2) {
    width: 75%;
}

#menuIcon span:nth-child(3) {
    width: 100%;
}

body.menu-open #menuIcon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

body.menu-open #menuIcon span:nth-child(2) {
    opacity: 0;
    width: 0;
}

body.menu-open #menuIcon span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(212, 160, 23, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1) !important;
}

/* Gold shimmer on CTA buttons */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Utility: text gradient */
.text-gradient-gold {
    background: linear-gradient(135deg, #FFD055, #D4A017, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold border gradient animation */
@keyframes borderGlow {
    0%, 100% { border-color: rgba(212, 160, 23, 0.2); }
    50% { border-color: rgba(212, 160, 23, 0.5); }
}
