/* VroomTech Site Styles - Emerald Redesign */

/* Critical styles to prevent FOUC before Tailwind CDN loads */
body {
    background-color: #0a0a0a;
    color: #fafafa;
    margin: 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #171717;
    border-bottom: 1px solid #404040;
}

/* Mobile menu and close icon: hidden by default, shown when JS removes .hidden */
#mobile-menu,
#close-icon {
    display: none;
}

#mobile-menu:not(.hidden) {
    display: block;
}

#close-icon:not(.hidden) {
    display: inline;
}

/* Menu icon: visible by default, hidden when JS adds .hidden */
#menu-icon.hidden {
    display: none;
}

/* Mobile menu button: hide on desktop (mirrors Tailwind md:hidden) */
@media (min-width: 768px) {
    #mobile-menu-btn {
        display: none;
    }
}

/* Hero geometric decorations: hide by default, show on lg+ (mirrors Tailwind hidden lg:block) */
.hero-warm > [class*="hidden"][class*="lg:block"] {
    display: none;
}

@media (min-width: 1024px) {
    .hero-warm > [class*="hidden"][class*="lg:block"] {
        display: block;
    }
}

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

/* Logo and Animation Styles */
.logo-container {
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-container:hover {
    transform: scale(1.05);
}

/* Enhanced scrollbar for emerald dark theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.4));
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.6), rgba(5, 150, 105, 0.6));
}

/* Hero backgrounds */
.hero-warm {
    background: linear-gradient(135deg, #171717 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.hero-warm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 211, 153, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Geometric pattern for hero */
.hero-pattern {
    background-color: #171717;
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Gradient text */
.gradient-text-warm {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Smooth animations */
@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Card styles */
.card-warm {
    background: #171717;
    border: 1px solid #333333;
    transition: all 0.3s ease;
}

.card-warm:hover {
    border-color: #10b981;
    transform: translateY(-2px);
}

/* Button styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background-color: #10b981;
    color: #0a0a0a;
}

.btn-primary:hover {
    background-color: #059669;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid #404040;
    color: #fafafa;
}

.btn-secondary:hover {
    border-color: #10b981;
    color: #10b981;
}

.btn-lg {
    height: 2.75rem;
    padding: 0.5rem 2rem;
}

/* Focus styles */
:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

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

/* Service card colors - emerald palette */
.service-amber { border-left: 4px solid #10b981; }
.service-orange { border-left: 4px solid #34d399; }
.service-rust { border-left: 4px solid #059669; }
.service-amber-dark { border-left: 4px solid #047857; }

/* Section backgrounds */
.section-dark {
    background-color: #0a0a0a;
}

.section-surface {
    background-color: #171717;
}

.section-surface-warm {
    background-color: #262626;
}

/* Text colors */
.text-warm {
    color: #a3a3a3;
}

.text-muted {
    color: #737373;
}

/* Border colors */
.border-warm {
    border-color: #333333;
}

.border-subtle {
    border-color: #262626;
}

/* Badge styles */
.badge-warm {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 4px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    border-top-color: #10b981;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Services dropdown - hide by default via local CSS to prevent flash before Tailwind CDN loads */
#services-dropdown {
    opacity: 0;
    visibility: hidden;
}

#services-dropdown.show {
    opacity: 1;
    visibility: visible;
}

/* Decorative geometric shapes */
.geo-shape {
    position: absolute;
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 2px;
}

.geo-circle {
    border-radius: 50%;
}
