/* Base styles & custom properties */
:root {
    --color-charcoal-950: #0a0a0e;
    --color-charcoal-900: #14141a;
    --color-charcoal-800: #1f1f27;
    --color-charcoal-700: #2d2d38;
    --color-charcoal-600: #3d3d4a;
    --color-charcoal-500: #4f4f5e;
    --color-charcoal-400: #6e6e80;
    --color-charcoal-300: #9797a5;
    --color-charcoal-200: #c1c1c9;
    --color-charcoal-100: #e3e3e6;
    --color-coral-500: #C75A38;
    --color-coral-600: #b54424;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: rgba(199, 90, 56, 0.3);
    color: #f6f6f7;
}

/* Hero content animation */
.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service cards */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Process steps */
.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(10, 10, 14, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-scrolled .nav-link {
    color: #c1c1c9 !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Menu lines animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Back to top */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

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

::-webkit-scrollbar-track {
    background: #14141a;
}

::-webkit-scrollbar-thumb {
    background: #2d2d38;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d3d4a;
}

/* Select dropdown styling */
select option {
    background-color: #1f1f27;
    color: #e3e3e6;
    padding: 8px 12px;
}

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

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C75A38;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 70px;
    }
}
