/* Custom styles that complement Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: #e87514;
    color: #ffffff;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #e87514;
    outline-offset: 2px;
}

/* Subtle pattern for hero area */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(232, 117, 20, 0.04) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Service card icon transition */
.service-card .w-14 {
    transition: transform 0.3s ease;
}
.service-card:hover .w-14 {
    transform: scale(1.1) rotate(-3deg);
}

/* Mobile menu bar animation */
#menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-bar:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Subtle gradient overlay on form section */
#contact > div::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(232, 117, 20, 0.03) 100%);
    pointer-events: none;
}

/* Geometric shape floating animation */
@media (prefers-reduced-motion: no-preference) {
    .geo-circle:nth-child(odd),
    .geo-square:nth-child(odd) {
        animation: float 6s ease-in-out infinite;
    }
    .geo-circle:nth-child(even),
    .geo-square:nth-child(even) {
        animation: float 8s ease-in-out infinite reverse;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-16px) rotate(var(--rotation, 0deg)); }
}

/* Navbar shadow on scroll */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Reduce motion for accessibility */
@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; }
}
