/* Custom styles and overrides */

:root {
    --color-charcoal-900: #1A1D23;
    --color-charcoal-800: #242830;
    --color-charcoal-700: #2E333D;
    --color-coral-500: #FF6B35;
    --color-coral-400: #FF7F50;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(26, 29, 35, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 500px;
}

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

::-webkit-scrollbar-track {
    background: var(--color-charcoal-900);
}

::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-coral-500);
}

/* Selection color */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: white;
}

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

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

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.geo-float {
    animation: float 6s ease-in-out infinite;
}

.geo-float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

/* Geometric accent shapes */
.geo-accent-1 {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 107, 53, 0.15);
    border-radius: 20px;
    transform: rotate(45deg);
    pointer-events: none;
}

.geo-accent-2 {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* Button hover glow effect */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4) !important;
}

/* Service card gradient overlay on hover */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

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

/* Testimonial card hover */
.testimonial-card {
    transition: border-color 0.3s ease, transform 0.3s ease;
}

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

/* Image lazy load fade-in */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Reduced motion */
@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;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
