/* ============================================
   Mission Tax Team — Custom Styles
   Premium Dark Luxury Theme
   Terracotta + Sand Palette
   ============================================ */

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

::-webkit-scrollbar-track {
    background: #050810;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6b5d50;
}

/* Selection */
::selection {
    background: rgba(212, 166, 101, 0.3);
    color: #faf6ee;
}

/* Base Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Service Card Hover Effect */
.service-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 166, 101, 0.03), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

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

/* Mobile Menu Active State */
.mobile-menu-active {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile Menu Open State */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Mobile Menu Lines Animation */
#mobile-menu.open ~ .flex .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

#mobile-menu.open ~ .flex .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 6;
}

/* Navbar Scrolled State */
.nav-scrolled {
    background: rgba(5, 8, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 120, 95, 0.1);
}

/* Reveal Animation Classes */
.reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(212, 166, 101, 0.3);
}

/* Gold Shimmer Effect */
.text-shimmer {
    background: linear-gradient(
        90deg,
        #d4a665 0%,
        #e8c477 25%,
        #d4a665 50%,
        #e8c477 75%,
        #d4a665 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Gold Line Decoration */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4a665, transparent);
}

/* Image Hover */
img {
    transition: transform 0.6s ease, filter 0.3s ease;
}

/* Button Active State */
button:active,
a:active {
    transform: scale(0.98);
}

/* Select Arrow Custom */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

/* Mobile Menu Overlay */
#mobile-menu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

/* Smooth border transitions */
.border,
input,
textarea,
select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hero badge pulse */
@keyframes pulse-gold {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Counter animation helper */
.counter {
    display: inline-block;
}

/* Print Styles */
@media print {
    nav,
    #contact,
    .reveal-section {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
