/* Global Overrides and Variables */
:root {
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --color-accent: #FFB800;
    --color-accent-hover: #FFFFFF;
    --color-accent-glow: rgba(255, 184, 0, 0.35);
    --color-outline: rgba(212, 160, 23, 0.3);
}

/* HR Mode Theme (Slate/Steel Blue Accent) */
body.theme-hr {
    --color-accent: #3B82F6;
    --color-accent-glow: rgba(59, 130, 246, 0.35);
    --color-outline: rgba(59, 130, 246, 0.3);
}

/* Custom Scrollbar for modern digital editorial feel */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #0D0D0D;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #1A1A1A;
    border: 1px solid #0D0D0D;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Delay classes for staggered animations */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Dynamic Accent Utilities */
.dynamic-accent-text {
    color: var(--color-accent) !important;
    transition: color 0.4s ease;
}
.dynamic-accent-bg {
    background-color: var(--color-accent) !important;
    transition: background-color 0.4s ease;
}
.dynamic-accent-border {
    border-color: var(--color-accent) !important;
    transition: border-color 0.4s ease;
}
.dynamic-outline-border {
    border-color: var(--color-outline) !important;
    transition: border-color 0.4s ease;
}
.dynamic-glow {
    text-shadow: 0 0 30px var(--color-accent-glow) !important;
    transition: text-shadow 0.4s ease;
}

/* Navigation link hover indicators */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* FAQ Accordion Transitions */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-out;
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    opacity: 1;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    color: var(--color-accent);
}

/* Custom interactive inputs styling */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-outline) !important;
}

/* Theme Switcher Toggle */
.theme-switch-btn {
    position: relative;
    overflow: hidden;
}

.theme-switch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.theme-switch-btn:hover::before {
    transform: translateX(0);
}

/* Interactive Timeline Styles */
.timeline-line {
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1A1A1A;
}

@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-dot {
    position: absolute;
    left: 16px;
    width: 12px;
    height: 12px;
    background: #0D0D0D;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    transform: translateX(-5px);
    z-index: 10;
    transition: border-color 0.4s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
    .timeline-dot {
        left: 50%;
        transform: translateX(-50%);
    }
    .timeline-item:hover .timeline-dot {
        transform: translateX(-50%) scale(1.3);
    }
}

/* Quiz Steps Transition */
.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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